Apache-tomcat 7.0 not unpacking .war?

I want to deploy my application on a server, and then I can visit the application as follows:

http://10.10.10.10/index.jsp

but not

http://10.10.10.10/bar/index.jsp

so this is my host configuration in server.xml:

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

But after starting tomcat

sh $ CATALINA_HOME / bin / startup.sh

I found that tomcat is not unpacking the war file in $ CATALINA_HOME / webapps. then I try to delete all files in $ CATALINA_HOME / webapps / ROOT, but that does not matter. so for some reason, has anyone come across this question before? and how to solve the problem?

+5
source share
1 answer

Tomcat 7 does not decompress WAR files from outside the Host host database into the application database.

Tomcat 7 will launch your application from WAR.

+12
source

All Articles