Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

HTTP Status 404

 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have created sample web application using MyEclipse6.5. There is just one welcome page is there. When I am giving the Context path I am expecting the welcome page should be displayed. The entry in the web.xml file is as follows.

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>


The web.xml file is inside \WebRoot\WEB-INF\web.xml. According to this I have modified the context.xml inside Tomcat 6.0\conf as below.

<WatchedResource>/WebRoot/WEB-INF/web.xml</WatchedResource>

But still its not able to pick the web.xml and thats why showing 404 error. Any idea where else I need to change?

But when I removed the WebRoot folder and only kept the WEB-INF folder directly inside the context path then its working fine.

Is there any way to customize the directory structure of the web application and please let me know where i am going wrong.

Thanks,
Satya
 
reply
    Bookmark Topic Watch Topic
  • New Topic