我想检查我的应用程序是否使用 Apache Tomcat 10.0.12 运行。它适用于 Apache Tomcat 9.0.54 就好了。
在管理器中,应用程序被标记为正在运行。日志文件还说应用程序已部署。没有错误。
29-Oct-2021 16:53:38.111 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploye Web-Applikations-Verzeichnis [...\Tomcat10\webapps\ROOT]
29-Oct-2021 16:53:41.639 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
29-Oct-2021 16:53:41.653 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [...\Tomcat10\webapps\ROOT] has finished in [3.541] ms
在浏览器中打开我的应用程序时,我得到了这个:
HTTP Status 404 – nicht gefunden
Type Status Report
Message The requested resource [/] is not available
Beschreibung The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/10.0.12
如何检查问题所在?我尝试使用 ROOT 以外的其他上下文部署我的应用程序,但这并没有改变任何内容。同样打开 index.html 并没有改变任何东西。