Reputation: 577
In Weblogic, I have a WAR application that needs to reference a shared library deployed as a JAR.
Is that possible?
I have tried these approaches unsuccessfully
Approach 1: Refer to the JAR in weblogic.xml:
<library-ref>
<library-name>my-shared-jar</library-name>
</library-ref>
Result: classes from the JAR are not found during deployment (java.lang.ClassNotFoundException
)
Approach 2: Refer to the JAR in weblogic-application.xml: same code, same unsuccessful result because apparently weblogic-application.xml can only be used with EARs
Is there a way to solve this?
Upvotes: 1
Views: 4493
Reputation: 577
The solution is the following workaround:
provided
Upvotes: 1