This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 178073 - J2EE 1.4 deployment descriptor appears in the Java EE 5 projects
Summary: J2EE 1.4 deployment descriptor appears in the Java EE 5 projects
Status: CLOSED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0 RC0   Edit
Assignee: Neeraj Agrawal CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-19 11:15 EDT by Yavor Boyadzhiev CLA
Modified: 2007-05-03 09:32 EDT (History)
1 user (show)

See Also:


Attachments
patch (1.54 KB, patch)
2007-03-28 07:01 EDT, Kaloyan Raev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yavor Boyadzhiev CLA 2007-03-19 11:15:24 EDT
Build ID: I20070313-1051

Steps To Reproduce:
1) Create EJB 3.0. When expand the project has no “Deployment Descriptor” node
2) Create ejb-jar.xml with contents:
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
id="ejb-jar_ID" version="3.0" >

</ejb-jar>

3) Close and open the J2EE perspective. 
4) The EJB 3.0 project has Deployment Descriptor 1.4.
Comment 1 Chuck Bridgham CLA 2007-03-20 08:49:29 EDT
Neeraj- this looks like a Navigator View problem.  (I believe he means the EJB's Deployment Descriptor node shows 2.1 instead of 3.0.)
Comment 2 Kaloyan Raev CLA 2007-03-28 05:18:46 EDT
I want to generalize the bug, because it appears for all types of Java EE 5 projects. 

Steps to reproduce for EAR 5: 
1) Create EAR 5. When expand the project has no “Deployment Descriptor” node
2) Create EarContent/META-INF/application.xml file. 
3) Add this content to the xml file:

  <?xml version="1.0" encoding="UTF-8"?>
  <application version="5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd ">
  </application>

4) "Deployment Descriptor 1.4" node appears. 

Steps to reproduce for EJB 3.0: 
1) Create EJB 3.0. When expand the project has no “Deployment Descriptor” node
2) Create ejbModule/META-INF/ejb-jar.xml file. 
3) Add this content to the xml file:

  <?xml version="1.0" encoding="UTF-8"?>
  <ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://java.sun.com/xml/ns/javaee"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
	id="ejb-jar_ID" version="3.0" >
  </ejb-jar>

4) "Deployment Descriptor 2.1" node appears. 

Steps to reproduce for Web 2.5: 
1) Create Web 2.5. When expand the project has no “Deployment Descriptor” node
2) Create WebContent/WEB-INF/web.xml file. 
3) Add this content to the xml file:

  <?xml version="1.0" encoding="UTF-8"?>
  <web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <display-name>web25</display-name>
    <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
  </web-app>

4) "Deployment Descriptor 1.4" node appears. 

In all above cases, if the deployment descriptor does not appear, try close and reopen the J2EE perspective. 

We are quite deep in the problem and will have patch soon. 
Comment 3 Kaloyan Raev CLA 2007-03-28 07:01:19 EDT
Created attachment 62208 [details]
patch

The proposed patch limits the deployment descriptor tree to appear to projects with version up to J2EE 1.4 specification. 
The trigger point for the navigator content does not include any more facet versions of Java EE 5 and later. 
The idea is that at the moment WTP provides deployment descriptor tree to project up to J2EE 1.4. For Java EE 5 (and later) projects the adopter will provide their own deployment descriptor tree, it they want one.
Comment 4 Chuck Bridgham CLA 2007-04-25 17:48:12 EDT
want to drop this tonight
Comment 5 Chuck Bridgham CLA 2007-04-26 08:56:54 EDT
dropped to build
Comment 6 Kaloyan Raev CLA 2007-05-03 03:40:25 EDT
Verified with the I200705022121 I-build. 
Comment 7 Neeraj Agrawal CLA 2007-05-03 09:32:10 EDT
closing