Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
dstahl
Post subject: howto includ MANIFEST in EJB-jar file?  PostPosted: Jan 23, 2006 - 05:14 PM
Registered Member
Registered Member


Joined: Jan 28, 2005
Posts: 2

Hi,

I'm struggling while trying to deploy a EJB inside a EAR.

I do get NoClassDefFoundException. This is because of a missing MANIFEST.MF file in the ejb-jar. When I manually add the manifest with the class path, everything is fine. But for the automated EAR deployment using MyEclipseIde the manifest file is missing.

What properties have to be set in order to get the manifest into the deployable?

many thanks in advance,
Dirk
 
 View user's profile Send private message  
Reply with quote Back to top
support-greg
Post subject:   PostPosted: Jan 24, 2006 - 12:35 AM
Moderator
Moderator


Joined: Mar 31, 2004
Posts: 1615

Do you have a MANIFEST.MF file in your src/META-INF directory? That should be packaged in the ejb jar in the META-INF directory inside your ejb jar.

_________________
Greg
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
dstahl
Post subject:   PostPosted: Jan 31, 2006 - 01:30 PM
Registered Member
Registered Member


Joined: Jan 28, 2005
Posts: 2

greg,

yes I do have it in the src/META-INF directory ...it is just beside the ejb-jar.xml file, which is copied...but not the MANIFEST.MF :(

any idea? thanks, Dirk
 
 View user's profile Send private message  
Reply with quote Back to top
support-greg
Post subject:   PostPosted: Jan 31, 2006 - 06:10 PM
Moderator
Moderator


Joined: Mar 31, 2004
Posts: 1615

Can you post your configuration summary available from the menu: MyEclipse > About MyEclipse > Configuration Summary....

Also, if you are trying to and any third party libraries in your EJB and have them be on the classpath in your EAR, take a look at Section 9 of the Deployment Quickstart. It describes how to generate a MANIFEST.MF files in your EAR and EJB project that will put all of your jars in your EJB project on the classpath during deployment.
http://www.myeclipseide.com/images/tutorials/quickstarts/earprojects/

_________________
Greg
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits