Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

subbarao kollipara
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 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 @

I added following property in the weblogic.xml file

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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic