0

I am trying to use a new version of ehcache in my EAR file but there is an older one in the domain/lib folder of the weblogic server.

Of course it's not possible to upgrade the one in the domain/lib folder because it's used in other EAR files.

Is there a way to use the one inside my EAR file.

I tried to use :

<prefer-application-packages>

And

<prefer-application-resources>

In the weblogic-application.xml without success. It seems that the jar used is the one in the domain/lib folder. I am trying to use ehcache with spring and I am using spring within a library deployed in weblogic.

Right now we are using WEBLOGIC 10 and we will use WEBLOGIC 12 in a few weeks.

Any ideas to solve this?

1 Answer 1

1

In my case it was not working because I used Spring from a library deployed in my weblogic.

So Spring was not able to use the Ehcache JAR in my EAR because Spring was not in my EAR. I removed the use of this Spring library and included all the Spring JARs in my EAR to make it work.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.