• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to find web.xml

 
Sawan Mishra
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
I'm getting 404 resource not found error while running my program.
Its unable to find servlet.

so i checked the URL in my form action and i wanted to match it with
the url maping in web.xml.

But in the web-inf there is no web.xml.

where can I get web.xml?

please hep me

thanks in advance.

 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're building a web application, you need to create one and put it under WEB-INF folder.
Sample one can be found here.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WEB-INF, not web-inf.
 
Nam Ha Minh
Ranch Hand
Posts: 509
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sawan Mishra wrote:
But in the web-inf there is no web.xml.



If you use Servlet 3.0 and annotations for URL mapping, the web.xml file can be missing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!