I\'m trying to work on a web application that deploys to Weblogic 10.3.5. One of the maven dependencies is Guava.
Unfortunately, upon attempting to publish the proje
guava
libraries and com.google.common
contains same classescom.google.common_1.0.0.0_0-6.jar
or com.google.common_1.1.0.0_0-6.jar
in it's classpath, in modules directory. (depending on WebLogic version, but the jar content is same, only META-INF\MANIFEST.MF is different)you need to add something like this to your weblogic.xml
or weblogic-application.xml
if you are in EAR application
<wls:container-descriptor>
<wls:prefer-application-packages>
<wls:package-name>com.google.common.*</wls:package-name>
</wls:prefer-application-packages>
</wls:container-descriptor>
Then redeploy the application.
It works for us.
Hope it helps.
For more info, see the link:
https://www.rational-pi.be/2013/03/guava-and-weblogic12c/
Go to your weblogic folder, weblogic-home >modules and if there is a com.google.common....jar file, just delete it and replace it with a guava.jar file, and you have to rename the guava file with the old com.google.common......jar name (cuz weblogic is looking for this name, but its conflicting with your guava file).
i had the same problem here