Referring shared Java EE library for EAR application in weblogic -
i have created shared library jar files in weblogic server, have ear application , want use class files shared library in web applications present in ear application. have created weblogic-application.xml
file inside ear-app/meta-inf/
directory , gave reference shared library using below tags:
<library-ref> <library-name>ebs_endeca_artifacts</library-name> </library-ref>
but when trying access class files in application, getting exception java.lang.classnotfoundexception
also required me refer shared library @ ear level instead of declaring in weblogic.xml
file of individual war files.
if directly place same jar files in ear-app/app-inf/lib
directory instead of using shared library application working fine without issues.
please me how can use shared library in ear application. using weblogic server 10.3.6
my shared library structure this:
shared-web-app/web-inf/web.xml shared-web-app/web-inf/lib/*.jar
you need jars shared library in classpath, because before deploy ear
, application needs built. jdeveloper wouldn't know classes stored, need @ compile-time
.
when preparing application deployment, can create filters files can added within war
/ear
/<whatever>
. go application properties
-> deployment
, select deployment profile. click on edit
button , screen prompted, can filter files/libraries can included when application built.
if don't include shared library in archive , have fragment weblogic-application.xml
you've posted, weblogic server use classes shared library.
hope helps. ask don't understand comment. :)
Comments
Post a Comment