How to make tomcat explode war files

Regarding tomcat and extracted files, I configured server.xml on auto deploy : true. The name of my war file is ROOT.war, since I don't want / subdir after the .com site.

But I do not see the .css.js.java or .class files in / webappts / ROOT or anywhere. (I have them in ROOT.war, and the site is working fine, reflecting them)

I only see .class and .java in

/var/cache/tomcat7/Catalina/localhost/_/org/apache/jsp/

/var/cache/tomcat7/Catalina/localhost/_/WEB-INF/classes/

how to configure tomcat to explode a .war file?

Update I

I Host name="localhost" appBase="/home/ubuntu/www" unpackWARs="true" autoDeploy="true" and I still do not see the unpacking. My ROOT.war is located at / home / ubuntu / www

Update II

One problem that I see is this:

Feb 27, 2013 6:29:02 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /home/ubuntu/www/ROOT.war
Feb 27, 2013 6:29:02 PM org.apache.catalina.startup.ContextConfig init
SEVERE: Exception fixing docBase for context []
java.io.IOException: Unable to create the directory [/home/ubuntu/www/ROOT]
        at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:100)
        at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:720)
        at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:843)

If I manually do a ROOT in / home / ubuntu / www / using chmod 777 . it gives 404 error (does not exist)

+5
2

//ubuntu/www Tomcat. tomcat6/tomcat7 ( , TC ). :

drwxrwxr-x  4 tomcat7 tomcat7 4096 Feb 27 14:08 webapps

chmod 777, , . "chown tomcat7: tomcat7" .

+10

, unpackWARs==true.

true, , -, - (WAR) , false - WAR . WAR HostBase Host .

: http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Standard_Implementation

+1

All Articles