Are Guava-11.0.2.jar conflicting with com.google.common_1.0.0.0_0-6.jar?

后端 未结 3 563
[愿得一人]
[愿得一人] 2021-01-21 06:55

I have a problem to deploy an application on weblogic server, after a discussion here on stackoverflow

i realized that the problem is that weblogic 12c is using a lib

相关标签:
3条回答
  • 2021-01-21 07:13

    It is a well known problem Weblogic. It solution is to use a setting file weblogic.xml, in which it is possible to specify the boot sequence libraries by classloader.

    0 讨论(0)
  • 2021-01-21 07:16

    The problem is easily resolved without such hacks as the one suggested by @meilechh. You can add prefer-application-packages to your weblogic.xml or weblogic-application.xml.

    Look at http://docs.oracle.com/middleware/1212/wls/WLPRG/classloading.htm#WLPRG315 for the reference.

    0 讨论(0)
  • 2021-01-21 07:17

    I came across the same problem, what I did was, I replaced the com.google.common_1.0.0.0_0-6.jar file from weblogic-home/modules with the latest Guava that's currently guava-13.0.1.jar, but then i saw that weblogic is looking for a file with the name com.google.common.... so I just rename the Guava file to com.google.common_1.0.0.0_0-6.jar, and it worked for me.

    Hope it will work for you as well!

    0 讨论(0)
提交回复
热议问题