You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/03/07 16:57:32 UTC
DO NOT REPLY [Bug 27504] New: -
LogConfigurationException when using STRUTS with 2 applications in iPlanet
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=27504>.
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=27504
LogConfigurationException when using STRUTS with 2 applications in iPlanet
Summary: LogConfigurationException when using STRUTS with 2
applications in iPlanet
Product: Commons
Version: 1.0.3
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: Major
Priority: Other
Component: Logging
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: vshaiva@optonline.net
CC: vshaiva@optonline.net
We are running two STRUTS applications using Log4j in iPlanet 6.5 Application
servers. We have deployed struts, commons-beanutils, common-collections,
commons-digester, commons-logging, commons-validator and log4j under the WEB-
INF/lib and packaged them as separate ear files for each application
separately. The Action servlet in each application is deployed with a different
name. Each application has an initializer servlet that is invoked at
application server startup and load the Log4J configuration.
The above works fine with only one application and also on occasion with both
applications. However, we are getting intermittent errors when running both
applications together when the requested JSP fails to load with an error in the
application server kjs logs. We have observed the following pattern of errors:
(with debugging turned on)
Always starts with one LogConfigurationException (see Error #1 below). This
error does not always happen at startup. It can happen even after some usage of
the applications. Once this error has occured, we get a
java.lang.NoClassDefFoundError (see Error #2 below) when the JSP page load
occurs in the application.
Has anyone seen this error ? Any insight would be much appreciated.
Error #1
------------
Loading servlet: App1Action
[06/Mar/2004 13:01:39:3] error: Exception: SERVLET-execution_failed: Error in
executing servlet EAMSAction: java.lang.ExceptionInInitializerError
Exception Stack Trace:
java.lang.ExceptionInInitializerError:
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.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:246)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
at org.apache.struts.action.ActionServlet.<clinit>
(ActionServlet.java:375)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
com.netscape.server.servlet.servletrunner.ServletRepository.loadServlet(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRepository.createInstance
(Unknown Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.createServletInfo
(ServletRunner.java:1237)
at com.netscape.server.servlet.servletrunner.AppInfo.preLoadServlets
(Unknown Source)
at com.netscape.server.servlet.servletrunner.AppInfo.resetServlets
(Unknown Source)
at com.netscape.server.servlet.servletrunner.AppInfo.<init>(Unknown
Source)
at com.netscape.server.servlet.servletrunner.ServletModule.getAppInfo
(Unknown Source)
at com.netscape.server.servlet.servletrunner.ServletRunner.getAppInfo
(ServletRunner.java:1546)
at com.netscape.server.servlet.servletrunner.ServletRunner.execute
(ServletRunner.java:986)
at com.kivasoft.applogic.AppLogic.execute(AppLogic.java:152)
at com.kivasoft.applogic.AppLogic.execute(AppLogic.java:86)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
MessageHeaders:setHeaderField(): Invoking headers.put(name, value)
[06/Mar/2004 13:01:39:3] error: APPLOGIC-caught_exception: Caught Exception:
java.lang.ClassCastException: java.lang.ExceptionInInitializerError
at com.netscape.server.servlet.servletrunner.ServletRunner.reportError
(ServletRunner.java:1576)
at com.netscape.server.servlet.servletrunner.ServletRunner.execute
(ServletRunner.java:1002)
at com.kivasoft.applogic.AppLogic.execute(AppLogic.java:152)
at com.kivasoft.applogic.AppLogic.execute(AppLogic.java:86)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
Error #2: This happens when the application is accessing a page.
--------------------------------------------------------------------------------
--------------
Loading servlet: App1Action
[06/Mar/2004 13:38:23:7] error: Exception: SERVLET-execution_failed: Error in
executing servlet App1Action: java.lang.NoClassDefFoundError
Exception Stack Trace:
java.lang.NoClassDefFoundError
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
com.netscape.server.servlet.servletrunner.ServletRepository.loadServlet(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRepository.createInstance
(Unknown Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.createServletInfo
(ServletRunner.java:1237)
at com.netscape.server.servlet.servletrunner.AppInfo.preLoadServlets
(Unknown Source)
at com.netscape.server.servlet.servletrunner.AppInfo.resetServlets
(Unknown Source)
at com.netscape.server.servlet.servletrunner.AppInfo.<init>(Unknown
Source)
at com.netscape.server.servlet.servletrunner.ServletModule.getAppInfo
(Unknown Source)
at com.netscape.server.servlet.servletrunner.ServletRunner.getAppInfo
(ServletRunner.java:1546)
at com.netscape.server.servlet.servletrunner.ServletRunner.execute
(ServletRunner.java:986)
at com.kivasoft.applogic.AppLogic.execute(AppLogic.java:152)
at com.kivasoft.applogic.AppLogic.execute(AppLogic.java:86)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
MessageHeaders:setHeaderField(): Invoking headers.put(name, value)
[06/Mar/2004 13:38:23:7] error: APPLOGIC-caught_exception: Caught Exception:
java.lang.ClassCastException: java.lang.NoClassDefFoundError
at com.netscape.server.servlet.servletrunner.ServletRunner.reportError
(ServletRunner.java:1576)
at com.netscape.server.servlet.servletrunner.ServletRunner.execute
(ServletRunner.java:1002)
at com.kivasoft.applogic.AppLogic.execute(AppLogic.java:152)
at com.kivasoft.applogic.AppLogic.execute(AppLogic.java:86)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org