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

Bug 323192

Summary: JAX-RS- Not prompted to enter servlet class when adding JAX-RS facet to a new web project
Product: [WebTools] WTP Webservices Reporter: Eric Peters <ericdp>
Component: jst.wsAssignee: Eric Peters <ericdp>
Status: RESOLVED FIXED QA Contact: Keith Chong <keith.chong.ca>
Severity: normal    
Priority: P2 Flags: ericdp: review?
Version: 3.2.1   
Target Milestone: 3.2.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch for project lead review none

Description Eric Peters CLA 2010-08-19 16:20:59 EDT
Steps to reproduce:
1. Create a new dynamic web project.
2. Click to Modify facets.
3. Add the JAX-RS facet (REST Web Services) facet.
4. Click Finish on the dynamic web project.

Problem: An error is shown in the Problems view on web.xml on the new web project "The value of the <servlet-class> element is not specified."

Expected results: I would be expected to provide a servlet class at web project create time when adding the JAX-RS facet.
Comment 1 Eric Peters CLA 2010-08-19 16:24:42 EDT
Actually the validation errors shown on the properties page and not web.xml (no library chosen & servlet name not specified).
Comment 2 Eric Peters CLA 2010-08-19 16:33:44 EDT
Created attachment 177045 [details]
patch for project lead review
Comment 3 Eric Peters CLA 2010-08-19 16:37:41 EDT
Tested thoroughly for problem outlined in defect. As well, tested 2nd time through wizard (JAX-RS library & servlet name now defined), I am able to complete new web project wizard on first page (as expected).
Comment 4 Eric Peters CLA 2010-08-20 16:12:46 EDT
Released to 3.2.2 & HEAD.
Comment 5 Eric Peters CLA 2010-08-20 16:13:07 EDT
Released to 3.2.2 & HEAD.