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

Bug 108388

Summary: Error when generate web.xml
Product: [WebTools] WTP Java EE Tools Reporter: Raul Fernandez <raul.fernandez>
Component: jst.j2eeAssignee: Naci Dai <naci.dai>
Status: CLOSED WONTFIX QA Contact:
Severity: major    
Priority: P3 CC: asampaleanu, cbridgha, naci.dai
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Raul Fernandez CLA 2005-08-30 11:47:37 EDT
Sometimes when I clean the project, WTP/Xdoclet generate the web.xml with an 
error 
The error is that change the order between "servlet name" and "display name", 
into the "web.xml"
Comment 1 David Williams CLA 2005-09-24 14:23:27 EDT
Off hand, my guess is annotations code needs to manage concurrancy of 
changes to DOM better. 

Raul, can you please provide some step by step instructions for me? 
Or .. better yet, a JUnit test case?! 

Thanks, 
Comment 2 Adrian Sampaleanu CLA 2006-07-24 11:24:04 EDT
I get this problem too when web.xml is generated by XDoclet. To reproduce, just create a Dynamic Web Project. Make sure XDoclet support is enabled in preferences (I was using XDoclet 1.2.2). Create a servlet under the "Servlets" item in the deployment descriptor node (J2EE perspective), and check off "Generate an annotated servlet class". I created a servlet with a one level deep package structure. The generated web.xml will have an error due to the "display-name" element being created after the "servlet-name" element. Switching these two elements removes the error, but any action that regenerates web.xml re-creates the error.

Using Web Tools 1.5 final, Eclipse 3.2 final, Windows XP
Comment 3 David Williams CLA 2006-08-02 15:36:52 EDT
I think this might actually 
be a problem in the xdoclet component. 
Comment 4 Naci Dai CLA 2006-08-03 00:43:55 EDT
Yes, xdoclet generates the web.xml.  Have you tried xdoclet 1.2.3?  
Comment 5 David Williams CLA 2006-09-10 18:22:57 EDT
Just attemting to assign to more specific component. 
Comment 6 Chuck Bridgham CLA 2010-02-15 14:31:43 EST
No plan to fix this issue (Xdoclet issue)