Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
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 Source code of 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 Source code of 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 Source code of java.net.UnknownHostException: D
  at org.apache.catalina.ant.DeployTask Source code of org.apache.catalina.ant.DeployTask(DeployTask.java:231)
  at org.apache.catalina.ant.DeployTask Source code of org.apache.catalina.ant.DeployTask(DeployTask.java:285)
Caused by: java.net.UnknownHostException Source code of java.net.UnknownHostException: D
  at java.net.PlainSocketImpl Source code of java.net.PlainSocketImpl(PlainSocketImpl.java:153)
  at java.net.Socket Source code of java.net.Socket(Socket.java:434)
  at java.net.Socket Source code of 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 Source code of org.apache.catalina.ant.DeployTask(DeployTask.java:228)
  ... 1 more
--- Nested Exception ---
java.net.UnknownHostException Source code of java.net.UnknownHostException: D
  at java.net.PlainSocketImpl Source code of java.net.PlainSocketImpl(PlainSocketImpl.java:153)
  at java.net.Socket Source code of java.net.Socket(Socket.java:434)
  at java.net.Socket Source code of 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 Source code of org.apache.catalina.ant.DeployTask(DeployTask.java:228)
  at org.apache.catalina.ant.DeployTask Source code of 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 Source code of org.apache.catalina.ant.DeployTask(DeployTask.java:231)
  at org.apache.catalina.ant.DeployTask Source code of org.apache.catalina.ant.DeployTask(DeployTask.java:285)
Caused by: java.io.IOException Source code of 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 Source code of java.net.URLConnection(URLConnection.java:475)
  at java.net.URLConnection Source code of java.net.URLConnection(URLConnection.java:370)
  at org.apache.catalina.ant.DeployTask Source code of org.apache.catalina.ant.DeployTask(DeployTask.java:225)
  ... 1 more
--- Nested Exception ---
java.io.IOException Source code of 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 Source code of java.net.URLConnection(URLConnection.java:475)
  at java.net.URLConnection Source code of java.net.URLConnection(URLConnection.java:370)
  at org.apache.catalina.ant.DeployTask Source code of org.apache.catalina.ant.DeployTask(DeployTask.java:225)
  at org.apache.catalina.ant.DeployTask Source code of 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)




©2008 junlu.com - Jax Systems, LLC, U.S.A.