【发布时间】:2015-12-16 17:47:28
【问题描述】:
您好,我正在尝试从用户家中的 public_html 文件夹部署 .war 应用程序。
我在 server.xml 中添加了指令:
<Listener className="org.apache.catalina.startup.UserConfig"
directoryName="public_html"
userClass="org.apache.catalina.startup.PasswdUserDatabase"/>`
我试试:
http://localhost:8080/~usertest/app
然后它返回:404 error
那我试试:http://localhost:8080/~usertest/app.war
它下载 app.war 但它不为应用程序提供服务。
用户主目录包含文件夹:
public_html/app.war
那么,问题出在哪里? 我正在使用tomcat 7
【问题讨论】:
标签: java apache tomcat tomcat7