Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » 'org.eclipse.hyades.logging.commons.FileLoggerFactory' cannot be converted to 'org.apache.commons.lo
'org.eclipse.hyades.logging.commons.FileLoggerFactory' cannot be converted to 'org.apache.commons.lo [message #119215] Sun, 09 December 2007 13:19
Eclipse UserFriend
Originally posted by: nospam_st.gmx.net

Hi,
I tried to profile a Grails application. However when I try to run the
application in profiling mode I am getting the exception below. Grails
uses commons-logging and this exception looks like a classloader issue
between some TPTP components and grails. The FAQ of commons-logging also
lists such an exception
http://commons.apache.org/logging/commons-logging-1.1/troubl eshooting.html#The_Incompatible_LogFactory_Issue
and provides a workaround, however it does not seem to work.

Any thoughts are appreciated.

Thanks,
Seb

------------------------------------------------------------ -----------------
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
org.codehaus.groovy.grails.cli.GrailsScriptRunner.class$(Gra ilsScriptRunner.groovy)
at
org.codehaus.groovy.grails.cli.GrailsScriptRunner.<clinit>(GrailsScriptRunner.groovy:35)
<snip/>
at grails.util.GrailsMain.main(GrailsMain.groovy)
Caused by: org.apache.commons.logging.LogConfigurationException: The
chosen LogFactory implementation does not extend LogFactory. Please
check your configuration. (Caused by java.lang.ClassCastException: The
application has specified that a custom LogFactory implementation should
be used but Class 'org.eclipse.hyades.logging.commons.FileLoggerFactory'
cannot be converted to 'org.apache.commons.logging.LogFactory'. The
conflict is caused by the presence of multiple LogFactory classes in
incompatible classloaders. Background can be found in
http://jakarta.apache.org/commons/logging/tech.html. If you have not
explicitly specified a custom LogFactory then it is likely that the
container has set one without your knowledge. In this case, consider
using the commons-logging-adapters.jar file or specifying the standard
LogFactory from the command line. Help can be found
@http://jakarta.apache.org/commons/logging/troubleshooting.h tml.)
at
org.apache.commons.logging.LogFactory.createFactory(LogFacto ry.java:1200)
at org.apache.commons.logging.LogFactory$2.run(LogFactory.java: 994)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.commons.logging.LogFactory.newFactory(LogFactory. java:991)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory. java:572)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java :645)
at
org.springframework.core.io.support.PathMatchingResourcePatt ernResolver. <clinit>(PathMatchingResourcePatternResolver.java:163)
... 43 more
Caused by: java.lang.ClassCastException: The application has specified
that a custom LogFactory implementation should be used but Class
'org.eclipse.hyades.logging.commons.FileLoggerFactory' cannot be
converted to 'org.apache.commons.logging.LogFactory'. The conflict is
caused by the presence of multiple LogFactory classes in incompatible
classloaders. Background can be found in
http://jakarta.apache.org/commons/logging/tech.html. If you have not
explicitly specified a custom LogFactory then it is likely that the
container has set one without your knowledge. In this case, consider
using the commons-logging-adapters.jar file or specifying the standard
LogFactory from the command line. Help can be found
@http://jakarta.apache.org/commons/logging/troubleshooting.h tml.
at
org.apache.commons.logging.LogFactory.createFactory(LogFacto ry.java:1149)
... 49 more
Previous Topic:Dependencies for reusing LogNavigator & Log View
Next Topic:Timeout while connecting (4.4.0.2 client with 4.3.1 AC)
Goto Forum:
  


Current Time: Thu Apr 25 08:02:34 GMT 2024

Powered by FUDForum. Page generated in 0.03574 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top