Weblogic 10.3.5 Overriding Spring Version

后端 未结 3 1340
感动是毒
感动是毒 2020-11-30 11:57

I am developing a web application using Oracle\'s OEPE distribution, including Weblogic server 10.3.5. WLS includes its own version of Spring, which appears to be 2.5.6.SEC0

3条回答
  •  北海茫月
    2020-11-30 12:22

    OPTION1: Deploy your Spring 3.x app to a wls server in a domain that does not have JRF installed. That works for me.

    OPTION2: use prefer-web-inf-classes in weblogic.xml and deploy as a war. This worked for me with wls 10.3.6, JRF domain, Spring 3.2.2. I couldn't get prefer-application-packages to work, but prefer-web-inf-classes did.

    NOTES: With a domain that does have JRF installed, I've tried both the war/weblogic.xml/prefer-application-packages and ear/weblogic-application.xml/prefer-application-packages approaches and neither seems effective. I have a test jsp that outputs org.springframework.core.SpringVersion.getVersion() and it persists in reporting 2.5.6.SEC01 despite my efforts (this is the version of Spring bundled in the oracle_common/modules folder).

    Deploy the same app in a non-JRF domain though, and org.springframework.core.SpringVersion.getVersion() will report whatever version of spring you bundled with your app.

提交回复
热议问题