No, unfortunately the problem still persists. I saw an earlier post with
another sample ant file to run cactus on weblogic, haven't tried that out.
For now, I'm starting weblogic in a different window manually, and running
my tests. Let me know if you find anything positive

-----Original Message-----
From: Paromita Choudhury [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 7:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Can't start weblogic 6.0 in a different thread using Ant


Hi,
  I've got the same problem. Were you able to fix
it?Appreciate any help.

Thanks.
--- Sandeep Giri <[EMAIL PROTECTED]> wrote:
> Sorry if this becomes a double post. (I sent the
> first mail before
> subscribing to the mailing list, so not sure if
> that's recieved properly)
> 
> I'm trying to run the sample test in weblogic 6.0
> (after having it run
> successfully on Tomcat). After Ant starts weblogic
> server, it just hangs
> there, i.e. it doesn't run the tests. It almost
> looks like that the weblogic
> server didn't start in a different VM, or even if it
> did, somehow it's
> blocking the Ant task "runservertests".
> 
> Here's my Ant script:
> 
> ====================
>     <!-- 
>  
>
========================================================================
>          Run Weblogic 6.0 tests
>  
>
========================================================================
>     -->
>     <target name="tests_weblogic_60"
> depends="prepare_tests_weblogic_60"
> if="weblogic.home.60">
> 
>         <!-- Start the servlet engine, wait for it
> to be started, run the
>              unit tests, stop the servlet engine,
> wait for it to be stopped.
>              The servlet engine is stopped if the
> tests fail for any reason
> -->
> 
>         <runservertests
> testURL="http://localhost:7001/test";
>             startTarget="start_weblogic_60"
>             stopTarget="stop_weblogic_60"
>             testTarget="tests"/>
> 
>     </target>
> 
>     <!-- 
>  
>
========================================================================
>          Start Weblogic 6.0
>  
>
========================================================================
>     -->
>     <target name="start_weblogic_60">
> 
>       <!--wlrun classpath="${weblogic.classes}"
>            jvmargs="-hotspot -ms64m -mx64m" 
>            domain="${weblogic.domain}" 
>            home="${weblogic.home.60}"
>            password="${weblogic.password}"
>            beahome="${bea.home}"
>           
>
policy="${weblogic.home.60}/lib/weblogic.policy}"/-->
> 
>               <!--"%JAVA_HOME%\bin\java" -hotspot -ms64m -mx64m
> -classpath
> %CLASSPATH% -Dweblogic.Domain=mydomain
> -Dweblogic.Name=myserver
> "-Dbea.home=C:\bea"
>
"-Djava.security.policy==C:\bea\wlserver6.0/lib/weblogic.policy"
> -Dweblogic.management.password=%WLS_PW%
> weblogic.Server-->
> 
>         <java classname="weblogic.Server" fork="yes"
> dir="${weblogic.home.60}">
>             <jvmarg value="-hotspot"/>
>             <jvmarg value="-ms64m"/>
>             <jvmarg value="-mx64m"/>
>             <jvmarg
> value="-Dweblogic.Domain=${weblogic.domain}"/>
>             <jvmarg
> value="-Dweblogic.Name=${weblogic.name}"/>
>             <jvmarg value="-Dbea.home=${bea.home}"/>
>             <jvmarg
>
value="-Djava.security.policy==${weblogic.home.60}/lib/weblogic.policy"/>
>             <jvmarg
>
value="-Dweblogic.management.password=${weblogic.password}"/>
>             <classpath>
>               <pathelement
> location="${java.home}/../lib/tools.jar"/>
>               <pathelement location="${junit.jar}"/>
>               <pathelement
> location="${weblogic.home.60}/lib/weblogic.jar"/>
>               <pathelement
> location="${weblogic.home.60}/lib/weblogic_sp.jar"/>
>               <pathelement
> location="c:/tomcat/xerces-1_3_1/xerces.jar"/>
>               <pathelement
>
location="c:/projects/junit3.7/commons-cactus-23-1.1/lib/commons-cactus.jar"
> />
>             </classpath>
>         </java>
> 
>         <echo message="in start_weblogic_60
> weblogic.home.60 =
> ${weblogic.home.60}"/>
> 
>     </target>
> 
>     <!-- 
>  
>
========================================================================
>          Stop weblogic 6.0
>  
>
========================================================================
>     -->
>     <target name="stop_weblogic_40">
> 
>       <!--wlstop classpath="${weblogic.classes}"
>             user="${weblogic.username}"
>             url="${weblogic.admin.url}"
>             password="${weblogic.password}"
>             beahome="${bea.home}"/-->
> 
>               <!--java weblogic.Admin -url host:port SHUTDOWN
> -username
> adminname -password password-->
> 
>         <java classname="weblogic.Admin" fork="yes"
> dir="${weblogic.home.60}">
>             <arg value="-url localhost:7001"/>
>             <arg value="SHUTDOWN"/>
>             <arg value="-username
> ${weblogic.username}"/>
>             <arg value="-password
> ${weblogic.password}"/>
>             <classpath>
>               <pathelement
> location="${java.home}/../lib/tools.jar"/>
>               <pathelement location="${junit.jar}"/>
>               <pathelement
> location="${weblogic.home.60}/lib/weblogic.jar"/>
>               <pathelement
> location="${weblogic.home.60}/lib/weblogic_sp.jar"/>
>             </classpath>
>         </java>
> 
>     </target>
> 
>     <!-- 
>  
>
========================================================================
>          Display a warning message if the needed
> servlet engine home
> property
>          is not set
>  
>
========================================================================
>     -->
>     <target name="check_tests_weblogic_60"
> depends="testwar"
> unless="weblogic.home.60">
> 
>         <echo message=""/>
>         <echo
>
message="*********************************************************"/>
>         <echo message="WARNING : The
> 'weblogic.home.60' property has not
> been set."/>
>         <echo message="          No test will be run
> on that servlet
> engine."/>
>         <echo
>
message="*********************************************************"/>
>         <echo message=""/>
> 
>     </target>
> 
>     <!-- 
>  
>
========================================================================
>          Prepare directories and variables for
> running the tests
>  
>
========================================================================
>     -->
>     <target name="prepare_tests_weblogic_60"
> depends="check_tests_weblogic_60"
> if="weblogic.home.60">
> 
>         <echo message="weblogic.home.60 =
> ${weblogic.home.60}"/>
> 
>         <property name="out.weblogic60.dir"
> value="${out.test.dir}/weblogic60"/>
>         <property name="conf.weblogic60.dir"
> value="${conf.test.dir}/weblogic60"/>
>         <property name="out.weblogic60.full.dir"
> value="${basedir}/${out.weblogic60.dir}"/>
> 
>         <filter token="out.weblogic60.full.dir"
> value="${out.weblogic60.full.dir}"/>
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Reply via email to