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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to