I have downloaded a jsp/servlet project and want to run it in Tomcat. I have deployed the project in
Tomcat-> webapp
Now on hitting the url in the browser i am getting a 404 error,please tell me what are the steps to run this project?/
To deploy a web application in Tomcat without an IDE just copy the project into Tomcat's webapps folder. Then logon to Tomcat's main page with http:\\localhost:8080 with a username and password. This is what you should do normally. Please elaborate on your issue.
You are getting 404, it means your server is up and running, but your url is in correct. Please try the below url pattern :
If your war name is HelloWorldJspExample .war and jsp file name which you are trying to access is loginPage.jsp
http://localhost:8080/HelloWorldJspExample/loginPage.jsp
Refer this question execute-servlet-program
Hope this will do.
If You are copied a .war file into tomcat->webapps the please hit the
localhost:8080
if you see the home page of tamcat then goto manager and enter username and password and start your application.
if u cant see the tomcat home page please start the tomcat first goto tomcat->bin and click startup.bat file.
and for tomcat username and password please check the tomcat->conf->tomcat-users.xml file for username and password.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.