File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Where is the web.xml file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Where is the web.xml file?" Watch "Where is the web.xml file?" New topic

Where is the web.xml file?

Amy Gawlik

Joined: Mar 19, 2012
Posts: 2
Complete beginner here. I am working my way through Murach's Java Servlets and JSP 2nd edition and have run into a snag.

I am using Netbeans 7.1.1 I am on chapter 3 of the book and have created a new project file called testApp (new web application). I am confused because in the project folders I do not see the web.xml file under WEB-INF as it says I should. Is that something that changed due to the version differences in the book and what I'm using? (book is based on Netbeans 6.0). Where in the heck is the web.xml file??

Thanks for being kind with your response, as I'm sure this is a simple question.

Peter Johnson

Joined: May 14, 2008
Posts: 5852

In the newest version of Java EE, the web.xml file is optional. So apparently that book is dealing with an earlier version of Java EE. If the file is missing, you can always create it.

JBoss In Action
Amy Gawlik

Joined: Mar 19, 2012
Posts: 2
Thank you for your help!
Govinda Rajulu

Joined: Sep 03, 2012
Posts: 1
Amy Gawlik,

Hi which book you refer for working with Netbean IDE for Java and J2EE application.

Thanks & Regards,
Govindarajulu K
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Where is the web.xml file?
It's not a secret anymore!