Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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:

  1. Download and unzip geoserver-2.3.2-bin.zip.
  2. Move the folder to your preferred installation path and cd into it.
  3. 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)

  4. Shut down the Apache Tomcat servlet engine:

    sudo service tomcat6 stop
    
  5. Start up the Server by executing the provided java archive in the folder:

    java -jar start.jar
    
  6. 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.

share|improve this question
    
It looks like your installation is corrupt, try deleting it and starting again. –  iant May 23 '13 at 9:03
1  
it doesn't look that the whole installation is corrupt though, I'd say that you have a "root" problem. Based on /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. –  Gery May 23 '13 at 9:13
    
@iant: I've tried reinstalling already but this was no remedy (though not hunting down every file but using the synaptic package manager). –  xandriksson May 23 '13 at 9:25
    
@Gery: sudo what exactly? I mean the config webpage should open without any previous actions except starting up tomcat maybe (which was done as root). –  xandriksson May 23 '13 at 9:29
    
this could help you with the root thing, I think you only need 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 –  Gery May 23 '13 at 9:33

1 Answer 1

up vote 1 down vote accepted

The Suite 3.0.2 Ubuntu Packages don't work with Ubuntu 13.04. Officially they are for Ubuntu 10.04 or 10.10 and they seem to work on 12.04 without trouble, but they break on 13.04.

share|improve this answer
    
Most probably true, I've just seen that the official install guide for Ubuntu states "This page will describe how to install GeoServer on Ubuntu 10.04 (Lucid). Later versions may work as well, but are not well-tested at this time." Truly, downgrading Ubuntu 13.04 to 12.04 resolved the problem for me. –  xandriksson May 24 '13 at 8:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.