Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317436 - Session Bean wizard allows creation of EJBs in Web 2.5 projects.
Summary: Session Bean wizard allows creation of EJBs in Web 2.5 projects.
Status: RESOLVED FIXED
Alias: None
Product: WTP EJB Tools
Classification: WebTools
Component: jst.ejb (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows Vista
: P2 major (vote)
Target Milestone: 3.2.1   Edit
Assignee: Carl Anderson CLA
QA Contact: Kaloyan Raev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-21 09:06 EDT by Kaloyan Raev CLA
Modified: 2010-06-24 05:06 EDT (History)
1 user (show)

See Also:
kaloyan: review+


Attachments
Limit Web projects to those with a Web 3.0 or greater facet. (2.63 KB, patch)
2010-06-23 12:00 EDT, Carl Anderson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.