Skip to main content

ejb module and jar dependencies

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
4 replies [Last post]
kronos72it
Offline
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 ) .

thanks

Reply viewing options

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

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

Tang

ss141213
Offline
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.

kronos72it
Offline
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 ?

mvatkina
Offline
Joined: 2005-04-04

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