cancel
Showing results for 
Search instead for 
Did you mean: 

User-specified log class 'org.apache.commons.logging.impl.Lo

clandestino
Champ in-the-making
Champ in-the-making
When running FirstWebServiceClient.java in Seam project, I get following error:

Exception in thread "main" java.lang.ExceptionInInitializerError
   at com.mydomain.myproject.action.FirstWebServiceClient.main(FirstWebServiceClient.java:63)
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(LogFactoryImpl.java:798)
   at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:601)
   at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:333)
   at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:307)
   at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
   at org.alfresco.webservice.util.WebServiceFactory.<clinit>(WebServiceFactory.java:64)
   … 1 more

Does anybody know what is the problem?
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Caused by: org.apache.commons.logging.LogConfigurationException: User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable.

Have you got the log4j.jar on your classpath?

asima
Champ in-the-making
Champ in-the-making

When I moved the log4j.properties file to project level in Eclipse, this error got fixed.