Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349613

Summary: jonas-ejb-jar.xml not updated when adding session EJB to xDoclet EJB 2.1 project
Product: [WebTools] WTP EJB Tools Reporter: Roberto Sanchez Herrera <shr31223>
Component: jst.ejbAssignee: jst.ejb <jst.ejb-inbox>
Status: NEW --- QA Contact: Kaloyan Raev <kaloyan>
Severity: normal    
Priority: P3    
Version: 3.2.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Roberto Sanchez Herrera CLA 2011-06-16 15:13:10 EDT
WTP M-3.2.5-20110616025815, xDoclet 1.2.3 and JOnAS 5.2

I'm running the smoke test for WTP J2EE 1.4, following the steps in here: 
http://wiki.eclipse.org/J2EE_Smoke_Test_%28WTP_3.2%29#J2EE_1.4, and after adding the session bean to the EJB project, I see the following error in the markers view:

The content of element type "jonas-ejb-jar" is incomplete, it must match "(jonas-session|jonas-entity|jonas-message-driven)+".

And the file jonas-ejb-jar.xml is not updated (is does not have any bean).

Note that, in order to install version 5.2 of JOnAS, I installed the OW2 JOnAS Wtp Adapter, and when I configured ejbdoclet for this adapter, if I do not include the version field, the default version in jonas-ejb-jar.xml for JOnAS is 2.5. And if I include the version, and select any version greater than 3.0, I get the following error when building the EJB project:

BUILD FAILED
C:\WTP\M-3.2.5-20110616025815\Workspaces\Smoke\.metadata\.plugins\org.eclipse.jst.j2ee.ejb.annotations.xdoclet\tempAnt.xml:69: 3.3.2 is not a legal value for this attribute