2 Replies Latest reply on Aug 19, 2005 5:25 PM by Stephan

    JBoss won't start (Problem starting service jboss.web:servic

    Stephan Newbie

      Hi there,

      I have exactly the same problem on two Linux hosts (Kernel 2.6.11.11 and 2.6.12.4) with JBoss 4.0.2 (and 4.0.1) and with JDK 1.4.2 and JDK 1.5.0:

      fury@chronos ~/jboss/jboss-4.0.2/bin $ ./run.sh
      =========================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: /home/fury/jboss/jboss-4.0.2

      JAVA: /opt/java/j2sdk1.4.2_05/bin/java

      JAVA_OPTS: -server -Xms128m -Xmx128m -Dprogram.name=run.sh

      CLASSPATH: /home/fury/jboss/jboss-4.0.2/bin/run.jar:/opt/java/j2sdk1.4.2_05/lib/tools.jar

      =========================================================================

      19:54:13,206 INFO [Server] Starting JBoss (MX MicroKernel)...
      19:54:13,208 INFO [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)
      19:54:13,209 INFO [Server] Home Dir: /home/fury/jboss/jboss-4.0.2
      19:54:13,209 INFO [Server] Home URL: file:/home/fury/jboss/jboss-4.0.2/
      19:54:13,209 INFO [Server] Library URL: file:/home/fury/jboss/jboss-4.0.2/lib/
      19:54:13,211 INFO [Server] Patch URL: null
      19:54:13,211 INFO [Server] Server Name: default
      19:54:13,212 INFO [Server] Server Home Dir: /home/fury/jboss/jboss-4.0.2/server/default
      19:54:13,212 INFO [Server] Server Home URL: file:/home/fury/jboss/jboss-4.0.2/server/default/
      19:54:13,212 INFO [Server] Server Data Dir: /home/fury/jboss/jboss-4.0.2/server/default/data
      19:54:13,213 INFO [Server] Server Temp Dir: /home/fury/jboss/jboss-4.0.2/server/default/tmp
      19:54:13,213 INFO [Server] Server Config URL: file:/home/fury/jboss/jboss-4.0.2/server/default/conf/
      19:54:13,213 INFO [Server] Server Library URL: file:/home/fury/jboss/jboss-4.0.2/server/default/lib/
      19:54:13,214 INFO [Server] Root Deployment Filename: jboss-service.xml
      19:54:13,218 INFO [Server] Starting General Purpose Architecture (GPA)...
      19:54:13,907 INFO [ServerInfo] Java version: 1.4.2_05,Sun Microsystems Inc.
      19:54:13,908 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.2_05-b04,Sun Microsystems Inc.
      19:54:13,908 INFO [ServerInfo] OS-System: Linux 2.6.12.4,i386
      19:54:14,936 INFO [Server] Core system initialized
      19:54:18,298 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      19:54:18,538 INFO [WebService] Using RMI server codebase: http://chronos.localnet.de:8083/
      19:54:19,203 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
      19:54:26,522 WARN [ServiceController] Problem starting service jboss.web:service=WebServer
      java.lang.ExceptionInInitializerError
      at org.jboss.web.tomcat.tc5.Tomcat5.startService(Tomcat5.java:335)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      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:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:418)
      at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      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:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:273)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
      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:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      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:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:418)
      at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      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:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:273)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
      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:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
      at org.jboss.Main.boot(Main.java:195)
      at org.jboss.Main$1.run(Main.java:463)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@12b19c5 for org.apache.commons.logging.impl.Log4JLogger
      at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
      at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
      at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)
      at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
      at org.apache.commons.modeler.Registry.(Registry.java:126)
      ... 93 more
      Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@12b19c5 for org.apache.commons.logging.impl.Log4JLogger
      at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:432)
      at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
      ... 97 more
      Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
      at java.lang.Class.getConstructor0(Class.java:1930)
      at java.lang.Class.getConstructor(Class.java:1027)
      at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:429)
      ... 98 more
      19:54:30,692 INFO [MailService] Mail Service bound to java:/Mail
      [......]
      [......]
      [......]
      org.jboss.deployment.DeploymentInfo@d6563c7a { url=file:/home/fury/jboss/jboss-4.0.2/server/default/deploy/jmx-console.war/ }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/home/fury/jboss/jboss-4.0.2/server/default/deploy/jmx-console.war/
      altDD: null
      lastDeployed: 1124474078111
      lastModified: 1124473621000
      mbeans:

      --- Incompletely deployed packages ---
      org.jboss.deployment.DeploymentInfo@d6563c7a { url=file:/home/fury/jboss/jboss-4.0.2/server/default/deploy/jmx-console.war/ }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/home/fury/jboss/jboss-4.0.2/server/default/deploy/jmx-console.war/
      altDD: null
      lastDeployed: 1124474078111
      lastModified: 1124473621000
      mbeans:

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.web:service=WebServer
      State: FAILED
      Reason: java.lang.ExceptionInInitializerError
      I Depend On:
      jboss.security:service=JaasSecurityManager
      jboss:service=TransactionManager
      Depends On Me:
      jboss.ws4ee:service=ServiceDeployerJSE
      jboss.mq:service=InvocationLayer,type=HTTP

      ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=Invoker
      jboss.web:service=WebServer

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.web:service=WebServer
      State: FAILED
      Reason: java.lang.ExceptionInInitializerError
      I Depend On:
      jboss.security:service=JaasSecurityManager
      jboss:service=TransactionManager
      Depends On Me:
      jboss.ws4ee:service=ServiceDeployerJSE
      jboss.mq:service=InvocationLayer,type=HTTP


      19:54:38,493 INFO [Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 25s:275ms


      What does this mean? How can I (or the JBoss people) fix it?