aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes WEB.XML file not found when using Ecllipse IDE 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 file not found when using Ecllipse IDE " Watch "WEB.XML file not found when using Ecllipse IDE " New topic
Author

WEB.XML file not found when using Ecllipse IDE

Rameez Shaik
Greenhorn

Joined: Sep 25, 2010
Posts: 17
I am using Ecllipse IDE for developing web application, and i cant see the web.xml file under the web.inf folder.
In the Ecllipse IDE we have to create the web.xml file by ourself ? As i use Netbeans IDE the web.xml file is created by the IDE itself.

Please guide me, Thank you.


Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

What kind of project did you create? If you create a "Dynamic Web Project" then a web.xml is pre-built for you (at WebContent/WEB-INF/web.xml). Then as you create servlets, their info is added to the web.xml.


JBoss In Action
Rameez Shaik
Greenhorn

Joined: Sep 25, 2010
Posts: 17
Hi Peter,

i have selected the dynamic web project by unable to find the web.xml ... i am attaching the photo of the project please provide the guidance.
Thank you





Under the Web.inf there is only lib file no more web.xml file







Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

The web.xml is now optional so it is not created by default. You have to check a checkbox in the Dynamic Web Project wizard. It's on the last page (Web Module) of the wizard : "Generate web.xml deployment descriptor".

It's not a big deal, you can add it later. In the Project Explorer, right-click "Deployment Descriptor" and select "Generate deployment descriptor stub". web.xml will be generated under WEB-INF.


[My Blog]
All roads lead to JavaRanch
Rameez Shaik
Greenhorn

Joined: Sep 25, 2010
Posts: 17
Thank you for your help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WEB.XML file not found when using Ecllipse IDE