How a published JSP project is displayed locally

Source: Internet
Author: User

Published items can be placed under the webapps/in the Tomcat installation directory, but sometimes our catalog is ready to be mapped in the past.

1, go to tomcat/conf/, open server.xml

2, find

Unpackwars= "true" autodeploy= "true" >

<!--Singlesignon valve, share authentication between Web applications

Documentation at:/docs/config/valve.html--

<!--

<valve classname= "Org.apache.catalina.authenticator.SingleSignOn"/>

-

<!--Access log processes all example.

Documentation at:/docs/config/valve.html

Note:the pattern used is equivalent to using pattern= "common"-

<valve classname= "Org.apache.catalina.valves.AccessLogValve" directory= "Logs"

prefix= "Localhost_access_log" suffix= ". txt"

pattern= "%h%l%u%t &quot;%r&quot; %s%b "/>

</Host>

3, from here can see, the default directory is in WebApps, modify directory point, add Name:

<context docbase= "Your project's absolute address" path= "" reloadable= "true"/>

4, the full host

Unpackwars= "true" autodeploy= "true" >

<!--Singlesignon valve, share authentication between Web applications

Documentation at:/docs/config/valve.html--

<!--

<valve classname= "Org.apache.catalina.authenticator.SingleSignOn"/>

-

<!--Access log processes all example.

Documentation at:/docs/config/valve.html

Note:the pattern used is equivalent to using pattern= "common"-

<valve classname= "Org.apache.catalina.valves.AccessLogValve" directory= "Logs"

prefix= "Localhost_access_log" suffix= ". txt"

pattern= "%h%l%u%t &quot;%r&quot; %s%b "/>

<context docbase= "******" path= "" reloadable= "true"/>

5, restart Tomcat, first Shutup, then startup

How a published JSP project is displayed locally

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.