[Geoserver-users] Geoserver WAR file Errors

Hello everyone!

My System is a Linux CentOS 5.4 in VirtualBox 3.0.12 with Apache-Tomcat
6.0.20 and Java JRE 6 plus PostgreSQL+Postgis database.

Additionally Geoserver 2.0a with gdal and Image IO is installed and
everything is up and running fine.

I would like to deploy geoserver.war file in tomcat so that i can start the
Server from the tomcat manager. BTW: is it better to run geoserver in tomcat
or as a seperate application (security/preformance?)

Starting catalina with ./catalina.sh start no error is displayed, but the
"run" command gives me:

The APR based Apache Tomcat Native library which allows optimal performance
in production environments was not found on the java.library.path:

As far as I know i can ignore this massage, right?

After moving the geoserver.war file into the webapps folder
(./webapps/geoserver.war) of Tomcat I get the following list of errors when
starting catalina:

The whole list is attached:
http://old.nabble.com/file/p26614796/geoserverERRORS.txt geoserverERRORS.txt

[centosuser@anonymised.com ~]$
/geoSERVER/apacheTOMCAT6/apache-tomcat-6.0.20/bin/catalina.sh run
Using CATALINA_BASE: /geoSERVER/apacheTOMCAT6/apache-tomcat-6.0.20
Using CATALINA_HOME: /geoSERVER/apacheTOMCAT6/apache-tomcat-6.0.20
Using CATALINA_TMPDIR: /geoSERVER/apacheTOMCAT6/apache-tomcat-6.0.20/temp
Using JRE_HOME: /geoSERVER/sunJAVA/jdk1.6.0_17/jre
PM 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:
.
.
.
.
SEVERE: Exception fixing docBase: {0}
java.io.FileNotFoundException:
/geoSERVER/apacheTOMCAT6/apache-tomcat-6.0.20/webapps/geoserver/META-INF/MANIFEST.MF
(No such file or directory)
        at java.io.FileOutputStream.open(Native Method)

(but this file is included in the META-INF folder)
.
.
.
.
        
PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO:
validateJarFile(/geoSERVER/apacheTOMCAT6/apache-tomcat-6.0.20/work/Catalina/localhost/geoserver/WEB-INF/lib/servlet-api-2.4.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
PM it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
WARNING: Native library load failed.java.lang.UnsatisfiedLinkError: no
gdaljni in java.library.path
ERROR [geoserver.logging] - Could not configure log4j overrides
java.lang.NullPointerException
        at java.io.File.<init>(File.java:222)
        at
org.geoserver.logging.LoggingStartupContextListener.contextInitialized(LoggingStartupContextListener.java:63)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
.
.
.
.

Than he is loading lots of xml bean definitions until:

ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'geoServerLoader' defined in URL
[jar:file:/geoSERVER/apacheTOMCAT6/apache-tomcat-6.0.20/work/Catalina/localhost/geoserver/WEB-INF/lib/main-2.0.0.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
java.lang.NullPointerException
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
.
.
.
.

PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/geoserver] startup failed due to previous errors
PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/148 config=null
PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 20522 ms

Any help is much appreciated! Thank you in advance!

Michael

--
View this message in context: http://old.nabble.com/Geoserver-WAR-file-Errors-tp26614796p26614796.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ok it is solved!

There was a problem with the user permissions! Now it is working, but it
seams to be that there is a problem with getRequest in tomcat.

Cheers
Michael

Michael_GIS wrote:

Hello everyone!

My System is a Linux CentOS 5.4 in VirtualBox 3.0.12 with Apache-Tomcat
6.0.20 and Java JRE 6 plus PostgreSQL+Postgis database.

Additionally Geoserver 2.0a with gdal and Image IO is installed and
everything is up and running fine.

I would like to deploy geoserver.war file in tomcat so that i can start
the Server from the tomcat manager. BTW: is it better to run geoserver in
tomcat or as a seperate application (security/preformance?)

Starting catalina with ./catalina.sh start no error is displayed, but the
"run" command gives me:

The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:

As far as I know i can ignore this massage, right?

After moving the geoserver.war file into the webapps folder
(./webapps/geoserver.war) of Tomcat I get the following list of errors
when starting catalina:

The whole list is attached:
http://old.nabble.com/file/p26614796/geoserverERRORS.txt
geoserverERRORS.txt

[centosuser@anonymised.com ~]$
/geoSERVER/apacheTOMCAT6/apache-tomcat-6.0.20/bin/catalina.sh run
Using CATALINA_BASE: /geoSERVER/apacheTOMCAT6/apache-tomcat-6.0.20
Using CATALINA_HOME: /geoSERVER/apacheTOMCAT6/apache-tomcat-6.0.20
Using CATALINA_TMPDIR: /geoSERVER/apacheTOMCAT6/apache-tomcat-6.0.20/temp
Using JRE_HOME: /geoSERVER/sunJAVA/jdk1.6.0_17/jre
PM 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:
.
.
.
.
SEVERE: Exception fixing docBase: {0}
java.io.FileNotFoundException:
/geoSERVER/apacheTOMCAT6/apache-tomcat-6.0.20/webapps/geoserver/META-INF/MANIFEST.MF
(No such file or directory)
        at java.io.FileOutputStream.open(Native Method)

(but this file is included in the META-INF folder)
.
.
.
.
        
PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO:
validateJarFile(/geoSERVER/apacheTOMCAT6/apache-tomcat-6.0.20/work/Catalina/localhost/geoserver/WEB-INF/lib/servlet-api-2.4.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
PM it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
WARNING: Native library load failed.java.lang.UnsatisfiedLinkError: no
gdaljni in java.library.path
ERROR [geoserver.logging] - Could not configure log4j overrides
java.lang.NullPointerException
        at java.io.File.<init>(File.java:222)
        at
org.geoserver.logging.LoggingStartupContextListener.contextInitialized(LoggingStartupContextListener.java:63)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
.
.
.
.

Than he is loading lots of xml bean definitions until:

ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'geoServerLoader' defined in URL
[jar:file:/geoSERVER/apacheTOMCAT6/apache-tomcat-6.0.20/work/Catalina/localhost/geoserver/WEB-INF/lib/main-2.0.0.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
java.lang.NullPointerException
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
.
.
.
.

PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/geoserver] startup failed due to previous errors
PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/148 config=null
PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 20522 ms

Any help is much appreciated! Thank you in advance!

Michael

--
View this message in context: http://old.nabble.com/Geoserver-WAR-file-Errors-tp26614796p26636379.html
Sent from the GeoServer - User mailing list archive at Nabble.com.