aspose file tools*
The moose likes Tomcat and the fly likes Web application works when put in webapps\examples directory, otherwise gives HTTP Status 404 error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Web application works when put in webapps\examples directory, otherwise gives HTTP Status 404 error" Watch "Web application works when put in webapps\examples directory, otherwise gives HTTP Status 404 error" New topic
Author

Web application works when put in webapps\examples directory, otherwise gives HTTP Status 404 error

mani manisha
Greenhorn

Joined: Apr 21, 2011
Posts: 8
Hi All,

For my web application- If i put it in the '\examples' directory (...\Tomcat 6.0\webapps\examples\MyWebAppln) it works fine for 'http://localhost:8080/examples/MyWebAppln/index.html'

But if I put it in webapps directory (...\Tomcat 6.0\webapps\MyWebAppln ) it gives a HTTP Status 404 error for 'http://localhost:8080/MyWebAppln/index.html'

Please help

Thanks in advance...
lee kolb
Greenhorn

Joined: Jun 05, 2011
Posts: 1
don't you have to update your web.xml file to reflect to move?

never mind It's not necessary.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3837

mani manisha wrote:...But if I put it in webapps directory (...\Tomcat 6.0\webapps\MyWebAppln ) it gives a HTTP Status 404 error for 'http://localhost:8080/MyWebAppln/index.html'

You have to put your own web applications in their own directories as you have done in this case. What are the contents of your application (files/directory structure etc...)?

And welcome to the Ranch, Lee Kolb!

SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web application works when put in webapps\examples directory, otherwise gives HTTP Status 404 error