wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes Referring shared Java EE library for EAR application in weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Referring shared Java EE library for EAR application in weblogic" Watch "Referring shared Java EE library for EAR application in weblogic" New topic
Author

Referring shared Java EE library for EAR application in weblogic

Chaitanya Rach
Greenhorn

Joined: Feb 07, 2013
Posts: 12
    
    1
I have created a shared library with some jar files in weblogic server, now I have an EAR application and I want to use the class files from shared library in my web applications present in EAR application. So I have created weblogic-application.xml file inside my ear-app/META-INF/ directory and gave reference to shared library using below tags:



But when I am trying to access the class files in my application, I am getting exception java.lang.ClassNotFoundException

Also it is required for me to refer to the shared library at ear level instead of declaring in weblogic.xml file of individual war files.

If I directly place the same jar files in my ear-app/APP-INF/lib directory instead of using shared library then my application is working fine without any issues.

Please help me how can I use the shared library in my ear application. I am using weblogic server 10.3.6

My shared library structure will be like this:

 
Consider Paul's rocket mass heater.
 
subject: Referring shared Java EE library for EAR application in weblogic