[slf4j-user] Trying to use log4j-over-slf4j

Raymond Cramer rnc at bodc.ac.uk
Thu Oct 30 16:24:04 CET 2008


Hello, 

I'm new to slf4j, having been using log4j. I am trying to use a package (netcdf) that requires slf4j, but am having problems getting my head around some of this stuff. 

1) If I have an application (which uses log4j) deployed through Tomcat, do I simply replace the log4j jar file with log4j-over-slf4j and slf4j-api jar files? Because when I do this the application doesn't run at all; I get the HTTP Status 404 error that my JSP can't be found.

If I put the log4j jar back the app works (having restarted Tomcat), but I think its using log4j not slf4j because I eventually get the error

java.lang.IncompatibleClassChangeError: Class org.apache.log4j.Logger does not implement the requested interface org.slf4j.Logger

when its accessing the netcdf package. 

Hope someone can help me out on this blocker
Cheer
Ray


-- 
This message (and any attachments) is for the recipient only. NERC
is subject to the Freedom of Information Act 2000 and the contents
of this email and any reply you make may be disclosed by NERC unless
it is exempt from release under the Act. Any material supplied to
NERC may be stored in an electronic records management system.




More information about the slf4j-user mailing list