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

markorocko do-not-reply at jboss.com
Wed Aug 29 11:12:44 EDT 2012


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

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

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

--------------------------------------------------------------
Yes, thanks!

h4. How to Package EARs and WARs
When you migrate your application, you may have to change the packaging structure of your EAR or WAR due to the class loading changes.
A WAR is a single module and all classes in the WAR are loaded with the same class loader. This means classes packaged in the WEB-INF/lib are treated the same as classes in WEB-INF/classes.
An EAR is different in that it consists of multiple modules. The EAR/lib directory is a single module, and every WAR or EJB jar deployment is also a separate module. Classes will not necessarily have access to other classes in the EAR unless explicit dependencies have been defined.
For more information on EAR and WAR packaging, see "WAR Class Loading" and "EAR Class Loading" in  https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7 Class Loading in AS7.
--------------------------------------------------------------

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

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/20120829/2655bf3f/attachment.html 


More information about the jboss-dev-forums mailing list