Note that there are some explanatory texts on larger screens.

plurals
  1. POReferencing Shared Java EE Libs in Weblogic from WAR inside EAR
    text
    copied!<p>We have a number of applications that need to reference to both Oracle and our own Shared Java EE Libraries on WebLogic. They are structured as folows:</p> <p>Our own shared library, "framework", is packaged as a JAR inside an EAR, along with all non-Oracle, third-party libraries (JAR:s) and deployed as a shared library in WebLogic. This is it's manifest:</p> <pre><code>Manifest-Version: 1.0 Created-By: Apache Maven 3.0.4 Built-By: lajokon Build-Jdk: 1.7.0_07 Implementation-Vendor: &lt;organization&gt; Implementation-Title: Framework Lib Implementation-Version: 15.0.2 Implementation-Vendor-Id: org Specification-Vendor: &lt;organization&gt; Specification-Title: Framework Lib Specification-Version: 15.0.2 Extension-Name: framework-lib </code></pre> <p>All JAR:s are in APP-INF/lib</p> <p>The applications are each packaged in a WAR inside its own EAR. The WAR weblogic.xml:</p> <pre><code>&lt;wls:weblogic-web-app&gt; &lt;wls:weblogic-version&gt;10.3.6&lt;/wls:weblogic-version&gt; &lt;wls:context-root&gt;app-name&lt;/wls:context-root&gt; &lt;wls:library-ref&gt; &lt;wls:library-name&gt;adf.oracle.domain.webapp&lt;/wls:library-name&gt; &lt;wls:specification-version&gt;1.0&lt;/wls:specification-version&gt; &lt;wls:exact-match&gt;false&lt;/wls:exact-match&gt; &lt;/wls:library-ref&gt; &lt;wls:library-ref&gt; &lt;wls:library-name&gt;jsf&lt;/wls:library-name&gt; &lt;wls:specification-version&gt;2.0&lt;/wls:specification-version&gt; &lt;wls:exact-match&gt;false&lt;/wls:exact-match&gt; &lt;/wls:library-ref&gt; &lt;/wls:weblogic-web-app&gt; </code></pre> <p>The EAR application.xml:</p> <pre><code>&lt;application&gt; &lt;display-name&gt;app-name&lt;/display-name&gt; &lt;module&gt; &lt;web&gt; &lt;web-uri&gt;app-name.war&lt;/web-uri&gt; &lt;context-root&gt;/app-name&lt;/context-root&gt; &lt;/web&gt; &lt;/module&gt; &lt;/application&gt; </code></pre> <p>The EAR weblogic-application.xml:</p> <pre><code>&lt;weblogic-application&gt; &lt;library-ref&gt; &lt;library-name&gt;adf.oracle.domain&lt;/library-name&gt; &lt;specification-version&gt;1.0&lt;/specification-version&gt; &lt;exact-match&gt;false&lt;/exact-match&gt; &lt;/library-ref&gt; &lt;library-ref&gt; &lt;library-name&gt;coherence&lt;/library-name&gt; &lt;specification-version&gt;3.7&lt;/specification-version&gt; &lt;exact-match&gt;false&lt;/exact-match&gt; &lt;/library-ref&gt; &lt;library-ref&gt; &lt;library-name&gt;framework-lib&lt;/library-name&gt; &lt;specification-version&gt;15.0&lt;/specification-version&gt; &lt;exact-match&gt;false&lt;/exact-match&gt; &lt;/library-ref&gt; &lt;/weblogic-application&gt; </code></pre> <p>All libraries are deployed by default or deploy correctly in WL. As does the application EAR. </p> <p>But, when I access the application i get runtime errors saying it can't load resources located in the WAR:s WEB-INF/classes dir!? </p> <p>However, I can see, from log output, that it loads resources from the Framework EAR. Why does WL not seem to care about the contents of my WAR?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload