logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11921] New: - java.lang.ExceptionInInitializerError in loading Logger instance
Date Thu, 22 Aug 2002 09:57:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11921>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11921

java.lang.ExceptionInInitializerError in loading Logger instance

           Summary: java.lang.ExceptionInInitializerError in loading Logger
                    instance
           Product: Log4j
           Version: 1.2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Other
        AssignedTo: log4j-dev@jakarta.apache.org
        ReportedBy: manfred.steinbach@heidelberg.com


When starting tomcat-4.1 I get following exception:

------------------------------ Exception start

2002-08-22 10:16:21 HostConfig[localhost]: Expanding web application archive
jteservice.war
2002-08-22 10:16:21 StandardHost[localhost]: Installing web application at
context path /jteservice from URL file:G:/Pro
gram Files/Apache Group/Tomcat 4.1/bin/../webapps/jteservice
2002-08-22 10:16:21 WebappLoader[/jteservice]: Deploying class repositories to
work directory G:\Program Files\Apache Gr
oup\Tomcat 4.1\work\Standalone\localhost\jteservice
2002-08-22 10:16:21 WebappLoader[/jteservice]: Deploy class files
/WEB-INF/classes to G:\Program Files\Apache Group\Tomc
at 4.1\bin\..\webapps\jteservice\WEB-INF\classes
2002-08-22 10:16:21 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/commons-beanutils.jar to G:\Program Files\Apache
Group\Tomcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\commons-beanutils.jar
2002-08-22 10:16:21 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/commons-collections.jar to G:\Program Files\Apach
e Group\Tomcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\commons-collections.jar
2002-08-22 10:16:21 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/commons-dbcp.jar to G:\Program Files\Apache Group
\Tomcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\commons-dbcp.jar
2002-08-22 10:16:21 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/commons-digester.jar to G:\Program Files\Apache G
roup\Tomcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\commons-digester.jar
2002-08-22 10:16:21 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/commons-fileupload.jar to G:\Program Files\Apache
 Group\Tomcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\commons-fileupload.jar
2002-08-22 10:16:21 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/commons-lang.jar to G:\Program Files\Apache Group
\Tomcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\commons-lang.jar
2002-08-22 10:16:21 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/commons-logging.jar to G:\Program Files\Apache Gr
oup\Tomcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\commons-logging.jar
2002-08-22 10:16:21 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/commons-pool.jar to G:\Program Files\Apache Group
\Tomcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\commons-pool.jar
2002-08-22 10:16:21 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/commons-resources.jar to G:\Program Files\Apache
Group\Tomcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\commons-resources.jar
2002-08-22 10:16:21 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/commons-services.jar to G:\Program Files\Apache G
roup\Tomcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\commons-services.jar
2002-08-22 10:16:21 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/commons-validator.jar to G:\Program Files\Apache
Group\Tomcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\commons-validator.jar
2002-08-22 10:16:21 WebappLoader[/jteservice]: Deploy JAR /WEB-INF/lib/jacl.jar
to G:\Program Files\Apache Group\Tomcat
4.1\bin\..\webapps\jteservice\WEB-INF\lib\jacl.jar
2002-08-22 10:16:22 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/jakarta-oro.jar to G:\Program Files\Apache Group\
Tomcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\jakarta-oro.jar
2002-08-22 10:16:22 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/jdbc2_0-stdext.jar to G:\Program Files\Apache Gro
up\Tomcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\jdbc2_0-stdext.jar
2002-08-22 10:16:22 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/jndi_fscontext.jar to G:\Program Files\Apache Gro
up\Tomcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\jndi_fscontext.jar
2002-08-22 10:16:22 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/jndi_providerutil.jar to G:\Program Files\Apache
Group\Tomcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\jndi_providerutil.jar
2002-08-22 10:16:22 WebappLoader[/jteservice]: Deploy JAR /WEB-INF/lib/jte.jar
to G:\Program Files\Apache Group\Tomcat 4
.1\bin\..\webapps\jteservice\WEB-INF\lib\jte.jar
2002-08-22 10:16:22 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/jteservice.jar to G:\Program Files\Apache Group\T
omcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\jteservice.jar
2002-08-22 10:16:22 WebappLoader[/jteservice]: Deploy JAR /WEB-INF/lib/log4j.jar
to G:\Program Files\Apache Group\Tomcat
 4.1\bin\..\webapps\jteservice\WEB-INF\lib\log4j.jar
2002-08-22 10:16:22 WebappLoader[/jteservice]: Deploy JAR /WEB-INF/lib/omg.jar
to G:\Program Files\Apache Group\Tomcat 4
.1\bin\..\webapps\jteservice\WEB-INF\lib\omg.jar
2002-08-22 10:16:22 WebappLoader[/jteservice]: Deploy JAR /WEB-INF/lib/opm.jar
to G:\Program Files\Apache Group\Tomcat 4
.1\bin\..\webapps\jteservice\WEB-INF\lib\opm.jar
2002-08-22 10:16:22 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/orbix2000.jar to G:\Program Files\Apache Group\To
mcat 4.1\bin\..\webapps\jteservice\WEB-INF\lib\orbix2000.jar
2002-08-22 10:16:22 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/servlet.jar to G:\Program Files\Apache Group\Tomc
at 4.1\bin\..\webapps\jteservice\WEB-INF\lib\servlet.jar
2002-08-22 10:16:22 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/struts.jar to G:\Program Files\Apache Group\Tomca
t 4.1\bin\..\webapps\jteservice\WEB-INF\lib\struts.jar
2002-08-22 10:16:22 WebappLoader[/jteservice]: Deploy JAR
/WEB-INF/lib/tcljava.jar to G:\Program Files\Apache Group\Tomc
at 4.1\bin\..\webapps\jteservice\WEB-INF\lib\tcljava.jar
2002-08-22 10:16:31 StandardManager[/jteservice]: Seeding random number
generator class java.security.SecureRandom
2002-08-22 10:16:31 StandardManager[/jteservice]: Seeding of random number
generator has been completed
2002-08-22 10:16:31 StandardWrapper[/jteservice:default]: Loading container
servlet default
2002-08-22 10:16:31 default: init
2002-08-22 10:16:31 StandardWrapper[/jteservice:invoker]: Loading container
servlet invoker
2002-08-22 10:16:31 invoker: init
2002-08-22 10:16:32 StandardWrapper[/jteservice:action]: Marking servlet action
as unavailable
2002-08-22 10:16:32 StandardContext[/jteservice]: Servlet /jteservice threw
load() exception
javax.servlet.ServletException: Error instantiating servlet class
org.apache.struts.action.ActionServlet
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:896)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:811)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3293)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
        at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:774)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:882)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1198)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:740)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
        at org.apache.catalina.core.StandardService.start(StandardService.java:499)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:2186)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
----- Root Cause -----
java.lang.ExceptionInInitializerError:
org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.
LogConfigurationException: org.apache.commons.logging.LogConfigurationException:
Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
        at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:530)
        at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:285)
        at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:255)
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:375)
        at org.apache.struts.action.ActionServlet.<clinit>(ActionServlet.java:375)
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:237)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:887)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:811)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3293)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3486)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
        at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:774)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:882)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1198)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:740)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
        at org.apache.catalina.core.StandardService.start(StandardService.java:499)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:2186)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

2002-08-22 10:16:32 jsp: init

------------------------------ Exception end

The exception is now new since I used log4j-1.2.6.
Although I read something about the modified class loading in bug report #9305,
I did not find a solution to solve the bug. The exception is gone, when I put
the log4j.jar in lib/ext of the java virtual machine. The exception occurs, when
the archive is located in WEB_INF\lib.

I'm using following:
- Tomcat-4.1.3
- Struts-1.1b2
- Log4j-1.2.6

Thanks for any help,

Manfred Steinbach

--
To unsubscribe, e-mail:   <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@jakarta.apache.org>


Mime
View raw message