3 Replies Latest reply on Oct 8, 2003 11:30 AM by jonlee

    Strange network error

    ssk_new

      I am trying to run jboss 3.2.2. One of the services fails to initialize because jboss fails to bind to the specified port - I have tried to cpecify 10 different ones, all to no avail. The exception is pasted below. Ideas anyone? Please help!

      20:12:56,164 INFO [BeanShellSubDeployer] Creating
      20:12:56,207 INFO [BeanShellSubDeployer] Created
      20:12:56,228 INFO [URLDeploymentScanner] Creating
      20:12:56,254 INFO [AbstractDeploymentScanner$ScannerThread] Running
      20:12:56,275 INFO [URLDeploymentScanner] Created
      20:12:56,299 INFO [LocalJBossServerDomain] Starting
      20:12:56,324 INFO [LocalJBossServerDomain] Started
      20:12:56,343 INFO [Log4jService] Starting
      20:12:56,364 INFO [Log4jService] Started
      20:12:56,387 INFO [WebService] Starting
      20:12:56,417 ERROR [WebService] Starting failed
      java.net.BindException: Cannot assign requested address
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
      at java.net.ServerSocket.bind(ServerSocket.java:309)
      at java.net.ServerSocket.(ServerSocket.java:183)
      at org.jboss.web.WebServer.start(WebServer.java:169)
      at org.jboss.web.WebService.startService(WebService.java:286)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:388)
      at java.lang.Thread.run(Thread.java:536)
      20:12:56,450 WARN [ServiceController] Problem starting service jboss:service=WebService
      j

        • 1. Re: Strange network error
          jonlee

          It is not necessarily complaining about the port binding. Most likely, the address it is picking up for interface to does not actually exist. Check your networking configuration including the hosts file. Especially check for a proprer localhost definition.

          • 2. Re: Strange network error
            ssk_new

            Thanks. The localhost is set to 127.0.0.1 in the hosts file. I can ping it. The rest of the network config also seems ok - I am on an internal LAN. I tried re-starting the network and even rebooting the machine but all in vain. Could this have to do with DNS lookup?

            • 3. Re: Strange network error
              jonlee

              Well, try changing the BindAddress for your WebService.

              In you conf/jboss-service.xml you will want to try bind it in this fashion:

              8083
              localhost
              <!-- Should resources and non-EJB classes be downloadable -->
              true


              Or whatever is applicable. You can find the MBean interface information here if you don't have the source:
              http://esprit.ccs.yorku.ca/jboss/304/javadocs/server/org/jboss/web/WebService.html