The Category class in log4j has been deprecated for a long time, and I recall some recent discussions on the commons-dev list about bringing commons-logging "up-to-date" with that. I don't remember the details, but basically you just need to have compatible versions of commons-logging and log4j. The project site for commons-logging or the commons-dev or commons-user mailing list archives may have more details.

Joe


At 11:35 AM +0100 11/30/04, Ian van der Neut wrote:
Hello all,

I downloaded struts 1.2.4 yesterday to replace the 1.2.2 version that
I am developping against. However, testing my application with the new
jars (I copied all of the jars in the 1.2.4 tarball to the WEB-INF/lib
directory of my webapp) generates an exception:

[snipped]

root cause

javax.servlet.ServletException:
org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Level;Ljava/lang/Object;Ljava/lang/Throwable;)V
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:70)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)


[snipped]

Is there something special I must do to make this work? I have log4j
version 1.2.8 installed. The problem goes away if I replace the
commons-logging jar with the one from the struts 1.2.2 distribution.

Thanks for any input,

Ian.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex

Reply via email to