Dan Mullins 15.May.07 10:21 PM a Web browser Client for Desktop6.1All platforms
I'm trying to use log4j as my commons-logging implementation. I've included the log4j.jar in my bundle, but when I include the commons-logging.properties I get an exception.
Here's my commons-logging.properties:
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
Here's a snippet of the stack trace:
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NoClassDefFoundError: org.apache.log4j.Category (Caused by java.lang.NoClassDefFoundError: org.apache.log4j.Category) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NoClassDefFoundError: org.apache.log4j.Category (Caused by java.lang.NoClassDefFoundError: org.apache.log4j.Category))
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at org.springframework.util.ClassUtils.<clinit>(ClassUtils.java:65)
at java.lang.J9VMInternals.initializeImpl(Native Method)