[jboss-dev-forums] [JBoss AS 7 Development] - How to make libs.jar accessible to both EJBs and WebApp?

markorocko do-not-reply at jboss.com
Tue Aug 28 14:28:29 EDT 2012


markorocko [https://community.jboss.org/people/markorocko] created the discussion

"How to make libs.jar accessible to both EJBs and WebApp?"

To view the discussion, visit: https://community.jboss.org/message/756553#756553

--------------------------------------------------------------
Anyone know how to resolve this?  FYI- Running AS7
I have
EAR----------
     app.war
     libs.jar
     ejb1.jar
     ejb2.jar
EAR----------


Now inside my app.war
WAR---------
     WEB-INF
          classes
          lib
WAR---------

Problem- classes inside the app.war cannot see my libs.jar.
Poor workaround - An easy way to fix this is to just redundantly add libs.jar to the lib directory but then it's redundantly in two places(EAR and WAR).

Is there a more elegant way to permit the class files inside the war to see the libs.jar?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/756553#756553]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120828/632aebf4/attachment.html 


More information about the jboss-dev-forums mailing list