0
我在訪問Tomcat WebApps時遇到了一個奇怪的問題。我有幾個Web應用程序都可以在我的開發機器上正常工作。但是,當我將它們部署到測試服務器(複製到webapp文件夾)時,其中一些無法訪問,其中一個是tomcat管理器應用程序。部署Tomcat WebApp但無法訪問
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-u sers.xml包含經理webapp的正確憑據:
<tomcat-users>
<user password="xxxxx" roles="manager-script,manager-gui,admin, admin-gui" username="xxxxx"/>
</tomcat-users>
我可能會丟失什麼?
在此先感謝 延
您應該能夠訪問管理員應用程序,並使用默認的tomcat安裝提供的管理員憑證需要在tomcat-users.xml中配置。 –
如果你複製到'webapp'文件夾,爲什麼這個名字不在顯示的路徑中('E:\ daten \ web \ my.pma.de \ servlet \ manager')? – Andreas