File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Referring shared Java EE library for EAR application in weblogic

 
Chaitanya Rach
Greenhorn
Posts: 12
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic