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/
).
精彩评论