|J2EE module dependency on classes [message #203204]
||Fri, 26 October 2007 16:21
| Klaus Unger
Registered: July 2009
(I have posted this yesterday but the messege disappeared from the list |
I have a dynamic web project that uses a sesionbean of another ejb
project. However when deployed and running on glassfish i get
NoClassDefFound on the bean.
I added the ejb project to the J2EE module dependencies, however the
module is not contained in WEB-INF/lib of the deployed directory/war.
Note this is NOT related to jar libs to the bean project (which all the
other posts seem to be about) but to an actual class in the bean project.
For simplcity the linked ejb project does not contain any libs (except
P.S.: Using eclipse 3.3 with all the WST features beeing 2.0.1.v2007091
P.P.S.: I did hit apply and the dependency checkbox does persist.
|Re: J2EE module dependency on classes [message #203212 is a reply to message #203204]
||Fri, 26 October 2007 16:34
Originally posted by: kosta.bea.com|
EJB modules don't go into web app's WEB-INF/lib directory. That would
not create a correct class-loader structure.
I don't know anything about the capabilities of Glassfish, but you
probably want to create an ear project and reference the ejb and the web
project from the ear project's J2EE Module Dependencies page. You would
then publish the ear to the server, which would container your two modules.
Powered by FUDForum
. Page generated in 0.01824 seconds