404 Error - The requested resource () is not available

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

404 Error - The requested resource () is not available

arpieb
OK, got one for the community.  I'm setting up a dedicated VPS server strictly to run GeoServer 2.x.  I have a clean VPS with only the following on it:

- CentOS 5.6 64-bit, 1GB physical, 2GB swap, 40GB HDD
- Tomcat 5.5.23
- GeoServer 2.1.1

Everything has been installed via the yum package manager, so everything is running with defaults.  I fire up Tomcat and try to browse to the default page at http://localhost:8080/geoserver and get the following error page back:

HTTP Status 404 -
type Status report
message
description The requested resource () is not available.
Apache Tomcat/5.5.23

Reviewing the fresh logfile I have the following entries (taken the liberty of highlighting what I suspect are the lines recording the failure's cause):

Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
Created MBeanServer with ID: mqghv8:gpk1vl5v.0:localhost:1
30-Jun-11 2:31:01 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib64/gcj-4.1.2
30-Jun-11 2:31:01 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
30-Jun-11 2:31:01 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 496 ms
30-Jun-11 2:31:01 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
30-Jun-11 2:31:01 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
30-Jun-11 2:31:01 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
30-Jun-11 2:31:01 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive geoserver.war
30-Jun-11 2:31:03 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/usr/share/tomcat5/webapps/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
30 Jun 14:31:26 ERROR [[localhost].[/geoserver]] - Error configuring application listener of class org.geoserver.GeoserverInitStartupListener
java.lang.NoClassDefFoundError: org.geoserver.GeoserverInitStartupListener

   at java.lang.Class.initializeClass(libgcj.so.7rh)
   at java.lang.Class.newInstance(libgcj.so.7rh)
   at org.apache.catalina.core.StandardContext.listenerStart(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.core.StandardContext.start(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.core.ContainerBase.addChildInternal(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.core.ContainerBase.addChild(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.core.StandardHost.addChild(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.startup.HostConfig.deployWAR(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.startup.HostConfig.deployWARs(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.startup.HostConfig.deployApps(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.startup.HostConfig.start(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.core.StandardHost.start(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.core.StandardEngine.start(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.core.StandardService.start(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.core.StandardServer.start(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.startup.Catalina.start(catalina-5.5.23.jar.sodxx6ls.so)
   at java.lang.reflect.Method.invoke(libgcj.so.7rh)
   at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so)
   at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so)
Caused by: java.lang.ClassNotFoundException: java.util.concurrent.BlockingQueue
   at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.23.jar.sodxx6ls.so)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.23.jar.sodxx6ls.so)
   at java.lang.Class.initializeClass(libgcj.so.7rh)
   ...22 more

30 Jun 14:31:26 ERROR [[localhost].[/geoserver]] - Skipped installing application listeners due to previous error(s)
30-Jun-11 2:31:26 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
30-Jun-11 2:31:26 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/geoserver] startup failed due to previous errors
30-Jun-11 2:31:26 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
30-Jun-11 2:31:26 PM org.apache.catalina.connector.MapperListener init
INFO: Registering Hosts
30-Jun-11 2:31:26 PM org.apache.catalina.connector.MapperListener init
INFO: Registering WebModule Contexts
30-Jun-11 2:31:26 PM org.apache.catalina.connector.MapperListener init
INFO: Registering Servlets
30-Jun-11 2:31:26 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
30-Jun-11 2:31:26 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/99  config=null
30-Jun-11 2:31:26 PM org.apache.catalina.connector.MapperListener init
INFO: Registering Hosts
30-Jun-11 2:31:26 PM org.apache.catalina.connector.MapperListener init
INFO: Registering WebModule Contexts
30-Jun-11 2:31:26 PM org.apache.catalina.connector.MapperListener init
INFO: Registering Servlets
30-Jun-11 2:31:26 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
30-Jun-11 2:31:26 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 25347 ms

Nothing else is running on this server.  I checked the webapps path, and Tomcat has built out the geoserver directory tree from the WAR file and it looks like a match to what I have on another machine (data dirs notwithstanding).  The JAR file listed in the validateJarFile log entry above exists and is readable by the tomcat user, which is what the Tomcat service is running as.

Thanks in advance for any help/suggestions/requests for add'l info!

-R
Reply | Threaded
Open this post in threaded view
|

Re: 404 Error - The requested resource () is not available

arpieb
Bueller, Bueller?  Anyone run into this before or have any suggestions?  I'm totally dead in the water here.

I did manage to resolve the validateJarFile error - the JARfile given in the log was conflicting with a built-in Tomcat 5.5 JARfile, so removing it per another Tomcat forum removed that error in the logfile.

I have also tried going to a previous version of GeoServer (2.1.0) and am still getting the same error - was hoping maybe it was a change in 2.1.1 causing problems.

Help!