This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i installed tomcat on a windows machine. when i say http://localhost:8080 i get the tomcat home page. but when i put my webapp folder called TestApp in the tomcats webapp folder and try to view a html page in it i get 404-file not found error.
Hence the importance of giving correct information to people helping you
Did you restart Tomcat ?
Joined: Jun 12, 2007
yes i have restarted the server many times.
i am using tomcat 5.0.28. the only thing i did was to run the installer. now, do i have to set any environment variables? or do i have to configure any batch file in the tomcat's bin directory like the catalina.bat file?
the folder TestApp is in webapps folder. it contains WEB-INF,which in turn contains two folders. classes and lib. there is a web.xml file inside WEB-INF folder. i have put the test html file inside TestApp folder.
If you haven't already set up a manager username and password, you can do so by editing the tomcat/conf/tomcat-users.xml file.
2.) If it hasn't been deployed or if it has but still isn't showing your page, look at the Tomcat logs under tomcat/logs. If there are a lot of log files in there or if the files are large; stop tomcat, delete all the logs, start tomcat, try hitting your page again, then check the logs if it doesn't work. You should either see some deployment errors or some runtime errors.
I'm guessing, since you said that you've put a web.xml file under WEB-INF that there could be an xml syntax error in that file that has kept your application from being deployed correctly. The logs will point this out to you.