-
Mar 5th, 2009, 09:24 AM
#1
Log 4j errror in Dm 1.0.2
i am getting the following error
java.lang.ClassNotFoundException: org.apache.log4j.xml.DOMConfigurator
i have included the following jars in all combinations(both in ext and in usr) and still no luck
commons-logging-1.0.4.jar
com.springsource.org.apache.log4j-1.2.15.jar
my application has has import to package org.apache.log4j.xml and i also c the export for the same package in the above jar.
This worked in the previous version of spring dm .
-
Mar 5th, 2009, 11:10 AM
#2
Strange . . .
Where did you get commons-logging-1.0.4.jar bundle?
-
Mar 5th, 2009, 11:14 AM
#3
i converted the commons logging jar which my application earlier used using Bnd tool
-
Mar 5th, 2009, 05:07 PM
#4
I was trying to replicate your error and so far unsuccessfully. . .
Is there a reason why you have to use your version of commons logging?
DM Server comes pre-bundled with commons logging. It is also available from S2 Bundle repository http://www.springsource.com/reposito...ommons+logging
In any event, could you post your bundle so I can try to reproduce your error with your bundle?
-
Mar 6th, 2009, 12:21 AM
#5
The only way i got it working is
now by deleting this jar from the repository/ext
com.springsource.slf4j.org.apache.log4j-1.5.6.jar
i think this nature is because of similar package structure in both the jars , the above one and log4j
-
Mar 6th, 2009, 12:36 AM
#6
To add little bit more on the above packages share org.apache.log4j .
Hence since the one from repository if first resolved.
whenever there is request for any class in org.apache.log4j package
it only looks for com.springsource.slf4j.org.apache.log4j-1.5.6.jar
and classes in the log4j.jar are ignored , giving a class not found error.
-
Apr 3rd, 2009, 06:49 AM
#7
Does this solve problem
Is file deleting only solution to this problem ?
-
Apr 4th, 2009, 12:33 AM
#8
i could not figure out any other solution .. if u find any please let m eknoe ..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules