[GeoNetwork-devel] GN 2.8 ClassNotFoundException: CatalogReader

There must have been a conflicting library in your previous JDK that is the only reason that I can think of.

From: Marko Skvorc <marko.skvorc@anonymised.com>
Sent: ‎March‎ ‎18‎, ‎2013 ‎5‎:‎14‎ ‎PM
To: Jesse Eichar <jesse.eichar@anonymised.com89…>
CC: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] GN 2.8 ClassNotFoundException: CatalogReader

It’s working finally :slight_smile: I installed new version of JDK and now everything is ok. I really don’t know what went wrong yesterday.

On 18 March 2013 09:55, Marko Skvorc <marko.skvorc@anonymised.com> wrote:

sorry, I was looking at the wrong number. 1.6.0_25 is correct java version

On 18 March 2013 09:53, Jesse Eichar <jesse.eichar@anonymised.com.189…> wrote:

java 6?

From: Marko Skvorc <marko.skvorc@anonymised.com>
Sent: March 18, 2013 9:52 AM

To: Jesse Eichar <jesse.eichar@anonymised.com>
CC: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] GN 2.8 ClassNotFoundException: CatalogReader

Java version is 20.0-b11 and war is downloaded from sourceforge project site.

On 18 March 2013 09:35, Jesse Eichar <jesse.eichar@anonymised.com> wrote:

I am trying to remember where I have seen this problem. I have had it myself… Obviously a jar is missing or there is a conflict with the xerces version you have.

Are you building the war yourself?
What version of java?

Jesse

From: Marko Skvorc <marko.skvorc@anonymised.com>
Sent: March 18, 2013 1:04 AM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] GN 2.8 ClassNotFoundException: CatalogReader

Hi everyone!

I’m having a problem with GN 2.8. I downloaded GN 2.8 source from github and imported it in eclipse. Several builds and deploys were ok, but then something strange happened and now I’m unable to start GN any more. Stacktrace is shown below. I also downloaded war for version 2.8 and deployed it directly to tomcat (without using eclipse) but the problem is the same. I also tried another version of tomcat but without success. Version 2.6.4 is working ok. Where could be the problem?

Thank you.

geonetwork log

