[GeoNetwork-users] Can't make Tomcat 5.5 and GeoNetwork 2.2.0 worktogether [SEC=UNCLASSIFIED]

Hi Maël,
Not sure if this is the fix but try moving the deployed files to a directory
NOT under webapps e.g. "d:/geonetwork/220/web/geonetwork" and adjust the
docBase accordingly. Tomcat has a known bug
https://issues.apache.org/bugzilla/show_bug.cgi?id=39013 and I have had
problems deploying apps to this directory before.

Can't see why the IllegalArgumentException is being raised. If you search
Google with "javax.xml.validation.SchemaFactory tomcat
IllegalArgumentException" you'll find you're not the first to see this
problem.

I have been using Tomcat 5.5.26, Java 1.5.0_14 on Windows XP for 6 months
without encountering this problem.

Cheers,
Stephen

-----Original Message-----
From: REBOUX Maël [mailto:m.reboux@anonymised.com]
Sent: Tuesday, 28 October 2008 8:09
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] Can't make Tomcat 5.5 and GeoNetwork 2.2.0
worktogether

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:113
9)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3
956)
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:113
9)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3
956)
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:113
9)
  at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.jav
a:127)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.jav
a: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:8
34)
  at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Ht
tp11AprProtocol.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:113
9)
  at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.jav
a:127)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.jav
a: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:8
34)
  at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Ht
tp11AprProtocol.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/conf
ig.xml

==============================

Maël REBOUX
Cellule SIG
Rennes Métropole

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork