1 Reply Latest reply on Nov 6, 2003 10:53 AM by Chuck Harris

    [NamingService] Could not start on port 1099

    Sarath Babu Newbie

      Hi guys,

      I am using Jboss 3.2.1 with Tomcat 4.1.24

      When I start the server using the 'run' command I see the following exception on the console:

      -------------------------------------------------------------------

      10:41:15,478 INFO [AbstractDeploymentScanner$ScannerThread] Running
      10:41:15,488 INFO [WebService] Started WebServer with address: 144.111.65.194:8
      083
      10:41:15,488 INFO [WebService] Using RMI server codebase: http://MAN12346849:80
      83/
      10:41:15,488 INFO [WebService] Started
      10:41:15,488 INFO [LocalJBossServerDomain] Starting
      10:41:15,488 INFO [LocalJBossServerDomain] Started
      10:41:15,488 INFO [NamingService] Starting
      10:41:15,498 INFO [NamingService] Starting jnp server
      10:41:15,648 ERROR [NamingService] Could not start on port 1099
      java.net.BindException: Address in use: JVM_Bind
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
      at java.net.ServerSocket.(ServerSocket.java:170)
      at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketF
      actory.java:156)
      at org.jnp.server.Main.initJnpInvoker(Main.java:327)
      at org.jnp.server.Main.start(Main.java:225)
      at org.jboss.naming.NamingService.startService(NamingService.java:154)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      92)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:966)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:392)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:365)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:388)
      at java.lang.Thread.run(Thread.java:484)
      10:41:15,688 INFO [NamingService] Listening on port 1099
      ---------------------------------------------------------------------

      when I call my ejb I get the following excetion:

      --------------------------------------------------------------------

      10:43:30,091 WARN [NamingContext] Failed to connect to localhost:1099
      javax.naming.CommunicationException: Failed to connect to server localhost:1099.
      Root exception is
      javax.naming.ServiceUnavailableException: Failed to connect to server localhost:
      1099. Root exception is
      java.net.ConnectException: Connection refused: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      ---------------------------------------------------------------------

      It was working until yesterday, I am seeing this for the first time.

      Thanks in advance for your help....

      Sarath