访问Tomcat WebApps时遇到一个奇怪的问题。我有几个WebApplications在我的开发机器上工作正常。但是,当我将它们部署到测试服务器(复制到webapp文件夹)时,其中一些无法访问,其中一个是tomcat管理器应用程序。
Edit1:tomcat webapp文件夹不是默认文件夹,但是(来自server.xml):
<AutoWebApp dir="E:/daten/web/my.pma.de/servlet" host="DEFAULT" />
tomcat日志说
INFORMATION: Deploying web application directory E:\daten\web\my.pma.de\servlet\manager
Jun 26, 2016 5:02:20 PM org.apache.catalina.startup.TldConfig execute
INFORMATION: 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.
Jun 26, 2016 5:02:20 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deployment of web application directory E:\daten\web\my.pma.de\servlet\manager has finished in 109 ms
但是当我尝试访问管理器应用程序(在我的开发机器上再次正常工作)时,我总是收到404错误:
The requested URL /manager was not found on this server.
tomcat-users.xml包含管理器webapp的正确凭据:
<tomcat-users>
<user password="xxxxx" roles="manager-script,manager-gui,admin, admin-gui" username="xxxxx"/>
</tomcat-users>
我能错过什么?
提前致谢 延
答案 0 :(得分:0)
事实证明,在测试服务器上(与我的开发机器相反),Tomcat服务器正在运行&#34;后面&#34;阿帕奇特的一个mod-jk。所以基本上缺少的是将webapps与#34; JkMount&#34;。