You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Franz-Josef Herpers <fj...@wir-age.de> on 2003/12/12 16:22:07 UTC

deploy-task with directory-structure

Hi,

i used to work with the ant install task during development. Now i 
migrated to Tomcat 5.0.16 and from the docs and this mailing list I 
know, that the install task is deprecated in favour of the deploy task.

So i changed my install target:

<target name="install" depends="compile"
    description="Install application to servlet container">

     <target name="install"
           description="Installs the Web Application">
     <echo message="Installing ${app.name} ..."/>
     <deploy url="${manager.url}"
              username="${username}"
              password="${password}"
              path="/${app.name}"
              config="file:${basedir}/context.xml"
              war="file://${basedir}"/>
   </target>

But know I get the error message:
[deploy] BUILD FAILED: file:E:/CVS_PROJEKTE/iuclid-x/build.xml:242: 
java.net.UnknownHostException: E

The target is run from the same server that Tomcat is running on.

Any suggestions what I'm doing wrong?
Is it possible to deploy from a directory structure (not a war-file) 
like with the install task?

Regards
Franz



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: deploy-task with directory-structure

Posted by Remy Maucherat <re...@jboss.org>.
Franz-Josef Herpers wrote:
> Hi,
> 
> i used to work with the ant install task during development. Now i 
> migrated to Tomcat 5.0.16 and from the docs and this mailing list I 
> know, that the install task is deprecated in favour of the deploy task.
> 
> So i changed my install target:
> 
> <target name="install" depends="compile"
>    description="Install application to servlet container">
> 
>     <target name="install"
>           description="Installs the Web Application">
>     <echo message="Installing ${app.name} ..."/>
>     <deploy url="${manager.url}"
>              username="${username}"
>              password="${password}"
>              path="/${app.name}"
>              config="file:${basedir}/context.xml"
>              war="file://${basedir}"/>
>   </target>
> 
> But know I get the error message:
> [deploy] BUILD FAILED: file:E:/CVS_PROJEKTE/iuclid-x/build.xml:242: 
> java.net.UnknownHostException: E
> 
> The target is run from the same server that Tomcat is running on.
> 
> Any suggestions what I'm doing wrong?
> Is it possible to deploy from a directory structure (not a war-file) 
> like with the install task?

Read the docs :)
The war attribute should be a file path to a compressed WAR.

-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Rémy Maucherat
Senior Developer & Consultant
JBoss Group (Europe) SàRL
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org