JBoss Community

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

created by markorocko in JBoss AS 7 Development - View the full discussion

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

Start a new discussion in JBoss AS 7 Development at Community