aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Unable to find web.xml in netbeans 7.0.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Unable to find web.xml in netbeans 7.0.1 " Watch "Unable to find web.xml in netbeans 7.0.1 " New topic
Author

Unable to find web.xml in netbeans 7.0.1

Saumyaraj Zala
Ranch Hand

Joined: Aug 06, 2012
Posts: 56

I want to upload a file to a server, for which I am writing a servlet program.The location of the directory where the document would be uploaded should be fetched from a paramater in web.xml. I have not use web.xml before and only know that it makes entries for each servlet. I am not able to see this file in my web application project that i am making in netbeans. Please help me with this.
Thank you.


Why do we fall? So that we can learn to pick ourselves up.
J. Kevin Robbins
Bartender

Joined: Dec 16, 2010
Posts: 1066
    
  13

It's located in the WEB-INF folder under the "Web Pages" level. If you don't have that folder, then you picked the wrong project type when you created the project. Make sure you choose New Project - Java Web - Web Application.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
Saumyaraj Zala
Ranch Hand

Joined: Aug 06, 2012
Posts: 56

I am using the right project but i think my project directly makes an entry for each new servlet in deloyment descripter so i havnt opened web.xml manually but now i need it but cannot ind it in WEB-INF.
Pallavi Joshi
Greenhorn

Joined: Oct 20, 2010
Posts: 14
Which server you are using?

Regards,
Pallavi
Saumyaraj Zala
Ranch Hand

Joined: Aug 06, 2012
Posts: 56

Apache Tomcat 7.0.14.0
Pallavi Joshi
Greenhorn

Joined: Oct 20, 2010
Posts: 14
Is it because web.xml is optional in Servlet 3.0? Maybe you haven't added anything to your project that would require one yet.
Pallavi Joshi
Greenhorn

Joined: Oct 20, 2010
Posts: 14
You can refer to Netbeans forum "Web.XML not generated" - http://forums.netbeans.org/topic37738.html.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to find web.xml in netbeans 7.0.1