You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by patrick van den Bemt <pa...@gmail.com> on 2005/09/08 10:30:34 UTC
Ant deployment to Tomcat issue - "UnknownHostException: C"
Hi there,
* Ant script Deployment from ws1 (with ant1.6.2) onto ws2 (with
tomcat5.0.28) returns "build.xml:150: java.net.UnknownHostException:
C".
* Web interface Deployment from ws1 onto ws2 of the same .war file
succeeds (use same http://hostname:8081/manager and username+password)
Build.xml
<taskdef name="testdeploy"
classname="org.apache.catalina.ant.DeployTask">
<classpath refid="tomcat.classpath" />
</taskdef>
<target name="deploy"
depends="dist"
description="deploy application to servlet container">
<testdeploy url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"
war="file://${build.home}/${app.name}-${app.version}.war"/>
</target>
Build.properties
manager.username = x
manager.password = y
manager.url = http://hostname:8081/managerhttp://hostname:8081/manager
and username+password)
Build.xml
<taskdef name="testdeploy"
classname="org.apache.catalina.ant.DeployTask">
<classpath refid="tomcat.classpath" />
</taskdef>
<target name="deploy"
depends="dist"
description="deploy application to servlet container">
<testdeploy url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"
war="file://${build.home}/${app.name}-${app.version}.war"/>
</target>
Build.properties
manager.username = x
manager.password = y
manager.url = http://hostname:8081/managerhttp://hostname:8081/manager
If it would have been a network or tomcat related issue it would fail
web deployment as well I guess.
Therefore I assume it is an issue with the ant configuration.
Has anyone some clue on what I might do wrong ? Some help would be
very much appreciated.
Best regards,
Patrick.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Ant deployment to Tomcat issue - "UnknownHostException: C"
Posted by Mark Thomas <ma...@apache.org>.
Usually caused by a URL of the form file://C:...
The fix is to add an extra / to your URL so it looks like:
file:///C:...
Mark
patrick van den Bemt wrote:
> Hi there,
>
> * Ant script Deployment from ws1 (with ant1.6.2) onto ws2 (with
> tomcat5.0.28) returns "build.xml:150: java.net.UnknownHostException:
> C".
>
> * Web interface Deployment from ws1 onto ws2 of the same .war file
> succeeds (use same http://hostname:8081/manager and username+password)
>
> Build.xml
>
> <taskdef name="testdeploy"
>
> classname="org.apache.catalina.ant.DeployTask">
>
> <classpath refid="tomcat.classpath" />
>
> </taskdef>
>
> <target name="deploy"
>
> depends="dist"
>
> description="deploy application to servlet container">
>
> <testdeploy url="${manager.url}"
>
> username="${manager.username}"
>
> password="${manager.password}"
>
> path="${app.path}"
>
> war="file://${build.home}/${app.name}-${app.version}.war"/>
>
> </target>
>
> Build.properties
>
> manager.username = x
>
> manager.password = y
>
> manager.url = http://hostname:8081/managerhttp://hostname:8081/manager
> and username+password)
>
> Build.xml
>
> <taskdef name="testdeploy"
>
> classname="org.apache.catalina.ant.DeployTask">
>
> <classpath refid="tomcat.classpath" />
>
> </taskdef>
>
> <target name="deploy"
>
> depends="dist"
>
> description="deploy application to servlet container">
>
> <testdeploy url="${manager.url}"
>
> username="${manager.username}"
>
> password="${manager.password}"
>
> path="${app.path}"
>
> war="file://${build.home}/${app.name}-${app.version}.war"/>
>
> </target>
>
> Build.properties
>
> manager.username = x
>
> manager.password = y
>
> manager.url = http://hostname:8081/managerhttp://hostname:8081/manager
>
> If it would have been a network or tomcat related issue it would fail
> web deployment as well I guess.
>
> Therefore I assume it is an issue with the ant configuration.
>
> Has anyone some clue on what I might do wrong ? Some help would be
> very much appreciated.
>
> Best regards,
>
> Patrick.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org