tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve" <>
Subject WAR Deployment on virtual hosts, not under webapps
Date Sun, 10 Jun 2007 21:01:05 GMT
I am tryimg to get autodeploymenf of WAR files working for virtual hosts located outside the
standard Tomcat directory structure.

I am using Tomcat 6.0.13 and running behind Apache 2.2 using mod-rewrite.  This is enabling
both static and servlet content to be co-located under the same directory structure for the
given virtual host.  No problems encountered there.

However, when I try an drop a WAR file into the appbase for a virtual host, nothing appears
to happen.  Even though I have got <unpackWARs> and <autoDeploy> both set as true.

If I drop the same WAR file into $TOMCAT_BASE/webapps, the WAR file is expanded after a few
seconds and the application directory is unpacked and available for use.  Deleting the WAR
file also results in successful undeployment.

Looking into the Tomcat log file, I get two error messages.

  INFO: Deploying web application archive myWarFile.war
  Jun 10, 2007 8:37:44 PM org.apache.catalina.startup.ContextConfig init
  SEVERE: Exception fixing docBase: {0} /var/www/vhosts/host_appBase/myWarFile/META-INF/MANIFEST.MF
(No such file or directory)
  at Method)
  at org.apache.catalina.startup.ExpandWar.expand(
  at org.apache.catalina.startup.ExpandWar.expand(
  at org.apache.catalina.startup.ContextConfig.fixDocBase(
  at org.apache.catalina.startup.ContextConfig.init(
  at org.apache.catalina.startup.ContextConfig.lifecycleEvent(
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
  at org.apache.catalina.core.StandardContext.init(
  at org.apache.catalina.core.StandardContext.start(
  at org.apache.catalina.core.ContainerBase.addChildInternal(
  at org.apache.catalina.core.ContainerBase.addChild(
  at org.apache.catalina.core.StandardHost.addChild(
  at org.apache.catalina.startup.HostConfig.deployWAR(
  at org.apache.catalina.startup.HostConfig.deployWARs(
  at org.apache.catalina.startup.HostConfig.deployApps(
  at org.apache.catalina.startup.HostConfig.check(
  at org.apache.catalina.startup.HostConfig.lifecycleEvent(
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
  at org.apache.catalina.core.ContainerBase.backgroundProcess(
  at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(
  at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(
  at org.apache.catalina.core.ContainerBase$

Any suggesions or advice would be appreciated.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message