Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » J2EE module dependency on classes
J2EE module dependency on classes [message #203204] Fri, 26 October 2007 20:21 Go to next message
Klaus Unger is currently offline Klaus UngerFriend
Messages: 11
Registered: July 2009
Junior Member
(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

Any ideas?

Best Regards

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 20:34 Go to previous message
Eclipse UserFriend
Originally posted by:

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.

- Konstantin
Previous Topic:Windows, Tomcat, classpath debugging
Next Topic:Opening XML Schema file in my view
Goto Forum:

Current Time: Tue Aug 16 04:33:27 GMT 2022

Powered by FUDForum. Page generated in 0.02035 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top