Skip to main content

ejb module and jar dependencies

Please note these forums are being decommissioned and use the new and improved forums at
4 replies [Last post]
Joined: 2006-07-02

Hi , I am starting a J2EE application on GF 4 and NB 7.3.1 .
I created a J2EE app and web,ejb and common project. Created a new simple session bean in ejb project and put the remote inteface in common project .

Then tried to deply the ejb project by GF console but it fire a java.lang.ClassNotFoundException for the remote interface ,despite the class in present in the common jar in the ejb jar module .

Then why GF fire the error ? I am very hurt with GF ,there is enything that work right ! ( see other of my posts ) .


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-05-10

Tell me the content of your ear descriptor ? And please also attaching your sample here.


Joined: 2005-03-30

Looks like you deployed only the ejb jar. Deploy the ear file and make sure the common interfaces are part of ear lib directory.

Joined: 2006-07-02

Yes, I created an EE app on NB but I deployed just the ejb-jar file with common.jar (dependency file ) into it ...
Why it is not permitted to deploy ejb-jar with a library ? it is a J2EE compliance ?

Joined: 2005-04-04

See "EE.8.2.1Bundled Libraries in the platform spec.