简体   繁体   English

部署了Tomcat WebApp但无法访问

[英]Tomcat WebApp deployed but not accessible

I have a strange problem with accessing Tomcat WebApps. 访问Tomcat WebApp时遇到一个奇怪的问题。 I have several WebApplications all working fine on my development machine. 我有几个Web应用程序都可以在我的开发机器上正常工作。 But when I deploy them to the test server (copying to webapp folder) some of them can't be accessed, one of them being the tomcat manager app. 但是,当我将它们部署到测试服务器(复制到webapp文件夹)时,其中一些无法访问,其中之一就是tomcat Manager应用程序。

Edit1: The tomcat webapp folder is not the default, but (from server.xml): Edit1:tomcat Webapp文件夹不是默认文件夹,但是(来自server.xml):

<AutoWebApp dir="E:/daten/web/my.pma.de/servlet" host="DEFAULT" />

The tomcat log says 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

But when I try to access the manager app (which again is working fine on my development machine) I always get a 404 error: 但是,当我尝试访问管理器应用程序(在我的开发机上再次运行正常)时,总是会收到404错误:

The requested URL /manager was not found on this server.

tomcat-users.xml contains correct credentials for the manager webapp: tomcat-users.xml包含管理器Webapp的正确凭据:

<tomcat-users>
<user password="xxxxx" roles="manager-script,manager-gui,admin, admin-gui" username="xxxxx"/>
</tomcat-users>

What could I be missing? 我可能会缺少什么?

Thanks in advance Jens 在此先感谢Jens

It turned out that on the test server (contrary to my development machine) the Tomcat server was running "behind" a mod-jk in Apachte httpd. 事实证明,在测试服务器上(与我的开发计算机相反),Tomcat服务器在Apachte httpd中的mod-jk后面“运行”。 So basically what was lacking was mounting the webapps with "JkMount". 因此,基本上缺少的是使用“ JkMount”挂载Web应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM