You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lucian Comanescu <lc...@gmx.net> on 2003/12/16 12:45:48 UTC

Tomcat 5.0.16 "DeployTask" on NT4.0 behind proxy

Hi!

I am trying to deploy a webapp directly from my build.xml using the
DeployTask from catalina-ant.jar. I am using Tomcat 5.0.16 on NT4.0 and I am behind
the company firewall. I've took the sample app build.xml and changed for my
env and I've followed all the instructions, but I cannot deploy. All the other
tasks (start, stop, undeploy and reload) work just fine, but "deploy" is
throwing a BuildException:

D:\dev\marida>ant deploy
     [echo] Installing /marida on http://localhost:8080/manager
   [deploy] deploy: execute
   [deploy] Opening URL connection to file://D:/dev/marida/build
   [deploy] Connection to file://D:/dev/marida/build opened
   [deploy] contentLength=-1

BUILD FAILED
file:D:/dev/marida/build.xml:308: java.net.UnknownHostException: D
[stacktrace 1 at the end of this message]

I've changed the DeployTask adding:
  System.setProperty( "proxySet", "true" );
  System.setProperty( "http.proxyHost", "myproxy" );
  System.setProperty( "http.proxyPort", "port" ); 
  System.setProperty( "http.proxyUser", "xxx");
  System.setProperty( "http.proxyPassword", "xxx");
  System.setProperty( "http.nonProxyHosts", "localhost" ); // also tryed
without it

  System.setProperty( "ftp.proxyHost", "myproxy" );
  System.setProperty( "ftp.proxyPort", "port" );
  System.setProperty( "ftp.proxyUser", "xxx");
  System.setProperty( "ftp.proxyPassword", "xxx");
  System.setProperty( "ftp.nonProxyHosts", "localhost" ); // also tryed
without it

Now I get:
deploy:
     [echo] Installing /marida on http://localhost:8080/manager
   [deploy] proxy set
   [deploy] deploy: execute
   [deploy] Opening URL connection to file://D:/dev/marida/build
   [deploy] Connection to file://D:/dev/marida/build opened
   [deploy] contentLength=277

BUILD FAILED
file:D:/dev/marida/build.xml:308: java.io.IOException
[stacktrace 2 at end of this message]

Can anyone help me with this?
Thanks a lot in advance,
Lucian.


[stacktrace 1]
java.net.UnknownHostException: D
	at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:231)
	at org.apache.catalina.ant.DeployTask.main(DeployTask.java:285)
Caused by: java.net.UnknownHostException: D
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
	at java.net.Socket.connect(Socket.java:434)
	at java.net.Socket.connect(Socket.java:384)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
	at sun.net.NetworkClient.openServer(NetworkClient.java:118)
	at sun.net.ftp.FtpClient.openServer(FtpClient.java:423)
	at sun.net.ftp.FtpClient.<init>(FtpClient.java:687)
	at
sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:175)
	at
sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:257)
	at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:228)
	... 1 more
--- Nested Exception ---
java.net.UnknownHostException: D
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
	at java.net.Socket.connect(Socket.java:434)
	at java.net.Socket.connect(Socket.java:384)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
	at sun.net.NetworkClient.openServer(NetworkClient.java:118)
	at sun.net.ftp.FtpClient.openServer(FtpClient.java:423)
	at sun.net.ftp.FtpClient.<init>(FtpClient.java:687)
	at
sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:175)
	at
sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:257)
	at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:228)
	at org.apache.catalina.ant.DeployTask.main(DeployTask.java:285)
Exception in thread "main" 

[stacktrace 2]
ava.io.IOException: Server returned HTTP response code: 504 for URL:
ftp://D/dev/marida/build
	at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:231)
	at org.apache.catalina.ant.DeployTask.main(DeployTask.java:285)
Caused by: java.io.IOException: Server returned HTTP response code: 504 for
URL: ftp://D/dev/marida/build
	at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:715)
	at
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1178)
	at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:475)
	at java.net.URLConnection.getContentLength(URLConnection.java:370)
	at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:225)
	... 1 more
--- Nested Exception ---
java.io.IOException: Server returned HTTP response code: 504 for URL:
ftp://D/dev/marida/build
	at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:715)
	at
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1178)
	at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:475)
	at java.net.URLConnection.getContentLength(URLConnection.java:370)
	at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:225)
	at org.apache.catalina.ant.DeployTask.main(DeployTask.java:285)
Exception in thread "main" 


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