Weblogic EAR Classloading

I am deploying an EAR to a WebLogic node with many banks defined in the bootstrap path class (startWeblogicServer.bat). The problem is that my ear and bootstrap contain different versions of the same cans, not only specific, but certain banks contain extracted third-party libraries, which also differ in the version from WebLogic bootstraps that cause all kinds of errors in the classpath.

I know that you can set your preferred jars in the EAR xml application, but it can be very tedious for a jar solution that includes extracted third-party libraries in terms of understanding all the dependencies.

Is there the right approach I need to take here? I think about it wrong? Any help would be greatly appreciated!

So far, the preferred-web-inf classes have been recommended, but do not work, because I do not deploy WAR, I also prefer package applications - this is what we are using now, but still has the problem described above ... Anymore advice there? Thanks!

+3
source share
1 answer

I think you should remove JARs from the server boot area and allow each domain to load JARs from its own separate EAR using the domain level class loader.

You already know that this is true, because the approach you take gives you problems.

- , JAR . , . JAR , , WebLogic JAR , .

JAR , EAR. EAR, .

:

.

< prefer-web-inf-classes > .

. .

+4

Source: https://habr.com/ru/post/1715953/


All Articles