running and deploying servlet with eclipse and tomcat 7

前端 未结 2 1166
春和景丽
春和景丽 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/<Project_Name>/index.html
    
    http://localhost:8080/<Project_Name>/servlet_name
    
    0 讨论(0)
  • 2021-01-24 00:44

    Open the properties page of your dynamic web project, click on "web project settings" and use the context root paramter as the root path for your URL.

    0 讨论(0)
提交回复
热议问题