From owner-freebsd-questions@FreeBSD.ORG Tue Oct 4 22:26:29 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0561106564A for ; Tue, 4 Oct 2011 22:26:29 +0000 (UTC) (envelope-from matt@conundrum.com) Received: from coke.conundrum.com (coke.conundrum.com [216.235.9.139]) by mx1.freebsd.org (Postfix) with ESMTP id 4D7048FC15 for ; Tue, 4 Oct 2011 22:26:28 +0000 (UTC) Received: from chani.conundrum.com (chani.conundrum.com [216.235.10.34]) by coke.conundrum.com (8.13.1/8.12.6) with ESMTP id p94M3j3K040303; Tue, 4 Oct 2011 18:03:45 -0400 (EDT) (envelope-from matt@conundrum.com) From: Matthew Pounsett Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Tue, 4 Oct 2011 18:03:35 -0400 To: freebsd-questions@freebsd.org Message-Id: <98F4C5FC-3859-4D42-BA65-0ABD755BCEB1@conundrum.com> Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Subject: Starting tomcat7 port on 8.1-RELEASE-p1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2011 22:26:29 -0000 I'm trying to get Tomcat 7 up and running for one of our developers, and = seem to have run into an odd roadblock. I've installed everything using the ports, including the half-dozen = distfiles that need to be manually downloaded to satisfy dependencies. = That went fine, but tomcat won't start. I'm getting an empty file = "localhost_access_log.2011-10-04.txt" in = /usr/local/apache-tomcat-7.0/logs/, as well as the file 'catalina.out' = which I'm pasting in at the bottom of this email. catalina.out seems to be suggesting that tomcat won't start because it = can't bind to localhost:8005, but I can't find a reason for this. I've = done some googling and seen some similar examples of this problem from = earlier versions of Tomcat, on earlier versions of FreeBSD, but nothing = recent... the only fix that has come up that looks like it could be = relevant is forcing tomcat to use IPv4 by adding this to rc.conf tomcat55_java_opts=3D"-Djava.net.preferIPv4Stack=3Dtrue" I've tried this and it doesn't solve my problem. The tomcat port doesn't seem to install any port-specific Getting = Started docs anywhere, and the Apache-Tomcat getting started = documentation doesn't seem to cover anything more than what the port = install is supposed to take care of. Am I just missing some setup = instructions somewhere? Any pointers appreciated. -- Oct 4, 2011 9:52:21 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/local/jdk1.6.0/jre/lib/amd64/server:/usr/local/jdk1.6.0/jre/lib/amd64= :/usr/local/jdk1.6.0/jre/../lib/amd64:/usr/java/packages/lib/amd64:/lib:/u= sr/lib:/usr/local/lib Oct 4, 2011 9:52:21 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] Oct 4, 2011 9:52:21 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] Oct 4, 2011 9:52:21 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 449 ms Oct 4, 2011 9:52:21 PM org.apache.catalina.core.StandardService = startInternal INFO: Starting service Catalina Oct 4, 2011 9:52:21 PM org.apache.catalina.core.StandardEngine = startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.21 Oct 4, 2011 9:52:21 PM org.apache.catalina.startup.HostConfig = deployDirectory INFO: Deploying web application directory ROOT Oct 4, 2011 9:52:21 PM org.apache.catalina.startup.HostConfig = deployDirectory INFO: Deploying web application directory docs Oct 4, 2011 9:52:21 PM org.apache.catalina.startup.HostConfig = deployDirectory INFO: Deploying web application directory examples Oct 4, 2011 9:52:21 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Oct 4, 2011 9:52:21 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Oct 4, 2011 9:52:21 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: = attributeAdded('org.apache.jasper.compiler.TldLocationsCache', = 'org.apache.jasper.compiler.TldLocationsCache@6910b640') Oct 4, 2011 9:52:21 PM org.apache.catalina.startup.HostConfig = deployDirectory INFO: Deploying web application directory host-manager Oct 4, 2011 9:52:21 PM org.apache.catalina.startup.HostConfig = deployDirectory INFO: Deploying web application directory manager Oct 4, 2011 9:52:22 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] Oct 4, 2011 9:52:22 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-8009"] Oct 4, 2011 9:52:22 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 468 ms Oct 4, 2011 9:52:22 PM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[localhost:8005]:=20 java.net.BindException: Can't assign requested address 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) at = org.apache.catalina.core.StandardServer.await(StandardServer.java:422) at org.apache.catalina.startup.Catalina.await(Catalina.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:654) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:= 39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm= pl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at = org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at = org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) Oct 4, 2011 9:52:22 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["http-bio-8080"] Oct 4, 2011 9:52:23 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["ajp-bio-8009"] Oct 4, 2011 9:52:24 PM org.apache.catalina.core.StandardService = stopInternal INFO: Stopping service Catalina Oct 4, 2011 9:52:24 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Oct 4, 2011 9:52:24 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Oct 4, 2011 9:52:24 PM org.apache.coyote.AbstractProtocol stop INFO: Stopping ProtocolHandler ["http-bio-8080"] Oct 4, 2011 9:52:24 PM org.apache.coyote.AbstractProtocol stop INFO: Stopping ProtocolHandler ["ajp-bio-8009"] Oct 4, 2011 9:52:24 PM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler ["http-bio-8080"] Oct 4, 2011 9:52:24 PM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler ["ajp-bio-8009"]