File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WEB.XML file not found when using Ecllipse IDE

 
Rameez Shaik
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rameez Shaik
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rameez Shaik
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your help
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic