1 Reply Latest reply on Aug 8, 2005 11:40 AM by Gerald Quintana

    Log4JLogger does not implement Log

    Gerald Quintana Newbie

      Hello,

      • Alone, MyEjbs.jar is deploying properly.
      • Alone, MyWeb.war is deploying properly.

        But when I place them together in MyApp.ear, I get the following exception:
        2005-08-08 15:33:17,047 ERROR [org.apache.commons.digester.Digester] End event threw exception
        java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:890)
        (...)
        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)
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
        at org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:996)
        at org.apache.catalina.core.StandardWrapper.start(StandardWrapper.java:1610)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at org.apache.catalina.core.StandardContext.addChild(StandardContext.java:1894)
        ... 137 more
        Caused by: 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.getLogConstructor(LogFactoryImpl.java:416)
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
        ... 145 more
        Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log
        at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:412)
        ... 146 more


        It looks like a class loading problem. I have turned on the CallByValue and Isolated options to true in ear-deployer.xml. Is it related ?

        What can I do to make MyEjb.jar and MyWeb.war play together?

        Thanks for your help.
        Gérald