cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Reijn <j.re...@onehippo.com>
Subject Re: deploy Tomcat
Date Wed, 09 Apr 2008 15:15:00 GMT
Hi Patrick,

Do you have any idea, which XML Schema is causing this error?
While looking at the tomcat server.xml did you also notice this
statement:

Note: XML Schema validation will not work with Xerces 2.2.

Did you provide your own version of xerces? Because the one that comes
with the JDK might not work.

Regards,

Jeroen


On Wed, 2008-04-09 at 03:30 +0200, Patrick Heiden wrote:
> Hello together!
> 
> I've got some errors while deploying my app to Tomcat (5.5 and 6.x). I switched XML Validation
and XSD namespacesAware attributes to true and deployed an empty cocoon webapp block. Tomcat
is not able to set up the context for that (exception from Tomcat 6.x at the end of this message).
> 
> Any idea how to fix this?
> 
> Best greetings,
> Patrick
> 
> stack-trace:
> 09.04.2008 03:49:46 org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path: /opt/jdk1.5.0_15/jre/lib/i386/client:/opt/jdk1.5.0_15/jre/lib/i386:/opt/jdk1.5.0_15/jre/../lib/i386
> 09.04.2008 03:49:46 org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> 09.04.2008 03:49:46 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1669 ms
> 09.04.2008 03:49:46 org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> 09.04.2008 03:49:46 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
> 09.04.2008 03:49:46 org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive emptyWebApp-1.0-SNAPSHOT.war
> 09.04.2008 03:49:47 org.apache.tomcat.util.digester.Digester error
> SCHWERWIEGEND: Parse Error at line 878 column 67: s4s-elt-character: Non-whitespace characters
are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'xsd:attribute
name="metadata-complete" type="xsd:boolean">'.
> org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed
in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'xsd:attribute name="metadata-complete"
type="xsd:boolean">'.
> 	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
> 	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
> 	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
> 	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
> 	at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaDOMParser.characters(SchemaDOMParser.java:209)
> 	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanContent(XMLDocumentFragmentScannerImpl.java:1062)
> 	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1649)
> 	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
> 	at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:468)
> 	at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:524)
> 	at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchema(XSDHandler.java:1517)
> 	at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:438)
> 	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:556)
> 	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2459)
> 	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1807)
> 	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
> 	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
> 	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:779)
> 	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)
> 	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
> 	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
> 	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
> 	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
> 	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
> 	at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)
> 	at org.apache.catalina.startup.ContextConfig.processDefaultWebConfig(ContextConfig.java:695)
> 	at org.apache.catalina.startup.ContextConfig.defaultWebConfig(ContextConfig.java:632)
> 	at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1061)
> 	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
> 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
> 	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
> 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
> 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 09.04.2008 03:49:47 org.apache.tomcat.util.digester.Digester error
> SCHWERWIEGEND: Parse Error at line 836 column 56: src-resolve: Cannot resolve the name
'javaee:descriptionGroup' to a(n) 'group' component.
> 
> 
> 
> <BigSnip/>
> 
> 
> 
> INFO: The listener "org.springframework.web.context.ContextLoaderListener" is already
configured for this context. The duplicate definition has been ignored.
> 09.04.2008 03:49:49 org.apache.catalina.core.StandardContext addApplicationListener
> INFO: The listener "org.springframework.web.context.request.RequestContextListener" is
already configured for this context. The duplicate definition has been ignored.
> 09.04.2008 03:49:49 org.apache.catalina.startup.ContextConfig start
> SCHWERWIEGEND: Marking this application unavailable due to previous error(s)
> 09.04.2008 03:49:49 org.apache.catalina.core.StandardContext start
> SCHWERWIEGEND: Error getConfigured
> 09.04.2008 03:49:49 org.apache.catalina.core.StandardContext start
> SCHWERWIEGEND: Context [/emptyWebApp-1.0-SNAPSHOT] startup failed due to previous errors
> 09.04.2008 03:49:49 org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> 09.04.2008 03:49:50 org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> 09.04.2008 03:49:50 org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/161  config=null
> 09.04.2008 03:49:50 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 3760 ms
> 09.04.2008 03:50:26 org.apache.coyote.http11.Http11Protocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8080
> 09.04.2008 03:50:27 org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> 09.04.2008 03:50:27 org.apache.coyote.http11.Http11Protocol destroy
> INFO: Stopping Coyote HTTP/1.1 on http-8080
> 

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


Mime
View raw message