facebook

Address already in use: JVM_Bind:8080

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #272725 Reply

    maximuszen
    Member

    I get this error once in a while. When I start the application server. jboss 4.2 -b 192.168.0.51
    JVM 128 512

    It occurs when there are no project deployed. Hot deployment doesn’t seem to always work so I have to start and restart my application server a lot. Also I can’t keep the project files in the deployment directory causes problems.

    What can I do? I woul dappreciate a complete response.

    — MBeans waiting for other MBeans —
    ObjectName: jboss:service=WebService
    State: FAILED
    Reason: java.lang.Exception: Port 8083 already in use.
    I Depend On:
    jboss.system:service=ThreadPool
    Depends On Me:
    jboss.ejb:service=EJBDeployer

    ObjectName: jboss:service=Naming
    State: FAILED
    Reason: java.rmi.server.ExportException: Port already in use: 1098; nested exception is:
    java.net.BindException: Address already in use: JVM_Bind
    I Depend On:
    jboss.system:service=ThreadPool
    jboss:service=NamingBeanImpl
    Depends On Me:
    jboss.mq:service=DestinationManager
    jboss.mq:service=Invoker
    jboss.mq:service=InvocationLayer,type=UIL
    jboss.mq:service=InvocationLayer,type=UILXA
    jboss.mq:service=InvocationLayer,type=UIL2,alias=UIL2ConnectionFactory
    jboss.mq:service=InvocationLayer,type=UIL2XA,alias=UIL2XAConnectionFactory
    jboss.jms:alias=QueueConnectionFactory
    jboss.jms:alias=TopicConnectionFactory
    jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory
    jboss.jmx:alias=jmx/rmi/RMIAdaptor
    jboss:service=Mail

    ObjectName: jboss:service=invoker,type=jrmp
    State: FAILED
    Reason: java.rmi.server.ExportException: Port already in use: 4444; nested exception is:
    java.net.BindException: Address already in use: JVM_Bind
    I Depend On:
    jboss:service=TransactionManager
    Depends On Me:
    jboss:service=proxyFactory,target=ClientUserTransactionFactory
    jboss:service=proxyFactory,target=ClientUserTransaction
    jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory

    ObjectName: jboss:service=invoker,type=pooled
    State: FAILED
    Reason: java.lang.Exception: Port 4445 is already in use
    I Depend On:
    jboss:service=TransactionManager

    ObjectName: jboss.remoting:service=Connector,transport=socket
    State: FAILED
    Reason: java.net.BindException: Address already in use: JVM_Bind
    I Depend On:
    jboss.remoting:service=NetworkRegistry
    Depends On Me:
    jboss:service=invoker,type=unified

    ObjectName: jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3
    State: FAILED
    Reason: java.net.BindException: Address already in use: JVM_Bind
    I Depend On:
    jboss.aop:service=AspectDeployer

    ObjectName: jboss.ejb3:service=EJB3Deployer
    State: CONFIGURED
    I Depend On:
    jboss.aop:service=AspectDeployer
    jboss.ejb:service=EJBDeployer
    jboss.ejb3:service=JarsIgnoredForScanning
    Depends On Me:
    jboss.ws:service=DeployerInterceptorEJB3

    ObjectName: jboss.ejb:service=EJBDeployer
    State: CONFIGURED
    I Depend On:
    jboss:service=TransactionManager
    jboss:service=WebService
    Depends On Me:
    jboss.ejb3:service=EJB3Deployer
    jboss.ws:service=DeployerInterceptorEJB21

    ObjectName: jboss.ws:service=DeployerInterceptorEJB21
    State: CONFIGURED
    I Depend On:
    jboss.ejb:service=EJBDeployer

    ObjectName: jboss.ws:service=DeployerInterceptorEJB3
    State: CONFIGURED
    I Depend On:
    jboss.ejb3:service=EJB3Deployer

    ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=Invoker
    jboss.web:service=WebServer

    ObjectName: jboss.admin:service=PluginManager
    State: CONFIGURED
    I Depend On:
    jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory
    Depends On Me:
    jboss.web.deployment:war=web-console.war,id=-1957725639

    ObjectName: jboss.web.deployment:war=web-console.war,id=-1957725639
    State: NOTYETINSTALLED
    I Depend On:
    jboss.admin:service=PluginManager

    ObjectName: jboss.mq:service=DestinationManager
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=MessageCache
    jboss.mq:service=PersistenceManager
    jboss.mq:service=StateManager
    jboss.mq:service=ThreadPool
    jboss:service=Naming
    Depends On Me:
    jboss.mq.destination:service=Topic,name=testTopic
    jboss.mq.destination:service=Topic,name=securedTopic
    jboss.mq.destination:service=Topic,name=testDurableTopic
    jboss.mq.destination:service=Queue,name=testQueue
    jboss.mq.destination:service=Queue,name=A
    jboss.mq.destination:service=Queue,name=B
    jboss.mq.destination:service=Queue,name=C
    jboss.mq.destination:service=Queue,name=D
    jboss.mq.destination:service=Queue,name=ex
    jboss.mq:service=SecurityManager
    jboss.mq.destination:service=Queue,name=DLQ

    ObjectName: jboss.mq.destination:service=Topic,name=testTopic
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=DestinationManager
    jboss.mq:service=SecurityManager

    ObjectName: jboss.mq.destination:service=Topic,name=securedTopic
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=DestinationManager
    jboss.mq:service=SecurityManager

    ObjectName: jboss.mq.destination:service=Topic,name=testDurableTopic
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=DestinationManager
    jboss.mq:service=SecurityManager

    ObjectName: jboss.mq.destination:service=Queue,name=testQueue
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=DestinationManager
    jboss.mq:service=SecurityManager

    ObjectName: jboss.mq.destination:service=Queue,name=A
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=DestinationManager

    ObjectName: jboss.mq.destination:service=Queue,name=B
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=DestinationManager

    ObjectName: jboss.mq.destination:service=Queue,name=C
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=DestinationManager

    ObjectName: jboss.mq.destination:service=Queue,name=D
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=DestinationManager

    ObjectName: jboss.mq.destination:service=Queue,name=ex
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=DestinationManager

    ObjectName: jboss.mq:service=Invoker
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=TracingInterceptor
    jboss:service=Naming
    Depends On Me:
    jboss.mq:service=InvocationLayer,type=HTTP
    jboss.mq:service=InvocationLayer,type=JVM
    jboss.mq:service=InvocationLayer,type=UIL2

    ObjectName: jboss.mq:service=TracingInterceptor
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=SecurityManager
    Depends On Me:
    jboss.mq:service=Invoker

    ObjectName: jboss.mq:service=SecurityManager
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=DestinationManager
    Depends On Me:
    jboss.mq.destination:service=Topic,name=testTopic
    jboss.mq.destination:service=Topic,name=securedTopic
    jboss.mq.destination:service=Topic,name=testDurableTopic
    jboss.mq.destination:service=Queue,name=testQueue
    jboss.mq:service=TracingInterceptor
    jboss.mq.destination:service=Queue,name=DLQ

    ObjectName: jboss.mq.destination:service=Queue,name=DLQ
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=DestinationManager
    jboss.mq:service=SecurityManager

    ObjectName: jboss.mq:service=InvocationLayer,type=JVM
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=Invoker

    ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
    State: CONFIGURED
    I Depend On:
    jboss.mq:service=Invoker

    ObjectName: jboss.mq:service=InvocationLayer,type=UIL
    State: CONFIGURED
    I Depend On:
    jboss:service=Naming

    ObjectName: jboss.mq:service=InvocationLayer,type=UILXA
    State: CONFIGURED
    I Depend On:
    jboss:service=Naming

    ObjectName: jboss.mq:service=InvocationLayer,type=UIL2,alias=UIL2ConnectionFactory
    State: CONFIGURED
    I Depend On:
    jboss:service=Naming

    ObjectName: jboss.mq:service=InvocationLayer,type=UIL2XA,alias=UIL2XAConnectionFactory
    State: CONFIGURED
    I Depend On:
    jboss:service=Naming

    ObjectName: jboss.jms:alias=QueueConnectionFactory
    State: CONFIGURED
    I Depend On:
    jboss:service=Naming

    ObjectName: jboss.jms:alias=TopicConnectionFactory
    State: CONFIGURED
    I Depend On:
    jboss:service=Naming

    ObjectName: jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory
    State: CONFIGURED
    I Depend On:
    jboss:service=invoker,type=jrmp
    jboss.jmx:type=adaptor,name=Invoker
    jboss:service=Naming
    Depends On Me:
    jboss.admin:service=PluginManager
    jboss.jmx:type=adaptor,name=MBeanProxyRemote,protocol=jrmp

    ObjectName: jboss.jmx:type=adaptor,name=MBeanProxyRemote,protocol=jrmp
    State: CONFIGURED
    I Depend On:
    jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory

    ObjectName: jboss.jmx:alias=jmx/rmi/RMIAdaptor
    State: CONFIGURED
    I Depend On:
    jboss:service=Naming

    ObjectName: jboss:service=Mail
    State: CONFIGURED
    I Depend On:
    jboss:service=Naming

    ObjectName: jboss:service=Hypersonic,database=localDB
    State: FAILED
    Reason: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@b0278772[file =C:\Program Files\jboss-4.2.0.GA\server\default\data\hypersonic\localDB.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: The process cannot access the file because another process has locked a portion of the file : C:\Program Files\jboss-4.2.0.GA\server\default\data\hypersonic\localDB.lck
    Depends On Me:
    jboss.jca:service=ManagedConnectionFactory,name=DefaultDS

    — MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM —
    ObjectName: jboss.remoting:service=Connector,transport=socket
    State: FAILED
    Reason: java.net.BindException: Address already in use: JVM_Bind
    I Depend On:
    jboss.remoting:service=NetworkRegistry
    Depends On Me:
    jboss:service=invoker,type=unified

    ObjectName: jboss:service=Naming
    State: FAILED
    Reason: java.rmi.server.ExportException: Port already in use: 1098; nested exception is:
    java.net.BindException: Address already in use: JVM_Bind
    I Depend On:
    jboss.system:service=ThreadPool
    jboss:service=NamingBeanImpl
    Depends On Me:
    jboss.mq:service=DestinationManager
    jboss.mq:service=Invoker
    jboss.mq:service=InvocationLayer,type=UIL
    jboss.mq:service=InvocationLayer,type=UILXA
    jboss.mq:service=InvocationLayer,type=UIL2,alias=UIL2ConnectionFactory
    jboss.mq:service=InvocationLayer,type=UIL2XA,alias=UIL2XAConnectionFactory
    jboss.jms:alias=QueueConnectionFactory
    jboss.jms:alias=TopicConnectionFactory
    jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory
    jboss.jmx:alias=jmx/rmi/RMIAdaptor
    jboss:service=Mail

    ObjectName: jboss:service=Hypersonic,database=localDB
    State: FAILED
    Reason: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@b0278772[file =C:\Program Files\jboss-4.2.0.GA\server\default\data\hypersonic\localDB.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: The process cannot access the file because another process has locked a portion of the file : C:\Program Files\jboss-4.2.0.GA\server\default\data\hypersonic\localDB.lck
    Depends On Me:
    jboss.jca:service=ManagedConnectionFactory,name=DefaultDS

    ObjectName: jboss:service=WebService
    State: FAILED
    Reason: java.lang.Exception: Port 8083 already in use.
    I Depend On:
    jboss.system:service=ThreadPool
    Depends On Me:
    jboss.ejb:service=EJBDeployer

    ObjectName: jboss:service=invoker,type=jrmp
    State: FAILED
    Reason: java.rmi.server.ExportException: Port already in use: 4444; nested exception is:
    java.net.BindException: Address already in use: JVM_Bind
    I Depend On:
    jboss:service=TransactionManager
    Depends On Me:
    jboss:service=proxyFactory,target=ClientUserTransactionFactory
    jboss:service=proxyFactory,target=ClientUserTransaction
    jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory

    ObjectName: jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3
    State: FAILED
    Reason: java.net.BindException: Address already in use: JVM_Bind
    I Depend On:
    jboss.aop:service=AspectDeployer

    ObjectName: jboss:service=invoker,type=pooled
    State: FAILED
    Reason: java.lang.Exception: Port 4445 is already in use
    I Depend On:
    jboss:service=TransactionManager

    at org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1385)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:785)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy5.deploy(Unknown Source)
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
    at org.jboss.Main.boot(Main.java:200)
    at org.jboss.Main$1.run(Main.java:508)
    at java.lang.Thread.run(Unknown Source)
    17:34:40,390 DEBUG [JBossWeb] Saw org.jboss.system.server.started notification, starting connectors
    17:34:40,406 ERROR [Http11Protocol] Error starting endpoint
    java.net.BindException: Address already in use: JVM_Bind:8080
    at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)
    at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:515)
    at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
    at org.apache.catalina.connector.Connector.start(Connector.java:1132)
    at org.jboss.web.tomcat.service.JBossWeb.startConnectors(JBossWeb.java:584)
    at org.jboss.web.tomcat.service.JBossWeb.handleNotification(JBossWeb.java:621)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
    at $Proxy39.handleNotification(Unknown Source)
    at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
    at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
    at org.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:916)
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:497)
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
    at org.jboss.Main.boot(Main.java:200)
    at org.jboss.Main$1.run(Main.java:508)
    at java.lang.Thread.run(Unknown Source)
    17:34:40,421 WARN [JBossWeb] Failed to startConnectors
    LifecycleException: service.getName(): “jboss.web”; Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:8080
    at org.apache.catalina.connector.Connector.start(Connector.java:1139)
    at org.jboss.web.tomcat.service.JBossWeb.startConnectors(JBossWeb.java:584)
    at org.jboss.web.tomcat.service.JBossWeb.handleNotification(JBossWeb.java:621)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
    at $Proxy39.handleNotification(Unknown Source)
    at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
    at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
    at org.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:916)
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:497)
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
    at org.jboss.Main.boot(Main.java:200)
    at org.jboss.Main$1.run(Main.java:508)
    at java.lang.Thread.run(Unknown Source)

    #272744 Reply

    Loyal Water
    Member

    The problem is that you likely still have a prior instance of the server running (which takes up port 8080) so when you relaunch the “new” server can’t bind to the port the “old” server is still using. Make sure you stop the server from outside the IDE before you start it from within the IDE. Thats should solve your issue.

    #273278 Reply

    maximuszen
    Member

    My IP address changes so the server configuration must be set to the correct IP address also to avoid this error.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Address already in use: JVM_Bind:8080

You must be logged in to post in the forum log in