2 Replies Latest reply on May 19, 2003 8:15 AM by jch888

    Failing to connect

    jch8888

      Hi everyone,
      Here's the problem, there's a server with JBoss installed and running perfectly on it. The jboss directory from this machine is taken and placed on a new machine, and when trying to execute the run.bat file this is the error that comes up. It doesn't seem to be touched upon in the forums:

      09:11:04,500 INFO [TransactionManagerService] Starting
      09:11:04,562 INFO [TransactionManagerService] Started
      09:11:04,562 INFO [ClientUserTransactionService] Starting
      09:11:06,859 WARN [NamingContext] Failed to connect to file:1099
      javax.naming.CommunicationException: Failed to connect to server file:1099. Roo
      t exception is
      javax.naming.ServiceUnavailableException: Failed to connect to server file:1099.
      Root exception is
      java.net.UnknownHostException: file
      at java.net.InetAddress.getAllByName0(InetAddress.java:920)
      at java.net.InetAddress.getAllByName0(InetAddress.java:890)
      at java.net.InetAddress.getAllByName(InetAddress.java:884)
      at java.net.InetAddress.getByName(InetAddress.java:814)
      at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory
      .java:61)
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:159)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1029)
      at org.jnp.interfaces.NamingContext.bind(NamingContext.java:402)
      at org.jnp.interfaces.NamingContext.bind(NamingContext.java:395)
      at javax.naming.InitialContext.bind(InitialContext.java:355)
      at org.jboss.tm.usertx.server.ClientUserTransactionService.startService(
      ClientUserTransactionService.java:73)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      65)
      at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:398)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:569)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:536)

      thanks in advance have a good day!

        • 1. Re: Failing to connect
          jonlee

          If the new machine is also a Windows machine, make sure that the JRE/JDK is not installed in a path containing a space - e.g. C:/program files/...

          It also doesn't hurt to ensure that the same goes for JBoss.

          Java doesn't particularly like this.

          This is most likely your problem.

          • 2. Re: Failing to connect
            jch888

            JBoss Bootstrap Environment

            JBOSS_HOME: D:\Java\JBOSS\bin\\..

            JAVA: D:\Java\j2sdk1.4.0_01\bin\java

            JAVA_OPTS: -Dprogram.name=run.bat

            CLASSPATH: ;D:\Java\j2sdk1.4.0_01\lib\tools.jar;D:\Java\JBOSS\bin\\run.jar

            tried to change the directories so that there wouldn't be spaces, and that didn't help so much, still got the same exceptions happening