From owner-freebsd-java@FreeBSD.ORG Sun Feb 15 22:46:47 2009 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CB4F106566B for ; Sun, 15 Feb 2009 22:46:47 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mta3.srv.hcvlny.cv.net (mta3.srv.hcvlny.cv.net [167.206.4.198]) by mx1.freebsd.org (Postfix) with ESMTP id 11FDF8FC15 for ; Sun, 15 Feb 2009 22:46:46 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from flosoft.no-ip.biz (ool-435559b8.dyn.optonline.net [67.85.89.184]) by mta3.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0KF400IPLPXVFZ60@mta3.srv.hcvlny.cv.net> for freebsd-java@FreeBSD.org; Sun, 15 Feb 2009 17:46:46 -0500 (EST) Received: from flosoft.no-ip.biz (localhost [IPv6:::1]) by flosoft.no-ip.biz (8.14.3/8.14.3) with ESMTP id n1FMkdgG000418; Sun, 15 Feb 2009 17:46:41 -0500 Date: Sun, 15 Feb 2009 17:46:39 -0500 From: "Aryeh M. Friedman" In-reply-to: <49988EEB.5050202@telenix.org> To: Chuck Robey Message-id: <49989B4F.6090106@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT References: <49988EEB.5050202@telenix.org> User-Agent: Thunderbird 2.0.0.19 (X11/20090202) Cc: freebsd-java@FreeBSD.org Subject: Re: tomcat: dead because ports "already in use" X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2009 22:46:47 -0000 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 > 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 > 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.(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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@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