aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Web.xml not displayed in Netbeans 6.9.1 instead sun-web.xml is being displayed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Web.xml not displayed in Netbeans 6.9.1 instead sun-web.xml is being displayed" Watch "Web.xml not displayed in Netbeans 6.9.1 instead sun-web.xml is being displayed" New topic
Author

Web.xml not displayed in Netbeans 6.9.1 instead sun-web.xml is being displayed

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1056

Web.xml not displayed in Netbeans 6.9.1 instead sun-web.xml is being displayed, Is Sun-Web.xml the same as web.xml or else I need to add web.xml to do the servlet mapping???


http://www.lifesbizzare.blogspot.com || OCJP:81%
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Which version of Java EE, or actually, which version of the Servlet spec? Java EE 6, which uses Servlet 3.0, no longer requires a web.xml.

I suspect that the sun-web.xml is specific for Glassfish.


JBoss In Action
Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

It's just because while creating a new web project you are choosing GlassFish as Server. If you want to have web.xml then choose Tomcat as your server while creating the project.
Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1056

Nitin Surana wrote:It's just because while creating a new web project you are choosing GlassFish as Server. If you want to have web.xml then choose Tomcat as your server while creating the project.


I am just clicking on New Project is there an option thats bydefault selected for server which i can change
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web.xml not displayed in Netbeans 6.9.1 instead sun-web.xml is being displayed