404 error
Hi,
I installed a simple hello.html file in my tomcat55/webapps directory, and tried to access it with http://myip:9080/hello.html
I got a 404 error.
I also installed it in webapps/ROOT but wit the same results.
I cannot for the life of me seem to get anything but blank pages and 404 errors. Any help? SO frustrated...
# 1
Usually when creating a web application.The application should have a name.
Suppose your application name is MyApplication.
You have to create a folder named MyApplication and place it inside the webapps folder.
Then create a WEB-INF folder inside the MyApplication.
Then place your html files inside the the MyApplication folder.
create a web.xml file with the required fields
then try the url http:\(ip):9080\MyApplication
Now the html files should come...
Try it..
# 2
Just for the sake of completeness, when you go to:
http://localhost:9080/
or
http://<ip>:9080/
Do you get the tomcat welcome screen? If not then I suspect that port number you are using is not the correct one. Default values are either 8080 (tomcat is stand alone) or 8084 (tomcat is installed as part of netbeans).
# 3
No, actually, I do not get the welcome screen.I am certain that 9080 is the correct port, though, as I finally got a hello world servlet to work.Is my welcome screen simply not installed?