PDA

View Full Version : Resin 4.0.5 on linux BindException


mabsito
04-13-2010, 08:43 PM
Hello,
I installed resin 4.0.5 on Linux suse 11.1 When trying to run resin with port 8080 I got the following exception "java.net.BindException". I tryed to change the port many times but I also the same Exception. Can someone help and tell me what to do? I have also apache2 installed on the server and it´s running very well and I am trying to run resin with apache2.



Starting Resin on Tue, 13 Apr 2010 22:28:55 +0200 (MESZ)

[10-04-13 22:28:56.780] {main}
[10-04-13 22:28:56.780] {main} Linux 2.6.27.29-0.1-default amd64
[10-04-13 22:28:56.780] {main} Java(TM) SE Runtime Environment 1.6.0_15-b03, UTF-8, de
[10-04-13 22:28:56.780] {main} Java HotSpot(TM) 64-Bit Server VM 14.1-b02, 64, mixed mode, Sun Microsystems Inc.
[10-04-13 22:28:56.781] {main}
[10-04-13 22:28:56.781] {main} resin.home = /srv/resin-pro-4.0.5/
[10-04-13 22:28:56.781] {main} resin.root = /srv/resin-pro-4.0.5/
[10-04-13 22:28:56.781] {main} resin.conf = /srv/resin-pro-4.0.5/conf/resin.xml
[10-04-13 22:28:56.781] {main}
[10-04-13 22:28:56.782] {main} server = 127.0.0.1:6802 (app-tier:)
[10-04-13 22:28:56.782] {main} user.name = root
[10-04-13 22:28:56.782] {main} stage = default
[10-04-13 22:28:56.782] {main}
[10-04-13 22:28:56.788] {main} server listening to localhost:6802
[10-04-13 22:28:56.793] {main}
[10-04-13 22:28:57.210] {main} WebApp[http://default] active
[10-04-13 22:28:57.339] {main} WebApp[http://default/resin-admin] active
[10-04-13 22:28:57.485] {main} WebApp[http://default/resin-doc] active
[10-04-13 22:28:57.486] {main} Host[default] active
[10-04-13 22:28:57.486] {main}
[10-04-13 22:28:57.486] {main} http listening to *:9180
[10-04-13 22:28:57.594] {main} java.net.BindException: Address already in use
[10-04-13 22:28:57.594] {main} at java.net.PlainSocketImpl.socketBind(Native Method)
[10-04-13 22:28:57.594] {main} at java.net.PlainSocketImpl.bind(PlainSocketImpl.java :365)
[10-04-13 22:28:57.594] {main} at java.net.ServerSocket.bind(ServerSocket.java:319)
[10-04-13 22:28:57.594] {main} at java.net.ServerSocket.<init>(ServerSocket.java:185)
[10-04-13 22:28:57.594] {main} at java.net.ServerSocket.<init>(ServerSocket.java:141)
[10-04-13 22:28:57.594] {main} at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:84)
[10-04-13 22:28:57.594] {main} at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.<init>(SSLServerSocketImpl.java:79)
[10-04-13 22:28:57.594] {main} at com.sun.net.ssl.internal.ssl.SSLServerSocketFactor yImpl.createServerSocket(SSLServerSocketFactoryImp l.java:65)
[10-04-13 22:28:57.594] {main} at com.caucho.vfs.JsseSSLFactory.create(JsseSSLFactor y.java:281)
[10-04-13 22:28:57.594] {main} at com.caucho.server.connection.Port.bind(Port.java:9 57)
[10-04-13 22:28:57.594] {main} at com.caucho.server.cluster.Server.bindPorts(Server. java:2048)
[10-04-13 22:28:57.594] {main} at com.caucho.server.cluster.Server.start(Server.java :1876)
[10-04-13 22:28:57.594] {main} at com.caucho.server.resin.Resin.start(Resin.java:106 8)
[10-04-13 22:28:57.594] {main} at com.caucho.server.resin.Resin.initMain(Resin.java: 1604)
[10-04-13 22:28:57.594] {main} at com.caucho.server.resin.Resin.main(Resin.java:1836 )
java.net.BindException: Address already in use
[10-04-13 22:28:57.596] {main} java.lang.RuntimeException: java.net.BindException: Address already in use

emil
04-15-2010, 12:37 AM
Hi mabsito,

Looks like it's the SSL port that's not binding. In the default configuration, it's set to 8443. Just search for that number and either remove the SSL port (if you don't need it) or change the number.

Best,
Emil

mabsito
04-15-2010, 09:08 PM
it was the problem thank you :) now resin is working very well :)