Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Shared lib issue in ADF

kiranpophale-JavaNetJul 20 2015 — edited Jul 21 2015

Hi there,

I am using jdev Studio Edition Version 12.1.3.0.0. In my application I am using bunch of Jasper reports jar and some other jar.

to reduce the size of my ear file i have kept all jar files of jasper reports and other jar out side of ear file. I have created jar of all jar file using following command,

jar cvfm TMSCommonJars.jar META-INF/MANIFEST.MF *.*

and deployed generated jar on weblogic server as shared lib.

and changed weblogic-application.xml file and add lib ref in file to refer my shared lib.

I am able to access all jar except jasper reports jar.

But When I am running reports in adf application , my application is not loading jasper reports jar class and I am getting following error,

Caused by: java.lang.ClassNotFoundException: net.sf.jasperreports.engine.xml.JRXmlLoader

  at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:357)

I can only get rid of above issue by adding jasper reports jar in WEB-INF/lib folder but this will increase the size of my ear file.

Please help me how can I place all my jasper reports jar in shared lib?

Regards,

Kiran.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 18 2015
Added on Jul 20 2015
6 comments
279 views