Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Eclipse 中做了一个项目。它在本地 tomcat 服务器上运行。但是当我在外部 tomcat 服务器 webapps 目录中部署这个 war 文件时。它部署正确,但在浏览器上运行时,找不到页面。但是我检查了那里存在目录和页面,但是tomcat说找不到页面。然后我在项目目录中创建了一个demo.txt文件,但tomcat也找不到它。现在,我在 tomcat Webapps 中创建了一个目录。找到了,但找不到我的项目目录,那里存在。我现在该怎么办?
检查端口号。如果不是80,那么试试8080。
web.xml 或库中可能有问题。
您可以检查 tomcat Manager 上下文是否为假(如果那么您将只收到 404 错误)。
您可以检查 tomcat 日志文件以获取确切的错误。