[Geoserver-users] I am having trouble installing geoserver. Any help appreciated

Hi Everyone,

I'm hoping someone can help me here. I have been asked to setup a geoserver
installation for a department here.

I installed it on a VM running Centos 5 (uname -r gives 2.6.18-92.1.18.el5)

I installed it using the instructions at
http://geoserver.org/display/GEOSDOC/1.1.4+CentOS+(Red+Hat)+5.1+Install

I can get Tomcat running fine, login to manager etc.

I installed the latest stable WAR package. However when I try to run it, I
get the error FAIL - Application at context path /geoserver could not be
started.

If you delve in and look at the logs, I think the error revolves around the
following in catalina.out:

[root@anonymised.com logs]# more < catalina.2008-12-15.log
Dec 15, 2008 3:56:26 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Dec 15, 2008 3:56:26 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/geoserver] startup failed due to previous errors.

Looking further, into the localhost log I see the following:

[root@anonymised.com logs]# more < localhost.2008-12-15.log
Dec 15, 2008 3:56:20 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Dec 15, 2008 3:56:26 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Exception sending context initialized event to listener instance of
clas
s org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean
wit
h name 'dataConfig' defined in URL
[jar:file:/opt/apache-tomcat-6.0.18/webapps/g
eoserver/WEB-INF/lib/main-1.7.1.jar!/applicationContext.xml]: Instantiation
of b
ean failed; nested exception is
org.springframework.beans.BeanInstantiationExcep
tion: Could not instantiate bean class
[org.vfny.geoserver.config.DataConfig]: C
onstructor threw exception; nested exception is
java.lang.ExceptionInInitializer
Error
        at
org.springframework.beans.factory.support.ConstructorResolver.autowir
eConstructor(ConstructorResolver.java:254)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)

I think the error is in there around the springwork context, but I really
have no java experience.

Any ideas/help would be appreciated. I did google but to no avail.

Also the java version I am running is below:

[tomcat@anonymised.com ~]$ java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)

Many thanks

Stuart

--
View this message in context: http://www.nabble.com/I-am-having-trouble-installing-geoserver.-Any-help-appreciated-tp21030540p21030540.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Stuart,

The includes error only looks like part of the error log. Would you be able to include the full stack trace. With some more info we should be able to nail down and get you up and running :).

Also... did you explicitly set the geoserver data directory? If so I would double check that it points to the right directory as this is a common mistake.

-Justin

StuartB wrote:

Hi Everyone,

I'm hoping someone can help me here. I have been asked to setup a geoserver
installation for a department here.

I installed it on a VM running Centos 5 (uname -r gives 2.6.18-92.1.18.el5)

I installed it using the instructions at
http://geoserver.org/display/GEOSDOC/1.1.4+CentOS+(Red+Hat)+5.1+Install

I can get Tomcat running fine, login to manager etc.

I installed the latest stable WAR package. However when I try to run it, I
get the error FAIL - Application at context path /geoserver could not be
started.

If you delve in and look at the logs, I think the error revolves around the
following in catalina.out:

[root@anonymised.com logs]# more < catalina.2008-12-15.log
Dec 15, 2008 3:56:26 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Dec 15, 2008 3:56:26 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/geoserver] startup failed due to previous errors.

Looking further, into the localhost log I see the following:

[root@anonymised.com logs]# more < localhost.2008-12-15.log
Dec 15, 2008 3:56:20 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Dec 15, 2008 3:56:26 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Exception sending context initialized event to listener instance of
clas
s org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean
wit
h name 'dataConfig' defined in URL
[jar:file:/opt/apache-tomcat-6.0.18/webapps/g
eoserver/WEB-INF/lib/main-1.7.1.jar!/applicationContext.xml]: Instantiation
of b
ean failed; nested exception is
org.springframework.beans.BeanInstantiationExcep
tion: Could not instantiate bean class
[org.vfny.geoserver.config.DataConfig]: C
onstructor threw exception; nested exception is
java.lang.ExceptionInInitializer
Error
        at
org.springframework.beans.factory.support.ConstructorResolver.autowir
eConstructor(ConstructorResolver.java:254)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)

I think the error is in there around the springwork context, but I really
have no java experience.

Any ideas/help would be appreciated. I did google but to no avail.

Also the java version I am running is below:

[tomcat@anonymised.com ~]$ java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)

Many thanks

Stuart

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Hi,

Sorry for the delay, just I have been off for a few days. The problem is
easy when you know where to look. It was a security problem, defined in the
catalina.conf fine. In my case I came across it by chance.

The following additions need to be made:

// The permissions granted to Geoserver
grant codebase "file:/var/lib/tomcat5.5/webapps/geoserver/-" {
        permission java.io.FilePermission
"/var/lib/tomcat5.5/webapps/geoserver/data/-", "read,write,delete";
        permission java.util.PropertyPermission "*", "read,write";
        permission java.util.logging.LoggingPermission "control";
        permission java.lang.RuntimePermission "getClassLoader";
        permission java.lang.RuntimePermission "preferences";
        permission java.lang.RuntimePermission "shutdownHooks";
        permission java.lang.reflect.ReflectPermission
"suppressAccessChecks";
};

Anyhow, just thought I would report back and thanks for the help!

Regards

Stuart

Justin Deoliveira-6 wrote:

Hi Stuart,

The includes error only looks like part of the error log. Would you be
able to include the full stack trace. With some more info we should be
able to nail down and get you up and running :).

Also... did you explicitly set the geoserver data directory? If so I
would double check that it points to the right directory as this is a
common mistake.

-Justin

StuartB wrote:

Hi Everyone,

I'm hoping someone can help me here. I have been asked to setup a
geoserver
installation for a department here.

I installed it on a VM running Centos 5 (uname -r gives
2.6.18-92.1.18.el5)

I installed it using the instructions at
http://geoserver.org/display/GEOSDOC/1.1.4+CentOS+(Red+Hat)+5.1+Install

I can get Tomcat running fine, login to manager etc.

I installed the latest stable WAR package. However when I try to run it,
I
get the error FAIL - Application at context path /geoserver could not be
started.

If you delve in and look at the logs, I think the error revolves around
the
following in catalina.out:

[root@anonymised.com logs]# more < catalina.2008-12-15.log
Dec 15, 2008 3:56:26 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Dec 15, 2008 3:56:26 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/geoserver] startup failed due to previous errors.

Looking further, into the localhost log I see the following:

[root@anonymised.com logs]# more < localhost.2008-12-15.log
Dec 15, 2008 3:56:20 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Dec 15, 2008 3:56:26 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Exception sending context initialized event to listener instance
of
clas
s org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating
bean
wit
h name 'dataConfig' defined in URL
[jar:file:/opt/apache-tomcat-6.0.18/webapps/g
eoserver/WEB-INF/lib/main-1.7.1.jar!/applicationContext.xml]:
Instantiation
of b
ean failed; nested exception is
org.springframework.beans.BeanInstantiationExcep
tion: Could not instantiate bean class
[org.vfny.geoserver.config.DataConfig]: C
onstructor threw exception; nested exception is
java.lang.ExceptionInInitializer
Error
        at
org.springframework.beans.factory.support.ConstructorResolver.autowir
eConstructor(ConstructorResolver.java:254)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)

I think the error is in there around the springwork context, but I really
have no java experience.

Any ideas/help would be appreciated. I did google but to no avail.

Also the java version I am running is below:

[tomcat@anonymised.com ~]$ java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)

Many thanks

Stuart

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/I-am-having-trouble-installing-geoserver.-Any-help-appreciated-tp21030540p21073155.html
Sent from the GeoServer - User mailing list archive at Nabble.com.