Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Oct 2011 18:03:35 -0400
From:      Matthew Pounsett <matt@conundrum.com>
To:        freebsd-questions@freebsd.org
Subject:   Starting tomcat7 port on 8.1-RELEASE-p1
Message-ID:  <98F4C5FC-3859-4D42-BA65-0ABD755BCEB1@conundrum.com>

next in thread | raw e-mail | index | archive | help

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.<init>(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"]




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98F4C5FC-3859-4D42-BA65-0ABD755BCEB1>