

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
4 messages in org.apache.logging.log4j-userRe: Please Help me.... How to Impleme...| From | Sent On | Attachments |
|---|---|---|
| Srinivas | Jun 6, 2004 11:14 pm | |
| Jacob Kjome | Jun 7, 2004 6:05 am | |
| Srinivas | Jun 7, 2004 7:02 am | |
| Jacob Kjome | Jun 7, 2004 3:48 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: Please Help me.... How to Implement Log4j..... | Actions... |
|---|---|---|
| From: | Jacob Kjome (ho...@visi.com) | |
| Date: | Jun 7, 2004 6:05:57 am | |
| List: | org.apache.logging.log4j-user | |
Where do you have commons-logging.jar? Struts uses it and it causes lots of problems like this because it is able to find Log4j using classloading tricks, but then not able to do classloading of Log4j it finds because it is in an inaccessible classloader. Put commons-logging in WEB-INF/lib along with log4j.jar and things should start working again. Make sure to use commons-logging.jar, not commons-logging-api.jar (which doesn't container the Log4j implementation).
Jake
At 07:15 AM 6/7/2004 +0100, you wrote:
Hi Friends,
I have Configured the Log4j in my Application and in my lib/ log4j-1.2.8.jar put the jar file. When I run this application i am getting
the Error..
I am putting log4j.jar file to web-inf/lib and log4j.properties and log4j.xml files are put into WEB-INF/classes ..
That is ...................
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
com.i2t2.mt.prod.action.LoginAction.<clinit>(LoginAction.java:17)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
java.lang.Class.newInstance0(Class.java:308)
java.lang.Class.newInstance(Class.java:261)
org.apache.struts.util.RequestUtils.applicationInstance
RequestUtils.java:231)
org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:326)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:268) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
note The full stack trace of the root cause is available in the Tomcat logs.
This is the Error I am getting now...
Please Help me to solve this problem....
Thanks
Srinivas
Yahoo! India Matrimony: Find your partner online.







