tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
Subject Re: deploying war file and "Document base ... does not exist"
Date Tue, 03 Sep 2002 14:42:58 GMT

I hadn't known about the "config" attribute.  I haven't tried it yet, but I 
wonder if you can use the "config" attribute *instead* of the "war" and 
"path" attributes since the config attribute would point to a Context 
Configuration File (CCF) which would contain that information anyway?  In 
fact, if the attributes had different values than the CCF, what values 
would be used???

BTW, you say that there is no "delploy" task?  Well, there certainly 
is.  Here are all the tasks that I know of:

name="deploy"    classname="org.apache.catalina.ant.DeployTask"/>
name="install"   classname="org.apache.catalina.ant.InstallTask"/>
name="list"      classname="org.apache.catalina.ant.ListTask"/>
name="reload"    classname="org.apache.catalina.ant.ReloadTask"/>
name="remove"    classname="org.apache.catalina.ant.RemoveTask"/>
         <taskdef name="resources" 
name="roles"     classname="org.apache.catalina.ant.RolesTask"/>
name="start"     classname="org.apache.catalina.ant.StartTask"/>
name="stop"      classname="org.apache.catalina.ant.StopTask"/>
name="undeploy"  classname="org.apache.catalina.ant.UndeployTask"/>

And "deploy" is a permanent install of your app.

I'll try the "config" attribute later today.  Thanks!


At 06:07 AM 9/3/2002 +0000, Daniel Kehoe wrote:
>On Sun, 01 Sep 2002 04:09:52 -0500, "Jacob Kjome" <> said:
> > Don't put your app inside $TOMCAT_HOME/webapps and use the install
> > or deploy task to dynamically deploy your app.  This can be done through
> > the ant tasks using something like....
> > <install
> >              url="${manager.url}"
> >              username="${manager.username}"
> >              password="${manager.password}"
> >              path="${app.path}"
> >              war="file://${build.home}/WEB-INF/myapp.xml" />
> >
> > myapp.xml would have a <Context .... docBase="../"> or something like
> > that pointing to the base of the webapp.  Note that I have *not* gotten 
> this
> > to work on Windows...
> > if you get it to work on Windows, please tell me which version of
> > Tomcat you succeeded on and describe what you did to make it work.
>Here's what works for me under Windows with TC4.1.9b (in my ant
>build.xml file). I have to point the war attribute to an exploded war
>directory (not a war file) or else I can't reload. I'm happy with this
>for development purposes. For permanent deployment, they've got to copy
>the myapp.war file and myapp.xml file into the webapps directory.
>There's no "deploy" action in the Tomcat Web App Manager.
><target name="install" depends="compile"
>description="Install application to servlet container">
><!-- The myapp.xml file is where the container-managed
>         data sources are specified -->
><!-- The war attribute points to the build directory,
>         not an actual war file! -->
><install url="${manager.url}"
>         username="${manager.username}"
>         password="${manager.password}"
>                 path="${app.path}"
>                 config="file://${basedir}/myapp.xml"
>                 war="file://${build.home}"/>
><!-- You can't "reload" if you install a war file like this:
>         config="file://${dist.home}/myapp.xml"
>         war="file://${dist.home}/myapp.war"/>
>   Daniel

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