2 Replies Latest reply on Jul 16, 2004 1:13 PM by Jay Sissom

    JBoss Web app logging

    Jay Sissom Newbie

      It seems that JBoss 3.2.5 doesn't want web apps to do any logging.

      I have some web apps that deployed OK in JBoss 3.2.3, don't run at all in 3.2.5. I'm using Struts 1.1. and the Struts servlet won't load in 3.2.5 because it uses common-logging and/or log4j.

      Is there anything I can do to get this to work? Why does JBoss 3.2.5 have a problem with commons-logging/log4j? This application deployed fine in 3.2.3.

      Here are some of the exceptions I get:

      java.lang.VerifyError: (class: org/apache/log4j/Hierarchy, method: updateChildren signature: (Lorg/apache/log4j/ProvisionNode;Lorg/apache/log4j/Logger;)V) Bad type in putfield/putstatic
      at org.apache.log4j.LogManager.(LogManager.java:69)
      at org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigurator.java:673)
      at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:80)

      09:22:24,957 ERROR [Engine] StandardContext[/pdp-dev]Servlet /pdp-dev threw load() exception
      javax.servlet.ServletException: Servlet.init() for servlet Log4jInitServlet threw exception
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1061)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3991)

      09:22:24,992 ERROR [Engine] ----- Root Cause -----
      java.lang.VerifyError: (class: org/apache/log4j/Hierarchy, method: updateChildren signature: (Lorg/apache/log4j/ProvisionNode;Lorg/apache/log4j/Logger;)V) Bad type in putfield/putstatic
      at org.apache.log4j.LogManager.(LogManager.java:69)
      at org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigurator.java:673)

      09:22:25,299 INFO [Engine] StandardContext[/pdp-dev]Marking servlet Action as unavailable
      09:22:25,302 ERROR [Engine] StandardContext[/pdp-dev]Servlet /pdp-dev threw load() exception
      javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:986)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3991)

      09:22:25,335 ERROR [Engine] ----- Root Cause -----
      java.lang.ExceptionInInitializerError
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

      Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log
      at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
      at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)