IntelliJ Java IDE
The moose likes BEA/Weblogic and the fly likes 'weblogic.logging.commons.LogFactoryImpl' cannot be converted to 'org.apache.commons.logging.LogFact Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark " Watch " New topic
Author

'weblogic.logging.commons.LogFactoryImpl' cannot be converted to 'org.apache.commons.logging.LogFact

subbarao kollipara
Greenhorn

Joined: Oct 25, 2011
Posts: 1
Hi

I am calling axis2 webservice from the weblogic portal, after including the code related to axis2 client, i have the following exception.

The application has specified that a custom LogFactory implementation should be used but Class 'weblogic.logging.commons.LogFactoryImpl' 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://commons.apache.org/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://commons.apache.org/logging/troubleshooting.html.

I added following property in the weblogic.xml file
<wls:container-descriptor>
<wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
</wls:container-descriptor>

and i also tried by adding the commons-logging.jar and wlcommons-logging.jar file in WEB-INF\lib folder of the application
as well as into they domain\lib folder. Still i am facing the issues.

Please Help me to resolve this issue.
 
 
subject: 'weblogic.logging.commons.LogFactoryImpl' cannot be converted to 'org.apache.commons.logging.LogFact
 
Threads others viewed
WebLogic 9.2 clustering problem
Tomcat 6.0.35 hangs during startup
apache logging in websphere...
The jar synchronization issue seems to be out of hand.
OpenSAML runtime exception java.lang.NoClassDefFoundError: org/apache/xml/security/Init
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture