Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (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
somehow...?)

Hello,

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
JRE).

Any ideas?

Best Regards
Klaus

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: 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.

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


Current Time: Thu Dec 18 22:27:47 GMT 2014

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

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