Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem instantiating ActionServlet of Struts1.1-b2 with Log4J-1.2.7

3 views
Skip to first unread message

Vishal Gautam

unread,
Nov 14, 2002, 9:40:12 AM11/14/02
to
Struts Gurus:
Has any one able to use the latest Struts (1.1-b2) classes with latest
Log4J(1.2.7). In my web app, ActionServlet is refusing to instantiate
when Log4J-1.2.7 is in the WEB-INF/lib, with following error. If any
one has experienced this problem and/or knows the solution, please
post.
TIA
javax.servlet.ServletException: Error instantiating servlet class
org.apache.struts.action.ActionServlet
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:901)
..... truncated ..
----- 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)
...truncated .....

AV

unread,
Nov 14, 2002, 8:32:41 PM11/14/02
to
Hi,

Check if struts has another log4j jar inside his
own libraries. Apache moving log4j to sun's api
and depreciated Log. May be it is possible
to fix this clash by specifying (somewhere)
old Factory implicitly for struts and use new
factory for application code ... ?

AlexV.

"Vishal Gautam" <vishal...@xcelerate.com> wrote in message
news:f26aa0c6.02111...@posting.google.com...

0 new messages