cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gautam Ganguly" <ggan...@transunion.com>
Subject RE: Sunspot demo portal error-Please help
Date Fri, 28 Feb 2003 19:47:32 GMT
  I tried it as you said by copying the jars to the endorse
directory..but it didnot help.
  By any chance is it something to do with database?Does the portal
application use hsqldb for authenticating users,because while going
through tomcat log files i saw this errors that show up when tomcat
ibrings up Cocoon and the associated default HSQLDB,
the error is as follows:
----------------------------------
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
Feb 28, 2003 12:07:20 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 26 column 11: The content of element type
"web-app"
must match
"(icon?,display-name?,description?,distributable?,context-param*,filt
er*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-map
ping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,sec
urity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref
*)".
org.xml.sax.SAXParseException: The content of element type "web-app"
must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-
mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welco
me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-const
raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
        at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Er
rorHandlerWrapper.java:232)
        at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.
java:173)
        at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.
java:362)
        at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.
java:296)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDVal
idator.java:2987)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator
.java:930)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElemen
t(XMLDocumentFragmentScannerImpl.java:1145)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
XMLDocumentFragmentScannerImpl.java:988)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:333)
        at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
arserConfiguration.java:525)
        at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
arserConfiguration.java:581)
        at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
        at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1157)
        at
org.apache.commons.digester.Digester.parse(Digester.java:1495)
        at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
nfig.java:282)
        at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
9)
        at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:243)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
567)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
9)
        at
org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Feb 28, 2003 12:07:22 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 26 column 11: The content of element type
"web-app"
must match
"(icon?,display-name?,description?,distributable?,context-param*,filt
er*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-map
ping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,sec
urity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref
*)".
org.xml.sax.SAXParseException: The content of element type "web-app"
must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-
mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welco
me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-const
raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
        at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Er
rorHandlerWrapper.java:232)
        at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.
java:173)
        at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.
java:362)
        at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.
java:296)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDVal
idator.java:2987)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator
.java:930)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElemen
t(XMLDocumentFragmentScannerImpl.java:1145)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
XMLDocumentFragmentScannerImpl.java:988)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:333)
        at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
arserConfiguration.java:525)
        at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
arserConfiguration.java:581)
        at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
        at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1157)
        at
org.apache.commons.digester.Digester.parse(Digester.java:1495)
        at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
nfig.java:282)
        at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
9)
        at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:243)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
567)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
9)
        at
org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
server.properties not found, using command line or default properties
Opening database: C:\Tomcat1\webapps\cocoon\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Fri Feb 28 12:07:29 CST 2003 Listening for connections ...
server.properties not found, using command line or default properties
Opening database: C:\Tomcat1\webapps\cocoon\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Server.run/init: java.sql.SQLException: The database is already in use
by anothe
r process
java.sql.SQLException: The database is already in use by another
process
        at org.hsqldb.Trace.getError(Unknown Source)
        at org.hsqldb.Trace.error(Unknown Source)
        at org.hsqldb.Log.open(Unknown Source)
        at org.hsqldb.Database$Logger.openLog(Unknown Source)
        at org.hsqldb.Database.open(Unknown Source)
        at org.hsqldb.Database.<init>(Unknown Source)
        at org.hsqldb.Server.openDB(Unknown Source)
        at org.hsqldb.Server.run(Unknown Source)
        at org.hsqldb.Server.main(Unknown Source)
        at
org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:19
4)
        at java.lang.Thread.run(Thread.java:536)
--------------------------------------
   Any suggestion will be of help to me.

regards,
Gautam

>>> ael@star.le.ac.uk 02/28/03 10:00AM >>>
It seems that the directory for the fixed jars is /common/endorsed,
rather than /common/lib. See the thread at:
 
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104616838802904&w=2


It fixed the problem for me.

Cheers,
Tony. 

