[Geoserver-users] NullPointerException upon starting GeoServer 2.4.2 via Tomcat 7

Hello,
"FAIL - Application at context path /geoserver could not be started"
and the attached Tomcat log starts with:
java.lang.NullPointerException
  at
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes(XSDSchemaImpl.java:2065)

catalina-16-23.out
<http://osgeo-org.1560.x6.nabble.com/file/n5094496/catalina-16-23.out&gt;

The war file was downloaded correctly and extracted by Tomcat. The file
permissions are correct.
Other applications work well under the same Tomcat 7.

Debian ("Jessie")
Tomcat 7.0.42

java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-5)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

Any ideas?

Thanks for your attention,
Menashè

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/NullPointerException-upon-starting-GeoServer-2-4-2-via-Tomcat-7-tp5094496.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Menashè,

this may not be related anyhow, do you have the chance to use the standard Oracle JVM?
Cheers,
Carlo

···

2013/12/16 menashe.eliezer <menashe.eliezer@anonymised.com>

Hello,
“FAIL - Application at context path /geoserver could not be started”
and the attached Tomcat log starts with:
java.lang.NullPointerException
at
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes(XSDSchemaImpl.java:2065)

catalina-16-23.out
<http://osgeo-org.1560.x6.nabble.com/file/n5094496/catalina-16-23.out>

The war file was downloaded correctly and extracted by Tomcat. The file
permissions are correct.
Other applications work well under the same Tomcat 7.

Debian (“Jessie”)
Tomcat 7.0.42

java version “1.7.0_21”
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-5)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

Any ideas?

Thanks for your attention,
Menashè


View this message in context: http://osgeo-org.1560.x6.nabble.com/NullPointerException-upon-starting-GeoServer-2-4-2-via-Tomcat-7-tp5094496.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Rapidly troubleshoot problems before they affect your business. Most IT
organizations don’t have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
GeoSolutions will be closed for Christmas Holidays from 23/12/2013 to 06/01/2014
==

Dott. Carlo Cancellieri
@cancellieric
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Menashè,

do you have any other application deployed in the same tomcat instance?

Take also a look here:http://osgeo-org.1560.x6.nabble.com/Problem-parsing-GML-with-geotools-in-Jdeveloper-JDK-1-5-td4327418.html

Cheers,
Carlo

···

2013/12/16 carlo cancellieri <carlo.cancellieri@anonymised.com>

Menashè,

this may not be related anyhow, do you have the chance to use the standard Oracle JVM?
Cheers,
Carlo

==
GeoSolutions will be closed for Christmas Holidays from 23/12/2013 to 06/01/2014
==

Dott. Carlo Cancellieri
@cancellieric
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


2013/12/16 menashe.eliezer <menashe.eliezer@anonymised.com>

Hello,
“FAIL - Application at context path /geoserver could not be started”
and the attached Tomcat log starts with:
java.lang.NullPointerException
at
org.eclipse.xsd.impl.XSDSchemaImpl.reconcileAttributes(XSDSchemaImpl.java:2065)

catalina-16-23.out
<http://osgeo-org.1560.x6.nabble.com/file/n5094496/catalina-16-23.out>

The war file was downloaded correctly and extracted by Tomcat. The file
permissions are correct.
Other applications work well under the same Tomcat 7.

Debian (“Jessie”)
Tomcat 7.0.42

java version “1.7.0_21”
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-5)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

Any ideas?

Thanks for your attention,
Menashè


View this message in context: http://osgeo-org.1560.x6.nabble.com/NullPointerException-upon-starting-GeoServer-2-4-2-via-Tomcat-7-tp5094496.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Rapidly troubleshoot problems before they affect your business. Most IT
organizations don’t have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
GeoSolutions will be closed for Christmas Holidays from 23/12/2013 to 06/01/2014
==

Dott. Carlo Cancellieri
@cancellieric
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Thanks Carlo. I've installed the latest Oracle JDK:
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

Yes, there are other deployed applications.
Actually, we've found a workaround: removing xmlparserv2.jar from
/usr/share/tomcat7/lib.
This library conflicts with geoserver and results with the exception that
can be found in the previously attached log file.
*xmlparserv2.jar *is a part of Oracle 12 database server. It's required by
one of the other web services in our Tomcat installation. Since this jar is
used by Tomcat already before loading the other web service, we cannot limit
it only to this service and avoiding the conflict. Already tried.
We have created a "thin" version of the jar which includes only the
following content, but we still see the above exception.

Any ideas?

Tree of the thin xmlparserv2.jar:
oracle/
oracle/xml/
oracle/xml/async/
oracle/xml/binxml/
oracle/xml/comp/
oracle/xml/fdom/
oracle/xml/fisupport/
oracle/xml/jaxp/
oracle/xml/jdwp/
oracle/xml/mesg/
oracle/xml/parser/
oracle/xml/parser/schema/
oracle/xml/parser/v2/
oracle/xml/scalable/
oracle/xml/util/
oracle/xml/xpath/
oracle/xml/xqxp/
oracle/xml/xqxp/datamodel/
oracle/xml/xqxp/functions/
oracle/xml/xqxp/functions/builtIns/
oracle/xml/xslt/
oracle/xml/xti/
org/
org/w3c/

Detailed version is attached. jar-tf-xmlparserv2.jar.txt
<http://osgeo-org.1560.x6.nabble.com/file/n5094704/jar-tf-xmlparserv2.jar.txt&gt;

Thanks,
Menashè

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/NullPointerException-upon-starting-GeoServer-2-4-2-via-Tomcat-7-tp5094496p5094704.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Menashè,

geoserver ships many dependencies so you may encounter many other problem (at runtime) if you deploy it in the same container with other application.

Usually we suggest to configure multiple instances of tomcat to keep classloaders separated.

Alternatively you could try to use jboss which supports classloader isolation (http://geo-solutions.blogspot.it/2009/07/deploying-geoserver-on-jboss-as-5x.html).

Cheers,
Carlo

···

==
GeoSolutions will be closed for Christmas Holidays from 23/12/2013 to 06/01/2014
==

Dott. Carlo Cancellieri
@cancellieric
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Carlo,
Thank you for the good advice.
Geoserver was tested mainly with Tomcat instead of Jboss or Resin, so we'll
have multiple instances of Tomcat as documented in Tomcat's RUNNING.txt.

Best regards,
Menashè

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/NullPointerException-upon-starting-GeoServer-2-4-2-via-Tomcat-7-tp5094496p5094865.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Just confirming that avoiding the compatibility problem using a separate
Tomcat instance resolves the problem.

Best regards,
Menashè

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/NullPointerException-upon-starting-GeoServer-2-4-2-via-Tomcat-7-tp5094496p5095272.html
Sent from the GeoServer - User mailing list archive at Nabble.com.