running and deploying servlet with eclipse and tomcat 7

前端 未结 2 1165
春和景丽
春和景丽 2021-01-23 23:55
  1. I created a test project based on Tomcat HelloWorld Servlet with Eclipse
  2. and tried to run it from Eclipse as is with Tomcat 7, which I have configured to run on 1
2条回答
  •  南笙
    南笙 (楼主)
    2021-01-24 00:37

    Try putting a default Index.html page in the WebContent and see if the welcome page points to it. If yes then try entering the servlet name manually and see if that works. I get the same error but doing so fixes it.

    http://localhost:8080//index.html
    
    http://localhost:8080//servlet_name
    

提交回复
热议问题