You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Sachin Chowdhary <cs...@pisoftek.com> on 2003/06/03 12:53:05 UTC
Error in depoloying Web Application via Ant on tomcat
when iam deploying my web Application with Ant.I am getting Error on path
format.Some times i am getting error like not protocol.
java.net.UnknownHostException: c
or
file:C:/.././build.xml:210: java.net.ConnectException: Connection refused:
connect
<target name="deploy" depends="war">
<deploy url="${manager.url}" path="/${app.path}"
username="${manager.username}"
password="${manager.password}"
war="file://${app.path}/${app.name}.war" />
</target>
even i have tried hardcodedly but still i am getting error.so can any one
help me where i am wrong.I have search on net but could not sorted out this
problem
so Please help me.
<target name="deploy" depends="war">
<deploy url="${manager.url}" path="/${app.path}"
username="${manager.username}"
password="${manager.password}"
war="file:/c://Simsol//SimsolWebI2V\${app.name}.war" />
</target>
Re: Error in depoloying Web Application via Ant on tomcat
Posted by Sebastien Blanc <Se...@alcatel.com>.
Hi !
java.net.UnknownHostException is a java exception "Thrown to indicate that the
IP address of a host could not be determined. " -> are u sure that you can ping
the hostname you are using the IP in manager.url field from the window you are
launching ANT ? for instance if using http://hostname/.... try ping hostname in
the window.
seb.
Sachin Chowdhary wrote:
> when iam deploying my web Application with Ant.I am getting Error on path
> format.Some times i am getting error like not protocol.
>
> java.net.UnknownHostException: c
> or
> file:C:/.././build.xml:210: java.net.ConnectException: Connection refused:
> connect
>
> <target name="deploy" depends="war">
> <deploy url="${manager.url}" path="/${app.path}"
> username="${manager.username}"
> password="${manager.password}"
> war="file://${app.path}/${app.name}.war" />
> </target>
>
> even i have tried hardcodedly but still i am getting error.so can any one
> help me where i am wrong.I have search on net but could not sorted out this
> problem
> so Please help me.
>
> <target name="deploy" depends="war">
> <deploy url="${manager.url}" path="/${app.path}"
> username="${manager.username}"
> password="${manager.password}"
> war="file:/c://Simsol//SimsolWebI2V\${app.name}.war" />
> </target>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org