Java – Apache Tomcat 7.0 is not decompressed war?

I want to deploy my application to the server, and then I can access the application like this:

http://10.10.10.10/index.jsp

But not

http://10.10.10.10/bar/index.jsp

So this is where I am Host configuration in XML:

<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
        <Context docBase="/home/foo/bar.war" reloadable="false" path=""/>
   </Host>

But after I started tomcat

I found that Tomcat did not unzip $Catalina_ War file in home / webapps Then I tried to delete $Catalina_ All files in home / webapps / root, but it doesn't matter So has anyone come to this question? And how to solve the problem?

Solution

Tomcat 7 will not decompress the war file outside the host's appbase into the appbase

Tomcat 7 will run your application from war

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>