0 Replies Latest reply on Jan 2, 2007 9:39 AM by Javier Leyba

    Strange error

    Javier Leyba Newbie


      Hi

      I've a .sar service deployed in my JBoss.

      My sar is packaged exploited and with a lib directory with all need jars inside.

      When I start my JBoss I receive the messae error:

      15:19:14,125 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
      15:19:14,479 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
      15:19:15,082 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=.../tmp/deploy/tmp57998jboss-ws4ee.war/
      15:19:15,128 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
      15:19:20,896 ERROR [UUIDKeyGeneratorFactoryService] Caught exception during startService()
      javax.naming.CommunicationException: Could not obtain connection to any of these urls: vm://localhost and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server vm:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server vm:1099 [Root exception is java.net.UnknownHostException: vm: vm]]]
       at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1399)
       at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:469)
       at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:462)
       at javax.naming.InitialContext.rebind(InitialContext.java:367)
       at org.jboss.util.naming.Util.rebind(Util.java:111)
       at org.jboss.util.naming.Util.rebind(Util.java:98)
       at org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactoryService.startService(UUIDKeyGeneratorFactoryService.java:55)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
       at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
       at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
       at $Proxy0.start()V(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:428)
       at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      Caused by: javax.naming.CommunicationException: Failed to connect to server vm:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server vm:1099 [Root exception is java.net.UnknownHostException: vm: vm]]
       at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:254)
       at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1370)
       at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:469)
       at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:462)
       at javax.naming.InitialContext.rebind(InitialContext.java:367)
       at org.jboss.util.naming.Util.rebind(Util.java:111)
       at org.jboss.util.naming.Util.rebind(Util.java:98)
       at org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactoryService.startService(UUIDKeyGeneratorFactoryService.java:55)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
       at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
       at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
       at $Proxy0.start()V(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:428)
      Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server vm:1099 [Root exception is java.net.UnknownHostException: vm: vm]
       at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:228)
       ... 19 more
      Caused by: java.net.UnknownHostException: vm: vm
       at java.net.InetAddress.getAllByName0(InetAddress.java:1128)
       at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
       at java.net.InetAddress.getAllByName(InetAddress.java:1061)
       at java.net.InetAddress.getByName(InetAddress.java:958)
       at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:61)
       at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:224)
       at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1370)
       at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:469)
       at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:462)
       at javax.naming.InitialContext.rebind(InitialContext.java:367)
       at org.jboss.util.naming.Util.rebind(Util.java:111)
       at org.jboss.util.naming.Util.rebind(Util.java:98)
       at org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactoryService.startService(UUIDKeyGeneratorFactoryService.java:55)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
       at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
       at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
       at $Proxy0.start()V(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:428)
       at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
      15:19:26,716 WARN [ServiceController] Problem starting service jboss.jmx:alias=jmx/rmi/RMIAdaptor
      javax.naming.CommunicationException: Could not obtain connection to any of these urls: vm://localhost and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server vm:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server vm:1099 [Root exception is java.net.UnknownHostException: vm]]]
       at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1399)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
       at javax.naming.InitialContext.lookup(InitialContext.java:351)
       at org.jboss.naming.NamingAlias.createLinkRef(NamingAlias.java:135)
       at org.jboss.naming.NamingAlias.startService(NamingAlias.java:113)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
       at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
       at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
       at $Proxy0.start()V(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:428)
       at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
       at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
      



      But if erase my sar service, JBoss starts without problems.

      It´s not the end. If I deploy my sar without the lib directory inside and placing all jars in JBoss instance lib directory, server starts ok too.

      I wonder why this error is produced. Should I declare something special to have my jar inside my sar ?

      Thanks in advance

      C