2013-03-18 00:57:36,217 WARN [jeeves.dbmspool] - Using transaction isolation setting READ_COMMITTED
2013-03-18 00:57:39,560 INFO [jeeves.apphand] - Initializing GeoNetwork 2.8.0.0 …
2013-03-18 00:57:39,560 WARN [geonetwork.data.directory] - - Data directory initialization: null
2013-03-18 00:57:39,560 WARN [geonetwork.data.directory] - - Data directory properties is not set. Use geonetwork.dir or geonetwork.dir properties.
2013-03-18 00:57:39,560 WARN [geonetwork.data.directory] - - Data directory provided could not be used. Using default location: D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\data
2013-03-18 00:57:39,560 INFO [jeeves.apphand] - Data directory: D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\data
2013-03-18 00:57:39,560 INFO [jeeves.apphand] - jeeves.xml.catalog.files property set to D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\oasis-catalog.xml;D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\data\config\schemaplugin-uri-catalog.xml
2013-03-18 00:57:39,560 INFO [jeeves.apphand] - mime-mappings property set to D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\mime-types.properties
2013-03-18 00:57:39,638 INFO [jeeves.apphand] - - Database connection on jdbc:h2:geonetwork;LOCK_TIMEOUT=20000;MVCC=TRUE …
2013-03-18 00:57:39,638 INFO [jeeves.apphand] - Found an existing GeoNetwork database.
2013-03-18 00:57:39,638 INFO [jeeves.apphand] - - Thread Pool…
2013-03-18 00:57:39,638 INFO [jeeves.apphand] - - Setting manager…
2013-03-18 00:57:39,654 INFO [jeeves.apphand] - - Migration …
2013-03-18 00:57:39,654 INFO [jeeves.apphand] - Webapp version:2.8.0 subversion:0
2013-03-18 00:57:39,654 INFO [jeeves.apphand] - Database version:2.8.0 subversion:0
2013-03-18 00:57:39,654 INFO [jeeves.apphand] - Webapp version = Database version, no migration task to apply.
2013-03-18 00:57:39,654 INFO [jeeves.apphand] - - Z39.50…
2013-03-18 00:57:39,669 INFO [jeeves.apphand] - Repositories file built from template.
2013-03-18 00:57:40,402 INFO [jeeves.apphand] - Server is Enabled.
2013-03-18 00:57:40,418 INFO [jeeves.apphand] - - Schema manager…
2013-03-18 00:57:40,418 INFO [jeeves.apphand] - - Schema plugins directory: D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\data\config\schema_plugins
2013-03-18 00:57:40,418 INFO [jeeves.apphand] - - Schema Catalog File : D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\data\config\schemaplugin-uri-catalog.xml
2013-03-18 00:57:40,434 DEBUG [jeeves] - Using oasis catalog files D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\oasis-catalog.xml;D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\data\config\schemaplugin-uri-catalog.xml
2013-03-18 00:57:40,434 DEBUG [jeeves] - Using catalog resolver verbosity 1
2013-03-18 00:58:04,215 WARN [jeeves.dbmspool] - Using transaction isolation setting READ_COMMITTED
2013-03-18 00:58:04,293 INFO [jeeves.apphand] - Initializing GeoNetwork 2.8.0.0 …
2013-03-18 00:58:04,293 WARN [geonetwork.data.directory] - - Data directory initialization: D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\data
2013-03-18 00:58:04,293 INFO [jeeves.apphand] - Data directory: D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\data
2013-03-18 00:58:04,293 INFO [jeeves.apphand] - Overriding jeeves.xml.catalog.files property (was set to D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\oasis-catalog.xml;D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\data\config\schemaplugin-uri-catalog.xml)
2013-03-18 00:58:04,293 INFO [jeeves.apphand] - jeeves.xml.catalog.files property set to D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\oasis-catalog.xml;D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\data\config\schemaplugin-uri-catalog.xml
2013-03-18 00:58:04,293 INFO [jeeves.apphand] - Overriding mime-mappings property (was set to D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\mime-types.properties)
2013-03-18 00:58:04,293 INFO [jeeves.apphand] - mime-mappings property set to D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\mime-types.properties
2013-03-18 00:58:04,309 INFO [jeeves.apphand] - - Database connection on jdbc:h2:geonetwork;LOCK_TIMEOUT=20000;MVCC=TRUE …
2013-03-18 00:58:04,309 INFO [jeeves.apphand] - Found an existing GeoNetwork database.
2013-03-18 00:58:04,309 INFO [jeeves.apphand] - - Thread Pool…
2013-03-18 00:58:04,309 INFO [jeeves.apphand] - - Setting manager…
2013-03-18 00:58:04,309 INFO [jeeves.apphand] - - Migration …
2013-03-18 00:58:04,309 INFO [jeeves.apphand] - Webapp version:2.8.0 subversion:0
2013-03-18 00:58:04,309 INFO [jeeves.apphand] - Database version:2.8.0 subversion:0
2013-03-18 00:58:04,309 INFO [jeeves.apphand] - Webapp version = Database version, no migration task to apply.
2013-03-18 00:58:04,309 INFO [jeeves.apphand] - - Z39.50…
2013-03-18 00:58:04,309 INFO [jeeves.apphand] - Repositories file built from template.
2013-03-18 00:58:04,387 INFO [jeeves.apphand] - Server is Enabled.
2013-03-18 00:58:04,387 INFO [jeeves.apphand] - - Schema manager…
2013-03-18 00:58:04,387 INFO [jeeves.apphand] - - Schema plugins directory: D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\data\config\schema_plugins
2013-03-18 00:58:04,387 INFO [jeeves.apphand] - - Schema Catalog File : D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\data\config\schemaplugin-uri-catalog.xml
2013-03-18 00:58:04,402 ERROR [org.jzkit.z3950.server.Z3950Listener] - Problem
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
at java.net.ServerSocket.bind(ServerSocket.java:328)
at java.net.ServerSocket.(ServerSocket.java:194)
at java.net.ServerSocket.(ServerSocket.java:106)
at org.jzkit.z3950.server.Z3950Listener.run(Z3950Listener.java:69)
2013-03-18 00:58:04,402 DEBUG [jeeves] - Using oasis catalog files D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\oasis-catalog.xml;D:\Programs\apache-tomcat-7.0.37\webapps\geonetwork\WEB-INF\data\config\schemaplugin-uri-catalog.xml
2013-03-18 00:58:04,402 DEBUG [jeeves] - Using catalog resolver verbosity 1

Tomcat log:

javax.servlet.ServletException: Servlet.init() for servlet gn-servlet threw exception
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
	org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
	org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
	java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	java.lang.Thread.run(Thread.java:662)

java.lang.NoClassDefFoundError: org/apache/xml/resolver/readers/CatalogReader
	jeeves.utils.Resolver.setUpXmlResolver(Resolver.java:98)
	jeeves.utils.Resolver.<init>(Resolver.java:58)
	jeeves.utils.ResolverWrapper.getInstance(ResolverWrapper.java:37)
	jeeves.utils.Xml.validateRealGuts(Xml.java:1106)
	jeeves.utils.Xml.validate(Xml.java:973)
	jeeves.utils.Xml.validate(Xml.java:956)
	org.fao.geonet.kernel.SchemaManager.processSchema(SchemaManager.java:1246)
	org.fao.geonet.kernel.SchemaManager.<init>(SchemaManager.java:144)
	org.fao.geonet.kernel.SchemaManager.getInstance(SchemaManager.java:169)
	org.fao.geonet.Geonetwork.start(Geonetwork.java:276)
	jeeves.server.JeevesEngine.initAppHandler(JeevesEngine.java:541)
	jeeves.server.JeevesEngine.init(JeevesEngine.java:170)
	jeeves.server.sources.http.JeevesServlet.init(JeevesServlet.java:85)
	javax.servlet.GenericServlet.init(GenericServlet.java:160)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
	org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
	org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
	java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	java.lang.Thread.run(Thread.java:662)


Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork