Phil,
  Thanks for the scripts. It worked!

--- Phil Magill <[EMAIL PROTECTED]> wrote:
> Paromita
> 
> Sorry about the delay....
> 
> The examples are on the cactus web site and heres
> the script. I had to cut
> it out of script that we use for deploying. The
> overall idea is there. The
> important thing is, ensure that EVERYTHING is on the
> classpath.
> 
> I've tested EJB's using this method but had to
> create a jar with the home
> and remote interface and add that jar to the
> classpath. Has anyone had to do
> something similar and if so how did you do it.
> 
>   <!--
>
========================================================================
> -->
>   <!-- Run weblogic 6 Unit tests
> -->
>   <!--
>
========================================================================
> -->
>   <target name="run-tests" depends="init,
> cactus-init">
> 
>     <!-- 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://${host}:${port}";
>   
>                     startTarget="start_weblogic6"
>                     stopTarget="stop_weblogic6"
>                     testTarget="tests" />
>   </target>
> 
> 
>   <!--
>
========================================================================
> -->
>   <!-- Initialize custom Ant task needed for running
> the server tests
> -->
>   <!--
>
========================================================================
> -->
>   <target name="cactus-init" depends="init" >
> 
>     <taskdef name="runservertests"
>
classname="org.apache.commons.cactus.ant.RunServerTestsTask">
>       <classpath>
>         <pathelement location="${path to cactus
> jars}" />
>       </classpath>
>     </taskdef>
> 
>   </target>
> 
> 
>   <!--
>
========================================================================
> -->
>   <!-- Start weblogic
> -->
>   <!--
>
========================================================================
> -->
>   <target name="start_weblogic6" depends="init" >
> 
>     <wlrun taskname="weblogic-start"
>            beahome="${bea.home}"
>            home="${weblogic.home}"
>            domain="${weblogic.domain}"
>            name="${weblogic.server.name}"
>            username="${weblogic.userid}"
>            password="${weblogic.password}">
>       <classpath refid="testrun.server.classpath" />
> 
>       
>       <!-- testrun.server.classpath = path to
> weblogic.jar , path to compile
> 
>                  files for testing , path to bea.home for
> conf information-->
>                       
>     </wlrun>
>   </target>
> 
> 
>   <!--
>
========================================================================
> -->
>   <!-- Stop weblogic
> -->
>   <!--
>
========================================================================
> -->
>   <target name="stop_weblogic6" depends="init" >
> 
>     <wlstop taskname="weblogic-stop"
>             beahome="${bea.home}"
>             user="${weblogic.userid}"
>             password="${weblogic.password}"
>             url="t3://${host}:${port}" >
>       <classpath refid="testrun.server.classpath" />
>       
>       <!-- testrun.server.classpath = path to
> weblogic.jar , path to compile
> 
>                  files for testing , path to bea.home for
> conf information-->
>                       
>     </wlstop>
>   </target>
> 
> 
>   <target name="tests" depends="init" >
> 
>     <junit taskname="junit-tests"
>            haltonfailure="true"
>            fork="${junit.fork}">
> 
>       <classpath refid="testrun.client.classpath"/>
>       <formatter type="xml" usefile="true" />
> 
>       <!-- Define tests here -->
>       <test name="TestIt"
>            
> outfile="${junit.report.dir}/${junit.report.file}"
> />
>     </junit>
>   </target>
> 
> -----Original Message-----
> From: Paromita Choudhury
> [mailto:[EMAIL PROTECTED]]
> Sent: 09 July 2001 15:02
> To: [EMAIL PROTECTED]
> Subject: RE: Cactus and Weblogic 6.0
> 
> 
> Phil,
>   I've installed the sample and want to start
> testing
> in the Weblogic 6.0 SP1 environment. Where can I
> find
> the steps I need to follow? Also, could you send me
> the scripts that you mentioned? 
> Thanks,
> Paromita.
> 
> --- Phil Magill <[EMAIL PROTECTED]> wrote:
> > Hi
> > 
> > Yes you can use cactus with Weblogic, follow the
> > example and make sure
> > everything is on the classpath. 
> > 
> > Let me know how you get on. I can let you have the
> > scripts if you want (I
> > know Vinc i'll get them to you).
> > 
> > Thanks
> > 
> > Phil
> > 
> > 
> > -----Original Message-----
> > From: Paromita Choudhury
> > [mailto:[EMAIL PROTECTED]]
> > Sent: 05 July 2001 18:28
> > To: [EMAIL PROTECTED]
> > Subject: Cactus and Weblogic 6.0
> > 
> > 
> > Hi,
> > 
> >   Can I use cactus with Weblogic 6.0 SP1? 
> > 
> > Thanks.
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/


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

Reply via email to