I'm working through the OpenGeo workshop and I'm stuck with setting up a GeoServer. When I try to access the Web Admin Interface localhost:8080/geoserver/
, Tomcat reports a "HTTP 404 Status" error page. The same holds for the GeoWebCache configuration page.
Some additional info:
- My system: Ubuntu 13.04 with OpenGeo Suite 3.0.2 installed as described in the official reference. Things work fine on windows by the way.
- I started Tomcat 6.0.35 via
$/etc/init.d/tomcat6 start
as the installation details point out. The log-file of tomcat at
/var/log/tomcat6
reports a "severe" FileNotFoundException for the file masterpw.xml:SEVERE: Exception sending context initialized event to listener instance of class org.geoserver.platform.GeoServerContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error occured reading security configuration; nested exception is java.io.FileNotFoundException: /usr/share/opengeo-suite-data/geoserver_data/security/masterpw.xml (No such file or directory)
At the end of geoserver.log in
/var/log/geoserver
the following warning is reported:WARN [support.DisposableBeanAdapter] - Invocation of destroy method failed on bean with name 'geoServerLoader': org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'GWCLifeCycleHandler': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
I'm new to web mapping and the above steps together with an internet recherche didn't resolve my problem. Do you have any suggestions?
Update: Setting up a GeoServer outside of the OpenGeo framework works just fine. The key is that there is an OS-independent binary provided on GeoServer.org using a webapp bundled in Jetty instead of Apache Tomcat. The steps it took were:
- Download and unzip
geoserver-2.3.2-bin.zip
. - Move the folder to your preferred installation path and cd into it.
Add the environmental variable JAVA_HOME to your PATH:
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-amd64/jre
Note: This path is distribution dependent (here: Ubuntu 13.04)
Shut down the Apache Tomcat servlet engine:
sudo service tomcat6 stop
Start up the Server by executing the provided java archive in the folder:
java -jar start.jar
The Web Admin Interface is now available via web browser under
localhost:8080/geoserver
However, I suspect that if one knows about how to assign port numbers etc it might still work with Apache as installed by the OpenGeo Suite. Suggestions are welcome.
/usr/share/opengeo-suite-data/geoserver_data/security/masterpw.xml (No such file or directory)
when you're running geoserver or geoserver itself is trying to get things together with tomcat apache, things are not able to communicate due to permission problems. Try as root (sudo
I think in ubuntu) and see if your problem goes away.su -
, press enter and then enter the password. Where did you install tomcat? if you installed under/usr/
then it belongs to the root domain, I normally install tomcat under/opt/
in my rhel, so I can access there without being root and also have no problems when launch my app