0

I am getting following error, when I deploy ear file in to web logic. I have added slf4 jar in to my war. java.lang.classNotFoundException:org.slf4.LoggFactory

I added jar file to lib folder in web logic too but still not able to solve.

2 Answers2

0

You may find some help on this similar thread, it mentions adding a jar to the classpath.

Community
  • 1
  • 1
Garreth
  • 1,057
  • 2
  • 9
  • 24
0

Sometimes your application jars will conflict with the ones provided by WebLogic. I've seen this happen frequently with slf4j. Try adding the following to the weblogic.xml file:

<wls:container-descriptor>
    <wls:prefer-application-packages>
    <wls:package-name>org.slf4j</wls:package-name>
    </wls:prefer-application-packages>
</wls:container-descriptor>
Brian Ochs
  • 1,099
  • 1
  • 10
  • 21