开发者

How to deploy a Ldap war file in tomcat? to access site localhost:8080

I have a problem. I created a web app and packaged it with "Ldap" name. Then I put it into tomcat webapps directory. When I enter localhost:8080/Ldap in a browser, it works fine. But I want to start this web app when w开发者_开发问答riting localhost:8080. How can I do this in Tomcat. Is there any Tomcat configuration to supply this. Thanks


You need to provide a context.xml file with your webapp, containing a Context element with an empty attribute path. This is explained in the tomcat configuration reference.

<Context path="" ...>
    ...
</Context>

This context.xml file should be located under /META-INF/ in your web application (not /WEB-INF/).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