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.
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.
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.