• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WEB.XML file not found when using Ecllipse IDE

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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







 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your help
 
If tomatoes are a fruit, then ketchup must be a jam. Taste this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic