AnsweredAssumed Answered

HTTP 404 Error - Catalina won't start

Question asked by d_clark on Jan 26, 2009
Latest reply on Jan 26, 2009 by d_clark
Hello,

I'm currently having trouble getting Tomcat/Catalina to start. I was making a startup script simply calling ../alfresco.sh start, however, now I can't get Catalina to start, resulting in HTTP 404 errors when browsing to the alfresco web client. The default Tomcat homepage DOES load, however. It says port 8080 is in use, however, I don't have any services using that port already. Any thoughts? Logs below.
More details…

Mac OS X 10.4.11, JRE 1.5, Tomcat 5.5.23

I've checked and killed any extra java processes before starting with no avail.

Thank you.

Jan 26, 2009 1:33:13 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1690 ms
Jan 26, 2009 1:33:14 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 26, 2009 1:33:14 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
Jan 26, 2009 1:33:14 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 26, 2009 1:33:15 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
Jan 26, 2009 1:33:52 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jan 26, 2009 1:33:52 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
Jan 26, 2009 1:33:55 PM org.apache.coyote.http11.Http11BaseProtocol start
SEVERE: Error starting endpoint
java.net.BindException: Address already in use:8080
   at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:298)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:313)
   at org.apache.coyote.http11.Http11BaseProtocol.start(Http11BaseProtocol.java:151)
   at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:76)
   at org.apache.catalina.connector.Connector.start(Connector.java:1090)
   at org.apache.catalina.core.StandardService.start(StandardService.java:457)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Jan 26, 2009 1:33:55 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.net.BindException: Address already in use:8080
   at org.apache.catalina.connector.Connector.start(Connector.java:1097)
   at org.apache.catalina.core.StandardService.start(StandardService.java:457)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Jan 26, 2009 1:33:55 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 41951 ms
Jan 26, 2009 1:33:55 PM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
   at java.net.ServerSocket.bind(ServerSocket.java:319)
   at java.net.ServerSocket.<init>(ServerSocket.java:185)
   at org.apache.catalina.core.StandardServer.await(StandardServer.java:363)
   at org.apache.catalina.startup.Catalina.await(Catalina.java:616)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Jan 26, 2009 1:33:55 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jan 26, 2009 1:33:56 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jan 26, 2009 1:33:56 PM org.apache.catalina.connector.MapperListener destroy
WARNING: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
   at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:162)
   at org.apache.catalina.connector.Connector.stop(Connector.java:1138)
   at org.apache.catalina.core.StandardService.stop(StandardService.java:519)
   at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
   at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:645)
Jan 26, 2009 1:33:56 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jan 26, 2009 1:34:29 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jan 26, 2009 1:34:30 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jan 26, 2009 1:34:30 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jan 26, 2009 1:35:54 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 26, 2009 1:35:54 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1590 ms
Jan 26, 2009 1:35:55 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 26, 2009 1:35:55 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
Jan 26, 2009 1:35:55 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 26, 2009 1:35:56 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
Jan 26, 2009 1:36:47 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jan 26, 2009 1:36:47 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
Jan 26, 2009 1:36:51 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jan 26, 2009 1:36:51 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jan 26, 2009 1:36:52 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 57685 ms

Outcomes