ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject RE: Deploying EJB's with Ant
Date Tue, 22 Aug 2000 16:10:35 GMT
Derek,

The 1.1 release of ant has a problem in its detection of the Win2K platform.
This has been fixed in CVS. You may want to try the latest nightly build.

Conor


> -----Original Message-----
> From: quikdraw7@usa.net [mailto:quikdraw7@usa.net]
> Sent: Wednesday, 23 August 2000 2:01
> To: ant-user@jakarta.apache.org
> Subject: Deploying EJB's with Ant
>
>
> I appologize if this is available somewhere, but I was not
> able to find and Ant message archives and I didn't find the
> answer in the docs or the FAQ.
>
> I would like to deploy EJB's using Ant. I have Ant running
> with our source in a WinNT/2K environment. We're using Sun's
> J2EE server and moving toward Web Logic's. I would like to
> replace the dep.bat file we use to deploy a bean with an Ant
> 'deploy' target.
>
> According the the docs, I should be able to use the built in
> 'exec' task, but using the following task taken directly from
> the first line of the dep.bat file throws the exception below:
>
> In my build.xml file:
>    <target name="deploy" depends="tell" if="src.root">
>       <exec dir="${basedir}"
>             command="${j2ee.home}/bin/deploytool -listApps ${src.host}"
>             output="dir.txt" />
>    </target>
>
> Throw:
> deploy:
>
> BUILD FAILED
>
> build.xml:41: Error exec: D:/j2sdkee1.2.1/bin/deploytool -listApps dserver
> java.io.IOException: CreateProcess:
> D:/j2sdkee1.2.1/bin/deploytool -listApps
> dse
> rver error=2
>         at java.lang.Win32Process.create(Native Method)
>         at java.lang.Win32Process.<init>(Win32Process.java:66)
>         at java.lang.Runtime.execInternal(Native Method)
>         at java.lang.Runtime.exec(Runtime.java:551)
>         at java.lang.Runtime.exec(Runtime.java:418)
>         at java.lang.Runtime.exec(Runtime.java:361)
>         at java.lang.Runtime.exec(Runtime.java:325)
>         at org.apache.tools.ant.taskdefs.Exec.run(Exec.java:124)
>         at org.apache.tools.ant.taskdefs.Exec.execute(Exec.java:77)
>         at org.apache.tools.ant.Target.execute(Target.java:132)
>         at org.apache.tools.ant.Project.runTarget(Project.java:717)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:448)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:422)
>         at org.apache.tools.ant.Main.runBuild(Main.java:279)
>         at org.apache.tools.ant.Main.main(Main.java:107)
>
> When I cut the executed command from the exception text and
> manually try it at the command prompt, it works.
>
> Any help with this would be greatly appreciated.
>
> Thanks, Derek
> quikdraw@metronet.com
>
> ============================================================
> quikdraw7@usa.net
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.amexmail.com/?A=1
>


Mime
View raw message