A solution might be to add your jar file directly into to your ear. Then each module (EJB,WEB,...) using this library must have its classpath modified to reference this library. This can be done in the MANIFEST file of each module.
Example of configuration: bertou$ jar xvf MyApp.ear created: META-INF/ extracted: META-INF/MANIFEST.MF extracted: META-INF/application.xml created: lib/ extracted: lib/MyLib.jar extracted: MyEJB.jar bertou$ jar xvf lib/MyEJB.jar created: META-INF/ extracted: META-INF/MANIFEST.MF extracted: META-INF/ejb-jar.xml extracted: META-INF/jboss.xml created: mypkg/ extracted: mypkg/myhome.class extracted: mypkg/mybean.class extracted: mypkg/my.class bertou$ cat META-INF/MANIFEST.MF Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.2 Created-By: 1.4.2_04-b04 (Sun Microsystems Inc.) Class-Path: ./lib/MyLib.jar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917377#3917377 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917377 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
