You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Vincent Massol <vm...@octo.com> on 2001/11/01 00:14:29 UTC

Re: Ant fails on Weblogic 6.0 shutdown

Jef,

This looks to me to be an Ant issue. Try using <arg line="-xxx yyy"/>
instead of <arg value="-xxx yyy"/>. If you want to check what Ant executes,
run it in debug mode (-debug). I'm quite confident it is a problem with
quotes or something like this.

-Vincent

----- Original Message -----
From: "Jef Cumps" <je...@hotmail.com>
To: <ca...@jakarta.apache.org>
Sent: Monday, October 29, 2001 2:44 PM
Subject: Ant fails on Weblogic 6.0 shutdown


> Hi all,
>
> I'm trying to use Cactus together with Ant 1.4.1 to test servlets/JSP's
etc
> on Weblogic Server 6.0. I've got the server started and my tests running,
> but cannot stop the server from within my Ant script. This is the target
I'm
> using:
>
> <target name="stop_weblogic_60">
>      <java classname="weblogic.Admin" fork="yes"
dir="${weblogic.home.60}">
>           <arg value="-url t3://localhost:7001/test/test"/>
>           <arg value="-username system"/>
>           <arg value="-password pwd"/>
>           <arg value="SHUTDOWN"/>
>           <arg value="1"/>
>           <classpath>
>                <pathelement
> location="${weblogic.home.60}/lib/weblogic.jar"/>
>           </classpath>
>   </java>
> </target>
>
> and this is the output:
>
> stop_weblogic_60:
>      [java]
>      [java] Usage: weblogic.Admin [-url url] [-username username]
[-password
> password] <COMMAND> <ARGUMENTS>
>      [java] java.lang.IllegalArgumentException: Illegal command line
> argument: "-url t3://localhost:7001/test/test"  at position [1]
>      [java]        Where Commands and parameters are:
>      [java]     HELP [<COMMAND
>      ...
>
>
> Can anyone help me with this one?? I'm sure the command and the arguments
> are ok because manually invoking :
>
>                 java weblogic.Admin -url
> t3://localhost:7001/test/test -username system -password pwd SHUTDOWN 1
>
> from an other command prompt stops the server without any problems.
>
> Thanx, Jef
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>