tomcat: dead because ports "already in use"

Aryeh M. Friedman aryeh.friedman at gmail.com
Sun Feb 15 14:46:47 PST 2009


Chuck Robey wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I've been happily playing with my tomcat installation, gaming with the apps in
> the Sun Core servlets and JSP pages books, when I suddenly can't get tomcat6 to
> start up anymore, for longer than about 10 seconds.  The only thing I can find,
> which seem to make the least sense, is the long entries I get in the
> /usr/local/apache-tomcat6.0/logs/stdout.log file.  I'll be copying all that
> stuff here (even though I hate to put long error lists to *these* lists) but the
> stuff that repeats are the lines that look like:
>
> java.lang.Exception: Socket bind failed: [48] Address already in use
>
> There are several like this.  I normally go out of my way to avoid use of IPV6,
> because I figure I'm experimenting enough with all that.  I'm saying, I suppose
> it could have something to do with IPV6 stuff I see now and then, but I sure did
> try to avoid that.
>
> OK, here's the stdout.log file.
>
> Feb 15, 2009 4:41:23 PM org.apache.catalina.core.AprLifecycleListener init
> INFO: Loaded APR based Apache Tomcat Native library 1.1.16.
> Feb 15, 2009 4:41:23 PM org.apache.catalina.core.AprLifecycleListener init
> INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [true],
> random [true].
> Feb 15, 2009 4:41:23 PM org.apache.coyote.http11.Http11AprProtocol init
> SEVERE: Error initializing endpoint
> java.lang.Exception: Socket bind failed: [48] Address already in use
>         at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:612)
>         at
> org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107)
>         at org.apache.catalina.connector.Connector.initialize(Connector.java:1058)
>         at
> org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
>         at
> org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
>         at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
>         at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
>         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:260)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
> Feb 15, 2009 4:41:23 PM org.apache.catalina.startup.Catalina load
> SEVERE: Catalina.start
> LifecycleException:  Protocol handler initialization failed:
> java.lang.Exception: Socket bind failed: [48] Address already in use
>         at org.apache.catalina.connector.Connector.initialize(Connector.java:1060)
>         at
> org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
>         at
> org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
>         at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
>         at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
>         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:260)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
> Feb 15, 2009 4:41:23 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 713 ms
> Feb 15, 2009 4:41:23 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Feb 15, 2009 4:41:23 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
> Feb 15, 2009 4:41:24 PM org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized()
> Feb 15, 2009 4:41:24 PM org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextInitialized()
> Feb 15, 2009 4:41:25 PM org.apache.jasper.EmbeddedServletOptions <init>
> SEVERE: The scratchDir you specified:
> /usr/local/apache-tomcat6.0/work/Catalina/localhost/host-manager is unusable.
> Feb 15, 2009 4:41:25 PM org.apache.jasper.EmbeddedServletOptions <init>
> SEVERE: The scratchDir you specified:
> /usr/local/apache-tomcat6.0/work/Catalina/localhost/manager is unusable.
> Feb 15, 2009 4:41:25 PM org.apache.coyote.http11.Http11AprProtocol start
> SEVERE: Error starting endpoint
> java.lang.Exception: Socket bind failed: [48] Address already in use
>         at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:612)
>         at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:717)
>         at
> org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:137)
>         at org.apache.catalina.connector.Connector.start(Connector.java:1131)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:531)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>         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:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Feb 15, 2009 4:41:25 PM org.apache.catalina.startup.Catalina start
> SEVERE: Catalina.start:
> LifecycleException:  service.getName(): "Catalina";  Protocol handler start
> failed: java.lang.Exception: Socket bind failed: [48] Address already in use
>         at org.apache.catalina.connector.Connector.start(Connector.java:1138)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:531)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>         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:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Feb 15, 2009 4:41:25 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 1343 ms
> Feb 15, 2009 4:41:25 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)
>         atorg.apache.catalina.core.StandardServer.await(StandardServer.java:373)
>        at org.apache.catalina.startup.Catalina.await(Catalina.java:642)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:602)
>         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:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> ~
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.9 (FreeBSD)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkmYjusACgkQz62J6PPcoOnUMQCfVZIQ3FGTCVgv74mkQWJBS4XG
> 5igAn00L7aj03Oi04lIM8IkwSuvLl2E+
> =aEpc
> -----END PGP SIGNATURE-----
> _______________________________________________
> freebsd-java at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe at freebsd.org"
>
>   
You have several options... wait for java complete (shutdown.dh 
naterious)... you can also this by editing by modifiing serveer.xml, 
conntext.xml... I both cases you really to now what your doing


More information about the freebsd-java mailing list