problem when allocating port with openjdk6
Greg Lewis
glewis at eyesbeyond.com
Mon Dec 6 08:26:42 PST 2010
On Mon, Dec 06, 2010 at 03:45:14PM +0100, develop wrote:
> I just compiled and successfully installed openjdk6 on my FreeBSD 7.1 box.
>
> I have diablo (patch 07) as well. I have no problem running apache
> tomcat with diablo but when I try using openjdk I get the following
> exception:
Try adding '-Djava.net.preferIPv4Stack=true' to the args that are passed
to the JVM on start up.
> SEVERE: StandardServer.await: create[8885]:
> java.net.BindException: Can't assign requested address
> at java.net.PlainSocketImpl.socketBind(Native Method)
> at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:336)
> at java.net.ServerSocket.bind(ServerSocket.java:336)
> at java.net.ServerSocket.<init>(ServerSocket.java:202)
> 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:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>
>
> I have checked and the port 8885 (the shutdown port of tomcat) is free.
> If I change the jdk back to diablo it works.
>
> Any idea what could cause the problem?
>
> /simeon
--
Greg Lewis Email : glewis at eyesbeyond.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : glewis at FreeBSD.org
More information about the bsd-port-dev
mailing list