1 Reply Latest reply on Feb 25, 2007 5:09 PM by Peter Johnson

    Unable to start JBOSS

    Alfia Ansari Newbie


      0:48:28,765 INFO [Server] Starting JBoss (MX MicroKernel)...
      0:48:28,765 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Bra
      ch_4_0 date=200610162339)
      0:48:28,812 INFO [Server] Home Dir: C:\Program Files\jboss-4.0.5.GA
      0:48:28,812 INFO [Server] Home URL: file:/C:/Program Files/jboss-4.0.5.GA/
      0:48:28,812 INFO [Server] Patch URL: null
      0:48:28,812 INFO [Server] Server Name: default
      0:48:28,812 INFO [Server] Server Home Dir: C:\Program Files\jboss-4.0.5.GA\ser
      er\default
      0:48:28,812 INFO [Server] Server Home URL: file:/C:/Program Files/jboss-4.0.5.
      A/server/default/
      0:48:28,812 INFO [Server] Server Log Dir: C:\Program Files\jboss-4.0.5.GA\serv
      r\default\log
      0:48:28,812 INFO [Server] Server Temp Dir: C:\Program Files\jboss-4.0.5.GA\ser
      er\default\tmp
      0:48:28,812 INFO [Server] Root Deployment Filename: jboss-service.xml
      0:48:29,343 INFO [ServerInfo] Java version: 1.5.0_09,Sun Microsystems Inc.
      0:48:29,343 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_09-b03
      Sun Microsystems Inc.
      0:48:29,343 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      0:48:31,734 INFO [Server] Core system initialized
      0:48:38,843 INFO [WebService] Using RMI server codebase: http://D6D64K81:8083/

      0:48:38,890 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
      e:log4j.xml
      0:48:45,531 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.1.102:3873/]
      0:48:59,890 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
      0:49:06,546 INFO [SnmpAgentService] SNMP agent going active
      0:49:19,546 ERROR [MainDeployer] Could not create deployment: file:/C:/Program Files/jboss-4.0.5.GA/server/default/deploy/tc5-cluster.sar/
      rg.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
      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 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)

      ..........
      ............





      caused by: java.lang.reflect.UndeclaredThrowableException
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
      ... 81 more
      caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Layout
      at org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:140)
      at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:257)
      at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
      at org.jboss.cache.TreeCache.(TreeCache.java:151)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1233)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
      ... 83 more



      java.lang.NoClassDefFoundError: org/apache/log4j/Layout
      at org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:140)
      at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:257)
      at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
      at org.jgroups.conf.ConfiguratorFactory.(ConfiguratorFactory.java:42)
      at org.jgroups.JChannel.(JChannel.java:189)
      at org.jboss.ha.framework.server.ClusterPartition.createService(ClusterPartition.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
      at sun.reflect.GeneratedMethodAccessor2.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)
      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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:330)
      at org.jboss.system.ServiceController.create(ServiceController.java:273)
      at sun.reflect.GeneratedMethodAccessor4.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)
      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.create(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:258)
      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)


      0:49:21,921 ERROR [MainDeployer] Could not create deployment: file:/C:/Program Files/jboss-4.0.5.GA/server/default/deploy/ejb3-entity-cache-serv
      ce.xml
      rg.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
      at org.jboss.system.ServiceController.install(ServiceController.java:226)
      at sun.reflect.GeneratedMethodAccessor22.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)
      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 sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
      ...............
      .............
      ...............




      ObjectName: jboss:service=DefaultPartition
      State: FAILED
      Reason: java.lang.NoClassDefFoundError: org/apache/log4j/Layout
      I Depend On:
      jboss:service=Naming
      Depends On Me:
      jboss:service=HASessionState
      jboss:service=HAJNDI
      jboss.cache:service=InvalidationBridge,type=JavaGroups
      jboss.ha:service=HASingletonDeployer
      jboss:service=FarmMember,partition=DefaultPartition

        • 1. Re: Unable to start JBOSS
          Peter Johnson Master

          The missing class, org/apache/log4j/Layout, is found in the server/xxx/lib/log4j.jar file. Jboss should pick up that file automatically.

          Based on the fact that you have JBoss in Program Files, I am going to guess that you installed JBoss using the installer. I suggest re-installing JBoss to somewhere other than Program Files (mine is at c:/apps/jboss-4.0.5.ga) . Also, if you installed the JDK in Program Files, also reinstall it elsewhere (mine is at c:/apps/jdk1.5.0_11). Yes, those installers default to Program Files, but spaces in directory names causes some Java libraries fits, so it is usually prudent to avoid Program Files.