ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Kajsa" <Kajsa.Ander...@thomson.com>
Subject difficulties with <java> task
Date Wed, 12 Nov 2003 17:34:00 GMT
Hi folks, 

I'm stumped here; I have a feeling I'm missing something that should be
simple.  What I'm trying to do is use <java> to run a soap client to help
test a web service we're working on...  I can run the client from WSAD 5 and
from the command line, but I get the following error when I try to run it
from ant (buildfile included at the bottom).  My suspicion is that there's
some environment setting that's not being propagated to the forked JVM.  

Ant version is 1.6beta2, JAVA_HOME is Sun's 1.4 JDK. My command line attempt
was also with the 1.4 JDK; WSAD is using an IBM JDK. 

Can someone give me some idea what I'm doing wrong?

[radserve2@ingenuity bin]$ ant -f test.xml
Buildfile: test.xml

exec:
     [java] - JOB AntTest: Running file
/home/radserve2/profiler/sample/depo.sample as DEP
O with IdentifyAttorneys;IdentifyJudges;IdentifyExperts
     [java] - JOB AntTest Failed
     [java] com.westgroup.bermuda.datamanager.soap.AmpexSoapException: PORT
:501 PORT not
allowed after EPSV ALL

     [java]     at
com.westgroup.bermuda.datamanager.soap.BermudaSoapClient.processFile(Be
rmudaSoapClient.java:159)
     [java]     at
com.westgroup.bermuda.datamanager.soap.BermudaSoapClient.main(BermudaSo
apClient.java:184)
     [java] Caused by: sun.net.ftp.FtpProtocolException: PORT :501 PORT not
allowed after
EPSV ALL

     [java]     at
sun.net.ftp.FtpClient.openDataConnection(FtpClient.java:381)
     [java]     at sun.net.ftp.FtpClient.get(FtpClient.java:485)
     [java]     at
com.westgroup.bermuda.util.FTPInput.ReadFile(FTPInput.java:65)
     [java]     at
com.westgroup.bermuda.datamanager.soap.BermudaSoapClient.getFileType(Be
rmudaSoapClient.java:69)
     [java]     at
com.westgroup.bermuda.datamanager.soap.BermudaSoapClient.processFile(Be
rmudaSoapClient.java:124)
     [java]     ... 1 more
     [java] sun.net.ftp.FtpProtocolException: PORT :501 PORT not allowed
after EPSV ALL

     [java]     at
sun.net.ftp.FtpClient.openDataConnection(FtpClient.java:381)
     [java]     at sun.net.ftp.FtpClient.get(FtpClient.java:485)
     [java]     at
com.westgroup.bermuda.util.FTPInput.ReadFile(FTPInput.java:65)
     [java]     at
com.westgroup.bermuda.datamanager.soap.BermudaSoapClient.getFileType(Be
rmudaSoapClient.java:69)
     [java]     at
com.westgroup.bermuda.datamanager.soap.BermudaSoapClient.processFile(Be
rmudaSoapClient.java:124)
     [java]     at
com.westgroup.bermuda.datamanager.soap.BermudaSoapClient.main(BermudaSo
apClient.java:184)


     [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 9 seconds

Buildfile (test.xml):
<?xml version="1.0"?>
<project name="profiler" default="exec">

  <property name="build.home" location=".."/>
  <property name="src" location="${build.home}/Source"/>
  <property name="lib" location="${build.home}/lib"/>
  <property name="bin" location="${build.home}/bin"/>

  <target name="exec" description="Run Bermuda">
    <path id="compile.classpath">
      <fileset dir="${lib}">
        <include name="**/*.jar"/>
      </fileset>
    </path>

    <path id="exec.classpath">
      <path refid="compile.classpath"/>
      <path location="${bin}"/>
    </path>

    <java
classname="com.westgroup.bermuda.datamanager.soap.BermudaSoapClient"
      classpathref="exec.classpath"
      fork="true"
      dir="${bin}">
      <arg value="localhost"/>
      <arg value="${userid}"/>
      <arg value="${password}"/>
      <arg value="/home/radserve2/profiler/sample/depo.sample"/>
      <arg value="/home/radserve2/profiler/output/depo.rnd.ant"/>
      <arg value="DEPO"/>
      <arg value="IdentifyAttorneys;IdentifyJudges;IdentifyExperts"/>
      <arg value="AntTest"/>
      <arg value="kajsa.anderson@thomson.com"/>
      <arg value="Profiler"/>
    </java>
  </target>
</project>

Kajsa Anderson
Thomson Legal & Regulatory
Research & Development - RAD Team


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


Mime
View raw message