tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jan gestre <ipcopper...@gmail.com>
Subject Re: Tomcat dies after starting
Date Thu, 02 Sep 2010 06:42:51 GMT
On Thu, Sep 2, 2010 at 2:09 PM, Wesley Acheson <wesley.acheson@gmail.com> wrote:
> This looks like you've got many instances started at once (at least the end
> part of it does). Ensure that it is shut down fully before starting again.
> Are you the only user on this machine or is it shared? Other users may have
> the same ports used for a given reason. Its intresting that the JK connector
> was able to connect.
>
> But basically it looks like its running. On that machine if your the only
> user try typing
>
> telnet localhost 8005
> SHUTDOWN
>
> Then clear the log file and startup again. See if you get any more
> "java.net.BindException" appearing in that log.
>
> For the record the bind exception means it couldn't attach to the port.
>
> Oh and a stack trace is not well explained here
> http://en.wikipedia.org/wiki/Stack_trace but it should give you the idea.
>
> from your own logs this is a single stack trace. The first line tells you
> the type of error (SocketException) along with a text descriptor of the
> error (Address already in use)
>
> The other lines tell you the Class name and method called. As this is a
> stack the error happened in the top line which was called by the line below
> etc etc.
>
> for example
>
>  at java.net.PlainSocketImpl.
>>
>> listen(PlainSocketImpl.java:380)
>
>
> means happened in a class called PlainSocketImpl in a method called listen.
> PlainSocketImpl.java:380 refers to the location in the physical file which
> is called PlainSocketImpl.java line number 380
>
>
> java.net.SocketException: Address already in use
>       at java.net.PlainSocketImpl.
>>
>> socketListen(Native Method)
>>        at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:380)
>>        at java.net.ServerSocket.bind(ServerSocket.java:320)
>>        at java.net.ServerSocket.<init>(ServerSocket.java:185)
>>        at java.net.ServerSocket.<init>(ServerSocket.java:141)
>>        at
>> org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
>>        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
>>        at
>> org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
>>        at
>> org.apache.catalina.connector.Connector.initialize(Connector.java:1014)
>>        at
>> org.apache.catalina.core.StandardService.initialize(StandardService.java:680)
>>        at
>> org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
>>        at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
>>        at org.apache.catalina.startup.Catalina.load(Catalina.java:548)
>>        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:597)
>>        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
>>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.Catalina load
>
>
>
>
>
> Regards,
>
> Wes
>
> Aug 24, 2010 4:06:00 PM org.apache.catalina.core.AprLifecycleListener init
>> INFO: The APR based Apache Tomcat Native library which allows optimal
>> performance in production environments was not found on the
>> java.library.path:
>>
>> /usr/java/jdk1.6.0_21/jre/lib/amd64/server:/usr/java/jdk1.6.0_21/jre/lib/amd64:/usr/java/jdk1.6.0_21/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
>> Aug 24, 2010 4:06:00 PM org.apache.catalina.core.AprLifecycleListener init
>> INFO: The APR based Apache Tomcat Native library which allows optimal
>> performance in production environments was not found on the
>> java.library.path:
>>
>> /usr/java/jdk1.6.0_21/jre/lib/amd64/server:/usr/java/jdk1.6.0_21/jre/lib/amd64:/usr/java/jdk1.6.0_21/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
>> Aug 24, 2010 4:06:01 PM org.apache.coyote.http11.Http11Protocol init
>> INFO: Initializing Coyote HTTP/1.1 on http-8080
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 754 ms
>> Aug 24, 2010 4:06:01 PM org.apache.coyote.http11.Http11Protocol init
>> SEVERE: Error initializing endpoint
>> java.net.SocketException: Address already in use
>>        at java.net.PlainSocketImpl.socketListen(Native Method)
>>        at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:380)
>>        at java.net.ServerSocket.bind(ServerSocket.java:320)
>>        at java.net.ServerSocket.<init>(ServerSocket.java:185)
>>        at java.net.ServerSocket.<init>(ServerSocket.java:141)
>>        at
>> org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
>>        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
>>        at
>> org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
>>        at
>> org.apache.catalina.connector.Connector.initialize(Connector.java:1014)
>>        at
>> org.apache.catalina.core.StandardService.initialize(StandardService.java:680)
>>        at
>> org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
>>        at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
>>        at org.apache.catalina.startup.Catalina.load(Catalina.java:548)
>>        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:597)
>>        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
>>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.Catalina load
>> SEVERE: Catalina.start
>> LifecycleException:  Protocol handler initialization failed:
>> java.net.SocketException: Address already in use
>>        at
>> org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
>>        at
>> org.apache.catalina.core.StandardService.initialize(StandardService.java:680)
>>        at
>> org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
>>        at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
>>        at org.apache.catalina.startup.Catalina.load(Catalina.java:548)
>>        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:597)
>>        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
>>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 1081 ms
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.core.StandardService start
>> INFO: Starting service Catalina
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.core.StandardService start
>> INFO: Starting service Catalina
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.core.StandardEngine start
>> INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.core.StandardEngine start
>> INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
>> deployDescriptor
>> INFO: Deploying configuration descriptor manager.xml
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
>> deployDescriptor
>> INFO: Deploying configuration descriptor manager.xml
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
>> deployDescriptor
>> INFO: Deploying configuration descriptor host-manager.xml
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
>> deployDescriptor
>> INFO: Deploying configuration descriptor host-manager.xml
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
>> deployDirectory
>> INFO: Deploying web application directory docs
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
>> deployDirectory
>> INFO: Deploying web application directory docs
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
>> deployDirectory
>> INFO: Deploying web application directory examples
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
>> deployDirectory
>> INFO: Deploying web application directory examples
>> Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
>> deployDirectory
>> INFO: Deploying web application directory ROOT
>> Aug 24, 2010 4:06:02 PM org.apache.catalina.startup.HostConfig
>> deployDirectory
>> INFO: Deploying web application directory ROOT
>> Aug 24, 2010 4:06:02 PM org.apache.coyote.http11.Http11Protocol start
>> SEVERE: Error starting endpoint
>> java.net.BindException: Address already in use <null>:8080
>>        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)
>>        at
>> org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:565)
>>        at
>> org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
>>        at
>> org.apache.catalina.connector.Connector.start(Connector.java:1087)
>>        at
>> org.apache.catalina.core.StandardService.start(StandardService.java:534)
>>        at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
>>        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:597)
>>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>> Caused by: java.net.BindException: Address already in use
>>        at java.net.PlainSocketImpl.socketBind(Native Method)
>>        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
>>        at java.net.ServerSocket.bind(ServerSocket.java:319)
>>        at java.net.ServerSocket.<init>(ServerSocket.java:185)
>>        at java.net.ServerSocket.<init>(ServerSocket.java:141)
>>        at
>> org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
>>        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
>>        ... 12 more
>> Aug 24, 2010 4:06:02 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
>> <null>:8080
>>        at
>> org.apache.catalina.connector.Connector.start(Connector.java:1094)
>>        at
>> org.apache.catalina.core.StandardService.start(StandardService.java:534)
>>        at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
>>        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:597)
>>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>> Aug 24, 2010 4:06:02 PM org.apache.catalina.startup.Catalina start
>> INFO: Server startup in 773 ms
>> Aug 24, 2010 4:06:02 PM org.apache.coyote.http11.Http11Protocol start
>> INFO: Starting Coyote HTTP/1.1 on http-8080
>> Aug 24, 2010 4:06:02 PM org.apache.jk.common.ChannelSocket init
>> INFO: JK: ajp13 listening on /0.0.0.0:8009
>> Aug 24, 2010 4:06:02 PM org.apache.jk.server.JkMain start
>> INFO: Jk running ID=0 time=0/23  config=null
>> Aug 24, 2010 4:06:02 PM org.apache.catalina.startup.Catalina start
>> INFO: Server startup in 840 ms
>> Aug 24, 2010 4:06:02 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:365)
>>        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:373)
>>        at org.apache.catalina.startup.Catalina.await(Catalina.java:662)
>>        at org.apache.catalina.startup.Catalina.start(Catalina.java:614)
>>        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:597)
>>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>> Aug 24, 2010 4:06:02 PM org.apache.coyote.http11.Http11Protocol pause
>> INFO: Pausing Coyote HTTP/1.1 on http-8080
>> Aug 24, 2010 4:06:03 PM org.apache.catalina.core.StandardService stop
>> INFO: Stopping service Catalina
>> Aug 24, 2010 4:06:03 PM org.apache.coyote.http11.Http11Protocol destroy
>> INFO: Stopping Coyote HTTP/1.1 on http-8080
>> Sep 1, 2010 11:37:05 AM org.apache.coyote.http11.Http11Protocol pause
>> INFO: Pausing Coyote HTTP/1.1 on http-8080
>>
>

Hi Wes,

I'm the only user of this dedicated machine, it's not yet in
production that's why I'm quite sure :). Even the init scripts logs
tells that Tomcat is started only to find out that it's not actually
running because of sudden death.

Thanks.

Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message