JBoss naming service port conflict

Posted by Kramer on Super User See other posts from Super User or by Kramer
Published on 2012-11-27T22:20:22Z Indexed on 2012/11/27 23:12 UTC
Read the original article Hit count: 231

Filed under:
|
|
|

I am having trouble getting JBoss started. I am running JBoss 5.1.0 on Mac OSX (yes, I know it is an old version, but that’s what the application is certified on for now). I am using Apple’s JVM 1.6.0_37. I get the following error when trying to use JBoss (there are some more exceptions, but these are the first few):

Error installing to Start: name=jboss:service=Naming state=Create mode=Manual requiredState=Installed
java.rmi.server.ExportException: Port already in use: 1098; nested exception is: 
java.net.BindException: Can't assign requested address
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)
at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)

Caused by: java.net.BindException: Can't assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)

16:57:15,596 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/Users/home/server/jboss-5.1.0.GA/server/myserver/conf/jboss-service.xml state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error deploying: jboss:service=Naming
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

Caused by: java.rmi.server.ExportException: Port already in use: 1098; nested exception is: 
java.net.BindException: Can't assign requested address
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)

Caused by: java.net.BindException: Can't assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)

Now I know what you are thinking, that I am running something that conflicts with that port, but I have used lsof and there is nothing listed on that port.

I have tried changing the port in conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml:

<bean class="org.jboss.services.binding.ServiceBindingMetadata">
    <property name="serviceName">jboss:service=Naming</property>
    <property name="bindingName">RmiPort</property>
    <property name="port">5098</property>
    <property name="description">Socket Naming service uses to receive RMI requests from client proxies</property>
</bean>

Unfortunately, I then get the name errors with the new port number.

I also installed a network monitoring tool on my box and it doesn't look like any ports are being opened when I start jboss, but it is possible, that the tool might be missing a port that is opened and then closed quickly.

Any ideas what could be the problem or how to fix it?

© Super User or respective owner

Related posts about osx

Related posts about port