On 14/05/2014 09:04, Junek Leoš wrote: > Hello to all, > > I am using Tomcat 7.0.29 (from ZIP got at Tomcat Apache site), Oracle Linux > 6.4 and want to deploy "myapp" to ROOT context using virtualhost. My actual > settings is according Tomcat documentation > > http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Naming
That is the documentation for the latest release. You are using a release from almost 2 years ago. There really is no need to quote the documentation at this sort of length. We are all quite capable of following a link (if we don't already know what the docs say. <snip/> > Application "myapp" should be > > 1. Deployed with context path="" > > 2. Named myapp.war (not ROOT.war) > > 3. In unpacked WAR file META-INF/context.xml should not be edited. > > 4. Should be unpacked/deployed only once. > > To fulfill above tasks, I have > > - Defined virtualhost named "myapphostname" with appbasedir > $CATALINA_HOME/myapp_dst (dst from destination) > > - Placed myapp.war to folder $CATALINA_HOME/myapp_src (src from source) > > - Created file $CATALINA_HOME/conf/Catalina/myapphost/ROOT.xml with > context path="" docBase=$CATALINA_HOME/myapp_src/myapp.war > > - As you can see, options b) and B. were chosen. > > I expected myapp.war to be unpacked to host appBase, i.e. in > $CATALINA_HOME/myapp_dst, either to $CATALINA_HOME/myapp_dst/ROOT or > $CATALINA_HOME/myapp_dst/myapp, but it was not unpacked, however myapp is > running from WAR. As is entirely expected for the version of Tomcat you are running. > What should be changed in config files or directory structure to let > myapp.war to be unpacked? The behaviour you require is not available with the version of Tomcat you are currently running. Uninstall the out of date version you currently have and install the latest 7.0.x release. For details of when this behaviour changed, see the change log. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org