  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Tomcat 5.0.16 "DeployTask " on NT4.0 behind proxy | Tomcat 5.0.16 "DeployTask " on NT4.0 behind proxy 2003-12-16 - By Lucian Comanescu
Back 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 (DeployTask.java:231) at org.apache.catalina.ant.DeployTask (DeployTask.java:285) Caused by: java.net.UnknownHostException : D at java.net.PlainSocketImpl (PlainSocketImpl.java:153) at java.net.Socket (Socket.java:434) at java.net.Socket (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 (DeployTask.java:228) ... 1 more --- Nested Exception --- java.net.UnknownHostException : D at java.net.PlainSocketImpl (PlainSocketImpl.java:153) at java.net.Socket (Socket.java:434) at java.net.Socket (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 (DeployTask.java:228) at org.apache.catalina.ant.DeployTask (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 (DeployTask.java:231) at org.apache.catalina.ant.DeployTask (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 (URLConnection.java:475) at java.net.URLConnection (URLConnection.java:370) at org.apache.catalina.ant.DeployTask (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 (URLConnection.java:475) at java.net.URLConnection (URLConnection.java:370) at org.apache.catalina.ant.DeployTask (DeployTask.java:225) at org.apache.catalina.ant.DeployTask (DeployTask.java:285) Exception in thread "main"
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|
 |