0 Replies Latest reply on Nov 24, 2010 5:41 AM by ondrej sevce

    JBoss: Cannot bind to URL

    ondrej sevce Newbie

      Hi everybody,

       

      I am having a problem with opends in JBoss server embedded in JBoss portal 2.7.2.

      The opends cannot bind to url:

      Cannot bind to URL [rmi://0.0.0.0:1689/org.opends.server.protocols.jmx.client-unknown]: javax.naming.ServiceUnavailableException

       

      The copy of this instance of JBoss runs without this error on the computer with the same configuration (Win 7, network environment, vpn, etc.)

       

      - the port 1689 is not blocked (i checked it with tcpview)

       

      Here is the listing:

       

      2010-11-18 16:01:46,785 ERROR [STDERR] 18.11.2010 16:01:46 org.opends.server.loggers.DirectoryDebugLogger debugException
      ERROR: classname=org.opends.server.protocols.jmx.RmiConnector methodname=startConnectorNoClientCertificate java.io.IOException: Cannot bind to URL [rmi://0.0.0.0:1689/org.opends.server.protocols.jmx.client-unknown]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 0.0.0.0; nested exception is:
          java.net.ConnectException: Connection timed out: connect]
        javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:814)
        javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:431)
        org.opends.server.protocols.jmx.RmiConnector.startConnectorNoClientCertificate(RmiConnector.java:391)
        org.opends.server.protocols.jmx.RmiConnector.initialize(RmiConnector.java:176)
        org.opends.server.protocols.jmx.JmxConnectionHandler.run(JmxConnectionHandler.java:529)
      Caused by javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 0.0.0.0; nested exception is:
          java.net.ConnectException: Connection timed out: connect]
        com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:122)
        com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
        javax.naming.InitialContext.bind(InitialContext.java:359)
        javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:635)
        javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:427)
        org.opends.server.protocols.jmx.RmiConnector.startConnectorNoClientCertificate(RmiConnector.java:391)
        org.opends.server.protocols.jmx.RmiConnector.initialize(RmiConnector.java:176)
        org.opends.server.protocols.jmx.JmxConnectionHandler.run(JmxConnectionHandler.java:529)
      Caused by java.rmi.ConnectException: Connection refused to host: 0.0.0.0; nested exception is:
          java.net.ConnectException: Connection timed out: connect
        sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
        sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
        sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
        sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
        sun.rmi.registry.RegistryImpl_Stub.bind(null:-1)
        com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:116)
        com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
        javax.naming.InitialContext.bind(InitialContext.java:359)
        javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:635)
        javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:427)
        org.opends.server.protocols.jmx.RmiConnector.startConnectorNoClientCertificate(RmiConnector.java:391)
        org.opends.server.protocols.jmx.RmiConnector.initialize(RmiConnector.java:176)
        org.opends.server.protocols.jmx.JmxConnectionHandler.run(JmxConnectionHandler.java:529)
      Caused by java.net.ConnectException: Connection timed out: connect
        java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:-2)
        java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:193)
        java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        java.net.SocksSocketImpl.connect(SocksSocketImpl.java:367)
        java.net.Socket.connect(Socket.java:524)
        java.net.Socket.connect(Socket.java:474)
        java.net.Socket.<init>(Socket.java:371)
        java.net.Socket.<init>(Socket.java:184)
        sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
        sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
        sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
        sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
        sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
        sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
        sun.rmi.registry.RegistryImpl_Stub.bind(null:-1)
        com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:116)
        com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
        javax.naming.InitialContext.bind(InitialContext.java:359)
        javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:635)
        javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:427)
        org.opends.server.protocols.jmx.RmiConnector.startConnectorNoClientCertificate(RmiConnector.java:391)
        org.opends.server.protocols.jmx.RmiConnector.initialize(RmiConnector.java:176)
        org.opends.server.protocols.jmx.JmxConnectionHandler.run(JmxConnectionHandler.java:529)
      2010-11-18 16:01:47,615 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=BaanCommunicationDS' to JNDI name 'java:BaanCommunicationDS'

       

      Any help is very appreciated, thank you.

       

      -endriju