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

Bug 317436

Summary: Session Bean wizard allows creation of EJBs in Web 2.5 projects.
Product: [WebTools] WTP EJB Tools Reporter: Kaloyan Raev <kaloyan>
Component: jst.ejbAssignee: Carl Anderson <ccc>
Status: RESOLVED FIXED QA Contact: Kaloyan Raev <kaloyan>
Severity: major    
Priority: P2 CC: ccc
Version: 3.2Flags: kaloyan: review+
Target Milestone: 3.2.1   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Limit Web projects to those with a Web 3.0 or greater facet. none

Description Kaloyan Raev CLA 2010-06-21 09:06:15 EDT
Steps to reproduce:
1. Start in empty workspace. 
2. Create new Web 2.5 project. 
3. Invoke the Session Bean wizard. 
4. The project field displays the Web 2.5 project selected. 

Although it make sense to create new EJBs in Web 3.0 projects, this is not true for Web 2.5 ones. 

Same issue with the Message-Driven Bean wizard.
Comment 1 Kaloyan Raev CLA 2010-06-23 03:54:58 EDT
This regression is caused by bug 241670. There we enable creation of EJB 3.x beans for Web 2.5, Web 3.0 and Web Fragments 3.0. 

Carl, do you remember why we considered Web 2.5 as a valid destination for EJB 3.x beans? I thought EJBs in WARs is JEE 6 use case only.
Comment 2 Carl Anderson CLA 2010-06-23 09:41:53 EDT
I know that the scenario that we need to support is having a Web 2.5 web.xml in a Web 3.0 faceted project.  I can't remember why I explicitly included Web 2.5 faceted projects as a valid target... they shouldn't be.
Comment 3 Carl Anderson CLA 2010-06-23 12:00:46 EDT
Created attachment 172521 [details]
Limit Web projects to those with a Web 3.0 or greater facet.
Comment 4 Kaloyan Raev CLA 2010-06-24 05:06:29 EDT
Thanks, Carl!
I went ahead and committed the patch into HEAD. I assume you are already on vacation.