3 Replies Latest reply on Jul 20, 2007 5:06 PM by smilidon

    Unable to start the JBOSS 4.2.0 GA in Customized Linux envir

    ramanwee

      Hi, I have installed the JBoss-4.2.0 GA server in a Linux box for our project. The linux version is a customized version. The OS name is
      Linux 2.6.18.custom_1.2,i386.

      When i start the default JBoss server, the server got automatically shutdown.

      The hostname is BSB1 in our case.
      I have attached a portion of the Debug Message below. Basically, the NetworkRegistry is trying to create a entity which is failing in this environment. But when the same JBoss is run on the Linux version2.6.18 without the customization, the server is able to come to live.

      02:00:51,207 INFO [Server] Starting JBoss (MX MicroKernel)...
      02:00:51,208 INFO [Server] Release ID: JBoss [Trinity] 4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440)
      02:00:51,209 INFO [Server] Home Dir: /root/jboss/jboss-4.2.0.GA
      02:00:51,209 INFO [Server] Home URL: file:/root/jboss/jboss-4.2.0.GA/
      02:00:51,210 INFO [Server] Patch URL: null
      02:00:51,210 INFO [Server] Server Name: default
      02:00:51,210 INFO [Server] Server Home Dir: /root/jboss/jboss-4.2.0.GA/server/default
      02:00:51,211 INFO [Server] Server Home URL: file:/root/jboss/jboss-4.2.0.GA/server/default/
      02:00:51,211 INFO [Server] Server Log Dir: /root/jboss/jboss-4.2.0.GA/server/default/log
      02:00:51,211 INFO [Server] Server Temp Dir: /root/jboss/jboss-4.2.0.GA/server/default/tmp
      02:00:51,211 INFO [Server] Root Deployment Filename: jboss-service.xml
      02:01:31,521 INFO [ServerInfo] Java version: 1.5.0_12,Sun Microsystems Inc.
      02:01:31,521 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_12-b04,Sun Microsystems Inc.
      02:01:31,522 INFO [ServerInfo] OS-System: Linux 2.6.18.custom_1.2,i386
      02:01:31,884 INFO [Server] Core system initialized
      02:02:55,493 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@5976c2)]
      02:02:55,514 ERROR [MainDeployer] Could not create deployment: file:/root/jboss/jboss-4.2.0.GA/server/default/conf/jboss-service.xml
      org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
      at org.jboss.system.ServiceController.install(ServiceController.java:226)

      ... 41 more
      Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@5976c2)]
      at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:7

      .
      .
      .
      Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@5976c2)]
      at org.jboss.mx.server.
      .
      .
      .
      Caused by: java.lang.RuntimeException: Exception creating identity: BSB1: BSB1
      at org.jboss.remoting.ident.Identity.get(Identity.java:211)
      at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
      02:02:55,629 INFO [Server] Runtime shutdown hook called, forceHalt: true
      02:02:55,629 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
      02:02:55,636 INFO [Server] Shutdown complete
      Shutdown complete
      Halting VM



      I would appreciate an earlier help. I want to show a demo of our project to the customer ASAP. Please let me know what is the issue and how can we rectify this.

        • 1. Re: Unable to start the JBOSS 4.2.0 GA in Customized Linux e
          trickyvail

          I don't know what is causing your problem but it appears to be identical to this post:

          http://jboss.com/index.html?module=bb&op=viewtopic&t=113572

          • 2. Re: Unable to start the JBOSS 4.2.0 GA in Customized Linux e
            smilidon

            Hi,

            i have the same problem on a Debian Linux running as virtual server. Please help... Maybe it is a problem creating the identity:

            Caused by: java.lang.RuntimeException: Exception creating identity: vserver34106:

            I have no idea.

            ./run.sh -c default --host=83.125.34.131
            =========================================================================
            
             JBoss Bootstrap Environment
            
             JBOSS_HOME: /home/common/jboss-4.2.1.GA
            
             JAVA: /usr/lib/jvm/java-1.5.0-sun-1.5.0.10/bin/java
            
             JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true
            
             CLASSPATH: /home/common/jboss-4.2.1.GA/bin/run.jar:/usr/lib/jvm/java-1.5.0-sun-1.5.0.10/lib/tools.jar
            
            =========================================================================
            
            16:34:06,523 INFO [Server] Starting JBoss (MX MicroKernel)...
            16:34:06,524 INFO [Server] Release ID: JBoss [Trinity] 4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)
            16:34:06,526 INFO [Server] Home Dir: /home/common/jboss-4.2.1.GA
            16:34:06,526 INFO [Server] Home URL: file:/home/common/jboss-4.2.1.GA/
            16:34:06,527 INFO [Server] Patch URL: null
            16:34:06,527 INFO [Server] Server Name: default
            16:34:06,527 INFO [Server] Server Home Dir: /home/common/jboss-4.2.1.GA/server/default
            16:34:06,527 INFO [Server] Server Home URL: file:/home/common/jboss-4.2.1.GA/server/default/
            16:34:06,528 INFO [Server] Server Log Dir: /home/common/jboss-4.2.1.GA/server/default/log
            16:34:06,528 INFO [Server] Server Temp Dir: /home/common/jboss-4.2.1.GA/server/default/tmp
            16:34:06,529 INFO [Server] Root Deployment Filename: jboss-service.xml
            16:34:06,838 INFO [ServerInfo] Java version: 1.5.0_10,Sun Microsystems Inc.
            16:34:06,838 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_10-b03,Sun Microsystems Inc.
            16:34:06,839 INFO [ServerInfo] OS-System: Linux 2.6.18-ovz028stab035.1-smp,i386
            16:34:07,243 INFO [Server] Core system initialized
            16:34:10,780 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@435a3a)]
            16:34:10,805 ERROR [MainDeployer] Could not create deployment: file:/home/common/jboss-4.2.1.GA/server/default/conf/jboss-service.xml
            org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
             at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
             at org.jboss.system.ServiceController.install(ServiceController.java:226)
             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:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy4.install(Unknown Source)
             at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
             at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
             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:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy5.deploy(Unknown Source)
             at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
             at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
             at org.jboss.Main.boot(Main.java:200)
             at org.jboss.Main$1.run(Main.java:508)
             at java.lang.Thread.run(Thread.java:595)
            Caused by: java.lang.reflect.InvocationTargetException
             at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)
             at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
             at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
             at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
             at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
             at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
             ... 36 more
            Caused by: javax.management.MBeanException
             at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
             at java.security.AccessController.doPrivileged(Native Method)
             at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
             ... 41 more
            Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@435a3a)]
             at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
             at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
             at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             ... 51 more
            Caused by: java.lang.RuntimeException: Exception creating identity: vserver34106: vserver34106
             at org.jboss.remoting.ident.Identity.get(Identity.java:211)
             at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
             at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
             at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
             at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
             at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
             ... 56 more
            Failed to boot JBoss:
            org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
             at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
             at org.jboss.system.ServiceController.install(ServiceController.java:226)
             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:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy4.install(Unknown Source)
             at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
             at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
             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:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy5.deploy(Unknown Source)
             at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
             at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
             at org.jboss.Main.boot(Main.java:200)
             at org.jboss.Main$1.run(Main.java:508)
             at java.lang.Thread.run(Thread.java:595)
            Caused by: java.lang.reflect.InvocationTargetException
             at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)
             at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
             at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
             at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
             at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
             at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
             ... 36 more
            Caused by: javax.management.MBeanException
             at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
             at java.security.AccessController.doPrivileged(Native Method)
             at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
             ... 41 more
            Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@435a3a)]
             at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
             at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
             at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             ... 51 more
            Caused by: java.lang.RuntimeException: Exception creating identity: vserver34106: vserver34106
             at org.jboss.remoting.ident.Identity.get(Identity.java:211)
             at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
             at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
             at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
             at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
             at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
             ... 56 more
            16:34:11,068 INFO [Server] Runtime shutdown hook called, forceHalt: true
            16:34:11,068 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
            16:34:11,074 INFO [Server] Shutdown complete
            Shutdown complete
            Halting VM
            


            • 3. Re: Unable to start the JBOSS 4.2.0 GA in Customized Linux e
              smilidon

              found the solution, i had to add the hostname to /etc/hosts, in my case

              127.0.0.1 localhost.localdomain vserver34106

              greetings S.