> -----Original Message-----
> From: Gautam Ganguly [mailto:ggangul@transunion.com] 
> Sent: 28 February 2003 15:04
> To: cziegeler@s-und-n.de; cocoon-users@xml.apache.org 
> Subject: RE: Sunspot demo portal error-Please help
> 
> 
> Carsten,
>    It still doesnot work.
>    This is what i did just now:
> Step:1  I built the cocoon source file again but before that 
> i changed the web.xml file in the web-inf dir,to take into 
> account  the extra-classpath settings to include these 3 jar 
> files. Step:2 Build the src file using the options for: 
> -Dinclude.webapp.libs=yes -Dinclude.scratchpad.libs=yes  
> webapp Step:3 copied the cocoon.war file into the 
> tomcat/webapps dir Step:4 copied the xalan, xerces and t(Stan
> xml-apis (.jars) to tomcat/common/lib area
> Step:5 copied the xalan, xerces and xml-apis   (.jars) to
> c:\jdk1.4\jre\lib area.
> step:6 restarted Tomcat
> Step:7 went to the site for cocoon/samples area
> step:8 select the Sun spot demo portal and entered the 
> user-id as guest/guest
> 
> ---i still have the same error showing up.Sorry that i took 
> so long to reply but i wanted to do it fresh..from 
> scratch..just to see wether i missed something from the 
> installation steps .By any chance the source files that i am 
> using are the ones that come with the cocoon2.0.4 download 
> area and not the cvs version..by any chance does it have 
> something to do with it?
> 
> thanks,
> Gautam
> 
> >>> cziegeler@s-und-n.de 02/28/03 08:16AM >>>
> Ok, did you also follow the instructions for jdk1.4 and copy 
> the jars in the jre/lib/endorsed directory?
> 
> Carsten
> 
> > -----Original Message-----
> > From: Gautam Ganguly [mailto:ggangul@transunion.com] 
> > Sent: Friday, February 28, 2003 2:57 PM
> > To: cziegeler@s-und-n.de; cocoon-users@xml.apache.org 
> > Subject: RE: Sunspot demo portal error-Please help
> >
> >
> > hi Carsten,
> >    I already had the 3 jar files in the tomcat/common/lib area as
> that
> > was  part of the instruction about installing cocoon on
> tomcat4.0.x.The
> > sitemap is also intact as it came with the build.
> > regards,
> > Gautam
> >
> > >>> cziegeler@s-und-n.de 02/28/03 07:19AM >>>
> > You have to copy xalan, xerces and xml-apis jar from 
> > cocoon/WEB-INF/lib into the common/endorsed directory of tomcat.
> >
> > Carsten
> >
> > > -----Original Message-----
> > > From: Gautam Ganguly [mailto:ggangul@transunion.com] 
> > > Sent: Friday, February 28, 2003 2:06 PM
> > > To: cocoon-users@xml.apache.org 
> > > Subject: Sunspot demo portal error-Please help
> > >
> > >
> > > hi,
> > > I have just recently started looking at the Cocoon 2 framework
and
> > the
> > > current project needs are very much like the Sun Spot demo
portal
> > sample
> > > application that comes with Cocoon.when i run it from the
samples
> > page
> > > and after enter the username either as cocoon or guest and do
> submit
> > , i
> > > get  the following message on my browser page:
> > >
------------------------------------------------------------------
> > > ---------
> > > Cocoon2 - Internal Server Error
> > > type  fatal
> > > message null
> > > description java.lang.NullPointerException
> > > sender org.apache.cocoon.servlet.CocoonServlet
> > > source Cocoon servlet
> > > stack-trace
> > > java.lang.NullPointerException
> > > 	at
> > >
> >
> org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUti
> l.java:869)
> > > 	at
> > >
> >
> org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUti
> l.java:871)
> > > 	at
> > >
> >
> org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUti
> l.java:871)
> > > 	at 
> > >
org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil
> > > .java:836)
> > > 	at 
> > >
org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(Sim
> > > pleSessionContext.java:173)
> > > 	at 
> > >
org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise
> > > .java:692)
> > > 	at 
> > >
org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(Sun
> > > Rise.java:769)
> > > 	at 
> > >
org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthActio
> > > n.java:122)
> > > 	at 
> > >
org.apache.cocoon.www.sitemap_xmap.matchN400496(C:\Tomcat1\work\St
> > >
andalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitem
> > > ap_xmap.java:5223)
> > > 	at 
> > >
org.apache.cocoon.www.sitemap_xmap.process(C:\Tomcat1\work\Standal
> > >
one\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xm
> > > ap.java:3313)
> > > 	at 
> > >
org.apache.cocoon.www.sitemap_xmap.process(C:\Tomcat1\work\Standal
> > >
one\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xm
> > > ap.java:3091)
> > > 	at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
> > > 	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
> > > 	at
> > >
> >
> org.apache.cocoon.sitemap.SitemapManager.process(SitemapManage
> r.java:152)
> > > 	at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
> > > 	at
> > >
> >
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.
> java:1043)
> > > 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > 	at 
> > >
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
> > > pplicationFilterChain.java:247)
> > > 	at 
> > >
org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
> > > onFilterChain.java:193)
> > > 	at 
> > >
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
> > > erValve.java:260)
> > > 	at 
> > >
org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> > > text.invokeNext(StandardPipeline.java:643)
> > > 	at 
> > >
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > > java:480)
> > > 	at
> > >
> >
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > 	at 
> > >
org.apache.catalina.core.StandardContextValve.invoke(StandardConte
> > > xtValve.java:191)
> > > 	at 
> > >
org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> > > text.invokeNext(StandardPipeline.java:643)
> > > 	at 
> > >
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > > java:480)
> > > 	at
> > >
> >
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > 	at
> > >
> >
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2415)
> > > 	at 
> > >
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
> > > e.java:180)
> > > 	at 
> > >
org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> > > text.invokeNext(StandardPipeline.java:643)
> > > 	at 
> > >
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat
> > > cherValve.java:170)
> > > 	at 
> > >
org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> > > text.invokeNext(StandardPipeline.java:641)
> > > 	at 
> > >
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv
> > > e.java:172)
> > > 	at 
> > >
org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> > > text.invokeNext(StandardPipeline.java:641)
> > > 	at 
> > >
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > > java:480)
> > > 	at
> > >
> >
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > 	at 
> > >
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine
> > > Valve.java:174)
> > > 	at 
> > >
org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> > > text.invokeNext(StandardPipeline.java:643)
> > > 	at 
> > >
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > > java:480)
> > > 	at
> > >
> >
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > 	at
> > >
> >
>
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
> > > 	at
> > >
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
> > > 	at java.lang.Thread.run(Thread.java:536)
> > >
> > > request-uri
> > > /cocoon/sunspotdemo-portal
> > >
> > > path-info
> > > sunspotdemo-portal
> > >
> > >
------------------------------------------------------------------
> > > ---------
> > > My system config is as follows:
> > >
> > > OS: windows2000 advanced server
> > > JDK:1.4
> > > Webserver: IIS 5.0
> > > Java Servlet Engine: Tomcat-4.1.18(connecting to IIS using ajp13)

> > > Cocoon Server : 2.0.4.(The war file was generated using the
source
> > from
> > > the download site and using =
> > >  build option -Dinclude.webapp.libs=yes
> > -Dinclude.scratchpad.libs=yes
> > > webapp)
> > >
> > > -----------------------
> > > I am accessing the samples page by going to 
> > > http://10.194.45.66/cocoon/sunspotdemoportal 
> > >
> > > I saw a few of the same type of error listed on other forums but
> it
> > was
> > > not of much help.Hope you all might be able to help me 
> out. reagrds,
> > > Gautam
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org 
> > > For additional commands, e-mail: cocoon-users-help@xml.apache.org

> > >
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org 
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org 
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org 
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org 
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org 
> For additional commands, e-mail: cocoon-users-help@xml.apache.org 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org 
> For additional commands, e-mail: cocoon-users-help@xml.apache.org 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org 
For additional commands, e-mail: cocoon-users-help@xml.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message