1 Reply Latest reply on Apr 8, 2004 2:16 AM by dave potts

    Default jboss 3.2.3 run reports an No suitable Log construct

    dave potts Newbie

      I installed jboss on a solaris 9 machine, running

      java version "1.4.0_00"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_00-b05)
      Java HotSpot(TM) Client VM (build 1.4.0_00-b05, mixed mode)

      define JAVA_HOME
      defined JBOSS_HOME

      Jboss attempts to start up and bails out with a
      21:58:37,093 ERROR [EmbeddedTomcatService] Starting failed
      org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException:
      No suitable Log constructor [Ljava.lang.Class;@a83a13 for org.apache.commons.logging.impl.Log4JLogger

      when attempting to start the tomcat process

      To ensure its not a permission issue, I have tried it as root same error as a mortal user, what the heck is matter.

      The machine has al of the java patches installed. I hav'nt changed anything from the default jboss setup

      Full log is as follows

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

      JBoss Bootstrap Environment

      JBOSS_HOME: /export/home3/install/jboss/jboss-3.2.3

      JAVA: /usr/java/bin/java

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

      CLASSPATH: /export/home3/install/jboss/jboss-3.2.3/bin/run.jar:/usr/java/lib/tools.jar

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

      21:58:06,227 INFO [Server] Starting JBoss (MX MicroKernel)...
      21:58:06,233 INFO [Server] Release ID: JBoss [WonderLand] 3.2.3 (build: CVSTag=JBoss_3_2_3 date=200
      311301445)
      21:58:06,235 INFO [Server] Home Dir: /export/home3/install/jboss/jboss-3.2.3
      21:58:06,236 INFO [Server] Home URL: file:/export/home3/install/jboss/jboss-3.2.3/
      21:58:06,238 INFO [Server] Library URL: file:/export/home3/install/jboss/jboss-3.2.3/lib/
      21:58:06,242 INFO [Server] Patch URL: null
      21:58:06,243 INFO [Server] Server Name: default
      21:58:06,244 INFO [Server] Server Home Dir: /export/home3/install/jboss/jboss-3.2.3/server/default
      21:58:06,246 INFO [Server] Server Home URL: file:/export/home3/install/jboss/jboss-3.2.3/server/def
      ault/
      21:58:06,247 INFO [Server] Server Data Dir: /export/home3/install/jboss/jboss-3.2.3/server/default/
      data
      21:58:06,248 INFO [Server] Server Temp Dir: /export/home3/install/jboss/jboss-3.2.3/server/default/
      tmp
      21:58:06,250 INFO [Server] Server Config URL: file:/export/home3/install/jboss/jboss-3.2.3/server/d
      efault/conf/
      21:58:06,251 INFO [Server] Server Library URL: file:/export/home3/install/jboss/jboss-3.2.3/server/
      default/lib/
      21:58:06,252 INFO [Server] Root Deployment Filename: jboss-service.xml
      21:58:06,266 INFO [Server] Starting General Purpose Architecture (GPA)...
      21:58:07,434 INFO [ServerInfo] Java version: 1.4.0_00,Sun Microsystems Inc.
      21:58:07,435 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.0_00-b05,Sun Microsystems In
      c.
      21:58:07,436 INFO [ServerInfo] OS-System: SunOS 5.9,sparc
      21:58:07,568 INFO [ServiceController] Controller MBean online
      21:58:08,019 INFO [MainDeployer] Started jboss.system:service=MainDeployer
      21:58:08,664 INFO [MainDeployer] Adding deployer: org.jboss.deployment.JARDeployer@f26605
      21:58:08,665 INFO [JARDeployer] Started jboss.system:service=JARDeployer
      21:58:08,853 INFO [MainDeployer] Adding deployer: org.jboss.deployment.SARDeployer@d85f79
      21:58:08,932 INFO [SARDeployer] Started jboss.system:service=ServiceDeployer
      21:58:08,933 INFO [Server] Core system initialized
      21:58:09,191 INFO [MainDeployer] Starting deployment of package: file:/export/home3/install/jboss/j
      boss-3.2.3/server/default/conf/jboss-service.xml
      21:58:24,184 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      21:58:25,615 INFO [LocalJBossServerDomain] Started jboss.management.local:j2eeType=J2EEDomain,name=
      Manager
      21:58:25,618 INFO [Log4jService] Started jboss.system:type=Log4jService,service=Logging
      21:58:25,629 INFO [AbstractDeploymentScanner$ScannerThread] Running
      21:58:25,653 INFO [WebService] Started WebServer with address: 0.0.0.0:8083
      21:58:25,658 INFO [WebService] Using RMI server codebase: http://tom.pinan.co.uk:8083/
      21:58:25,658 INFO [WebService] Started jboss:service=WebService
      21:58:25,665 INFO [NamingService] Starting jnp server
      21:58:26,274 INFO [NamingService] Started jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.
      0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad09
      3076
      21:58:26,327 INFO [NamingService] Listening on port 1099
      21:58:26,479 INFO [NamingService] Started jboss:service=Naming
      21:58:26,481 INFO [JNDIView] Started jboss:service=JNDIView
      21:58:26,489 INFO [SecurityConfig] Started jboss.security:service=SecurityConfig
      21:58:26,801 INFO [XMLLoginConfig] Started jboss.security:service=XMLLoginConfig
      21:58:26,843 INFO [JaasSecurityManagerService] Started jboss.security:service=JaasSecurityManager
      21:58:27,029 INFO [TransactionManagerService] Started jboss:service=TransactionManager
      21:58:27,121 INFO [JRMPInvoker] Started jboss:service=invoker,type=jrmp
      21:58:27,595 INFO [JRMPProxyFactory] Started jboss:service=proxyFactory,target=ClientUserTransactio
      nFactory
      21:58:27,628 INFO [JRMPProxyFactory] Started jboss:service=proxyFactory,target=ClientUserTransactio
      n
      21:58:27,657 INFO [ClientUserTransactionService] Started jboss:service=ClientUserTransaction
      21:58:27,664 INFO [LocalInvoker] Started jboss:service=invoker,type=local
      21:58:27,864 INFO [PooledInvoker] Started jboss:service=invoker,type=pooled
      21:58:27,912 INFO [MainDeployer] Adding deployer: org.jboss.ejb.EJBDeployer@f2cea2
      21:58:27,914 INFO [EJBDeployer] Started jboss.ejb:service=EJBDeployer
      21:58:27,917 INFO [MainDeployer] Adding deployer: org.jboss.deployment.EARDeployer@3a9bba
      21:58:27,919 INFO [EARDeployer] Started jboss.j2ee:service=EARDeployer
      21:58:27,968 INFO [MainDeployer] Adding deployer: org.jboss.varia.deployment.BeanShellSubDeployer@a
      85d38
      21:58:27,970 INFO [BeanShellSubDeployer] Started jboss.scripts:service=BSHDeployer
      21:58:28,074 INFO [MainDeployer] Starting deployment of package: file:/export/home3/install/jboss/j
      boss-3.2.3/server/default/deploy/http-invoker.sar/
      21:58:28,154 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/http-invoker.sar/invoker.war/
      21:58:28,166 INFO [MainDeployer] deployment waiting for deployer: file:/export/home3/install/jboss/
      jboss-3.2.3/server/default/deploy/http-invoker.sar/invoker.war/
      21:58:28,678 INFO [HttpInvoker] Started jboss:service=invoker,type=http
      21:58:28,680 INFO [HttpInvokerHA] Started jboss:service=invoker,type=httpHA
      21:58:28,708 INFO [HttpProxyFactory] Started jboss:service=invoker,type=http,target=Naming
      21:58:28,888 INFO [HttpProxyFactory] Started jboss:service=invoker,type=http,target=Naming,readonly
      =true
      21:58:29,199 INFO [MainDeployer] Deployed package: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/http-invoker.sar/
      21:58:29,290 INFO [MainDeployer] Starting deployment of package: file:/export/home3/install/jboss/j
      boss-3.2.3/server/default/deploy/jms/jbossmq-httpil.sar/
      21:58:29,316 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      21:58:29,336 INFO [MainDeployer] deployment waiting for deployer: file:/export/home3/install/jboss/
      jboss-3.2.3/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      21:58:29,600 INFO [MainDeployer] Deployed package: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jms/jbossmq-httpil.sar/
      21:58:29,610 INFO [MainDeployer] Starting deployment of package: file:/export/home3/install/jboss/j
      boss-3.2.3/server/default/deploy/jbossweb-tomcat41.sar/
      21:58:29,653 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/commons-logging.jar
      21:58:29,654 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/commons-beanutils.jar
      21:58:29,655 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/servlets-invoker.jar
      21:58:29,656 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/jakarta-regexp-1.3.jar
      21:58:29,657 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/naming-common.jar
      21:58:29,658 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/catalina.jar
      21:58:29,659 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/ant.jar
      21:58:29,660 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/servlets-webdav.jar
      21:58:29,661 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/servlets-default.jar
      21:58:29,662 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/jasper-runtime.jar
      21:58:29,664 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/commons-digester.jar
      21:58:29,665 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/tomcat41-service.jar
      21:58:29,666 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/bootstrap.jar
      21:58:29,667 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/servlets-common.jar
      21:58:29,668 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/naming-resources.jar
      21:58:29,669 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/tomcat-util.jar
      21:58:29,670 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/commons-collections.jar
      21:58:29,671 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/tomcat-coyote.jar
      21:58:29,673 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/tomcat-http11.jar
      21:58:29,674 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/jasper-compiler.jar
      21:58:29,675 INFO [SARDeployer] nested deployment: file:/export/home3/install/jboss/jboss-3.2.3/ser
      ver/default/deploy/jbossweb-tomcat41.sar/tomcat-jk2.jar
      21:58:37,093 ERROR [EmbeddedTomcatService] Starting failed
      org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationExc
      eption: No suitable Log constructor [Ljava.lang.Class;@a83a13 for org.apache.commons.logging.impl.Lo
      g4JLogger
      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.LogFactory.getLog(LogFactory.java:414)
      at org.apache.commons.digester.Digester.(Digester.java:346)
      at org.jboss.web.tomcat.tc4.LoggedXmlMapper.(LoggedXmlMapper.java:35)
      at org.jboss.web.tomcat.tc4.ConfigHandler.applyHostConfig(ConfigHandler.java:55)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.initCatalina(EmbeddedTomcatService.java:43
      0)
      at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.startService(EmbeddedTomcatService.java:27
      2)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284
      )
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284
      )
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      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.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284
      )
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeplo
      ymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentSca
      nner.java:274)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284
      )
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284
      )
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
      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.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284
      )
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:395)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.
      lang.Class;@a83a13 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)
      ... 73 more
      Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
      at java.lang.Class.getConstructor0(Class.java:1748)
      at java.lang.Class.getConstructor(Class.java:990)
      at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:429)

      ... 74 more
      21:58:37,219 WARN [ServiceController] Problem s