Hello.
I'm trying to configure GeoNetwork 2.2.0 for working with Tomcat 5.5 on Windows. Sorry, this is the configuration of our hosting site...
When I test the site with the embedd Jetty J2EE server, it works fine. Even when I use a MySQL 5 database.
But it always crashed when trying to use Tomcat.
I was curious and I test the same configuration on my mac (PowerPC G4) and the result is the same : work with Jetty but "nada" with Tomcat.
What is the trick ?
Thank you for your precious help.
The configuration :
Apache Tomcat/5.5.23
JVM 1.5.0_12-b04
Windows XP (5.1 x86) (have no choice, sorry)
Tomcat server.xml
<Context
path="/geonetwork"
docBase="D:/Tomcat/5.5.23/webapps/catalogue/geonetwork220/web/geonetwork"
crossContext="false"
debug="1"
reloadable="false" />
Tomcat localhost.log
28 oct. 2008 09:43:27 org.apache.catalina.core.ApplicationContext log
GRAVE: StandardWrapper.Throwable
java.lang.ExceptionInInitializerError
at jeeves.server.JeevesEngine.loadConfigFile(JeevesEngine.java:183)
at jeeves.server.JeevesEngine.init(JeevesEngine.java:132)
at jeeves.server.sources.http.JeevesServlet.init(JeevesServlet.java:65)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema
at javax.xml.validation.SchemaFactory.newInstance(Unknown Source)
at jeeves.utils.Xml.<clinit>(Xml.java:262)
... 21 more
28 oct. 2008 09:43:27 org.apache.catalina.core.StandardContext loadOnStartup
GRAVE: La servlet /geonetwork a généré une exception "load()"
java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema
at javax.xml.validation.SchemaFactory.newInstance(Unknown Source)
at jeeves.utils.Xml.<clinit>(Xml.java:262)
at jeeves.server.JeevesEngine.loadConfigFile(JeevesEngine.java:183)
at jeeves.server.JeevesEngine.init(JeevesEngine.java:132)
at jeeves.server.sources.http.JeevesServlet.init(JeevesServlet.java:65)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
And after trying to acces to http://localhost:8080/geonetwork/
===========================================================================================================
GRAVE: StandardWrapper.Throwable
java.lang.NoClassDefFoundError
at jeeves.server.JeevesEngine.loadConfigFile(JeevesEngine.java:183)
at jeeves.server.JeevesEngine.init(JeevesEngine.java:132)
at jeeves.server.sources.http.JeevesServlet.init(JeevesServlet.java:65)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
at java.lang.Thread.run(Unknown Source)
28 oct. 2008 09:46:23 org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Exception lors de l'allocation pour la servlet gn-servlet
java.lang.NoClassDefFoundError
at jeeves.server.JeevesEngine.loadConfigFile(JeevesEngine.java:183)
at jeeves.server.JeevesEngine.init(JeevesEngine.java:132)
at jeeves.server.sources.http.JeevesServlet.init(JeevesServlet.java:65)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
at java.lang.Thread.run(Unknown Source)
Geonetwork.log
2008-10-28 09:43:27,095 INFO [jeeves.engine] - === Starting system ========================================
2008-10-28 09:43:27,095 INFO [jeeves.engine] - Java version : 1.5.0_12-b04
2008-10-28 09:43:27,110 INFO [jeeves.engine] - Java vendor : Sun Microsystems Inc.
2008-10-28 09:43:27,126 INFO [jeeves.engine] - XSLT factory : org.apache.xalan.transformer.TransformerIdentityImpl
2008-10-28 09:43:27,126 INFO [jeeves.engine] - Path : D:\Tomcat\5.5.23\webapps\catalogue\geonetwork220\web\geonetwork\/
2008-10-28 09:43:27,126 INFO [jeeves.engine] - BaseURL : geonetwork
2008-10-28 09:43:27,126 INFO [jeeves.engine] - Loading : D:\Tomcat\5.5.23\webapps\catalogue\geonetwork220\web\geonetwork\/WEB-INF/config.xml
Maël REBOUX
Cellule SIG
Rennes Métropole