File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes User defined log file cannot be found or is not usable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "User defined log file cannot be found or is not usable" Watch "User defined log file cannot be found or is not usable" New topic

User defined log file cannot be found or is not usable

Kunal Bhatia

Joined: Aug 28, 2009
Posts: 11
Dear All,

I'am getting the following error on starting server Tomcat 5.5

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(
at org.apache.catalina.startup.Bootstrap.main(
Caused by: org.apache.commons.logging.LogConfigurationException: User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable.
at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
at org.apache.commons.logging.LogFactory.getLog(
at org.apache.catalina.core.ContainerBase.getLogger(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardHost.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardEngine.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
... 6 more

What is suppose from this error about some classpath error of log4j.jar...but not able to find the error....Can you help in this??
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17260

Your exception is coming from Apache commons-logging, which is a logging consolidator used to manage software from multiple sources which may be using different logging packages. The message indicates it can't find the adapter for log4j logging.

I think there's a copy of commons-logging in TOMCAT_HOME/lib, so potentially you could be encountering a classpath conflict, but I'd check the apache commons logging docs to make sure you've got it set up properly.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: User defined log file cannot be found or is not usable
jQuery in Action, 3rd edition