jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: runservertests
Date Mon, 21 Apr 2003 08:29:04 GMT
Hi Anil,

Please do not another email thread to start a new thread. Your thread
has nothing to do with "SampleServlet in JBoss", right?

As to your question, are you sure you've read the doc (for example, have
you read
http://jakarta.apache.org/cactus/integration/ant/task_runservertests.htm
l) ?

There are 3 solutions:
1/ do not use runservertests
2/ start your container before calling runservertests. Runservertest
will detect it is already started and won't start it. Read the doc for
more details.
3/ create empty start.weblogic.70 and stop.weblogic.70 targets

The best solution is of course 2/.

Hope it helps,
-Vincent

> -----Original Message-----
> From: Anil Agrawal [mailto:a.agrawal@popnet.co.in]
> Sent: 19 April 2003 02:55
> To: cactus-user@jakarta.apache.org
> Cc: vmassol@pivolis.com
> Subject: runservertests
> 
> I am using runservertests  for weblogic7.0 SP2.
> I AM USING runservertests task.
> I don't want to use
>             startTarget="start.weblogic.70"
>             stopTarget="stop.weblogic.70"
> 
> I don't want that my cactus test case start or stop the weblogic7.0
> 
> Pl. help me.
> 
> 
> <target name="cactusrun"  description="Run tests on WebLogic 7.0">
>         <runservertests
> 
> testURL="http://aa:7001/ServletRedirector?Cactus_Service=RUN_TEST"
>             startTarget="start.weblogic.70"
>             stopTarget="stop.weblogic.70"
>             testTarget="SyncHandler"/>
>     </target>
> 
>    <target name="start.weblogic.70">
> 
>         <java classname="weblogic.Server" fork="yes"
>             dir="d:\bea7.0\domains\WSCDomain">
> 
>             <classpath>
>                 <pathelement
> location="d:/bea7.0/weblogic700/server/lib/weblogic.sp.jar"/>
>                 <pathelement
> location="d:/bea7.0/weblogic700/server/lib/weblogic.jar"/>
> 
>             </classpath>
> 
>             <jvmarg value="-hotspot"/>
>             <jvmarg value="-ms64m"/>
>             <jvmarg value="-mx64m"/>
>             <jvmarg
>
value="-Djava.library.path=${java.library.path};${weblogic.home.70}/webl
> ogic700/server/bin"/>
>             <jvmarg value="-Dweblogic.Name=testserver"/>
>             <jvmarg value="-Dbea.home=${weblogic.home.70}"/>
>             <jvmarg value="-Dweblogic.management.username=system"/>
>             <jvmarg value="-Dweblogic.management.password=password"/>
>             <jvmarg
> value="-Djava.security.policy==./server/lib/weblogic.policy"/>
> 
>         </java>
> 
>     </target>
> 
>     <!--
> 
>
========================================================================
>          Stop WebLogic 7.0
> 
>
========================================================================
>     -->
>     <target name="stop.weblogic.70">
> 
>         <java classname="weblogic.Admin" fork="yes">
> 
>             <classpath>
>                 <pathelement
> location="d:/bea7.0/weblogic700/server/lib/weblogic.sp.jar"/>
>                 <pathelement
> location="d:/bea7.0/weblogic700/server/lib/weblogic.jar"/>
> 
>             </classpath>
> 
>             <arg line="-url t3://aa:7001"/>
>             <arg line="-username system"/>
>             <arg line="-password popnetindia"/>
>             <arg value="SHUTDOWN"/>
> 
>         </java>
> 
>     </target>
> With regards
> anil
> 
> 
> -----Original Message-----
> From: Xie, Jinpeng [mailto:JXie@admin.fsu.edu]
> Sent: Saturday, April 19, 2003 12:30 AM
> To: 'Cactus Users List'
> Subject: RE: SampleServlet in JBoss
> 
> 
> The classpath prevent me from compiling java files. So I don't have
> class files in war. Now I can run the samples with cactus
distribution.
> But I can not run it in eclipse debug mode.
> 
> Here is my description of my problem:
> First I make a breakpoint, and click 'Debug as cactus test', the unit
> test run to the end and it doesn't stop at breakpoint.
> 
> Do you have examples about ejb? I have a lot of servlets that invoke
> session beans. I want to test the servlets to test ejb. Do you think I
> can do it in the following way: 1. deploy ejb to jboss server 2. start
> jboss server. 3. test servlets on eclipse.
> 
> Jim
> 
> 
> -----Original Message-----
> From: Julien Ruaux [mailto:jruaux@octo.com]
> Sent: Friday, April 18, 2003 4:02 AM
> To: 'Cactus Users List'
> Subject: RE: SampleServlet in JBoss
> 
> 
> Could you provide more information on your project, like its
.classpath
> file ?
> 
> Thanks,
> 
> Julien
> 
> -----Original Message-----
> From: Xie, Jinpeng [mailto:JXie@admin.fsu.edu]
> Sent: Thursday, April 17, 2003 10:55 PM
> To: 'Cactus Users List'
> Subject: RE: SampleServlet in JBoss
> 
> 
> I followed the instruction. But I got "Class not found
> org.apache.cactus.sample.TestSampleServlet" exception when I
> start "Run as Cautus Test".
> 
> Jim
> 
> -----Original Message-----
> From: Julien Ruaux [mailto:jruaux@octo.com]
> Sent: Thursday, April 17, 2003 12:41 PM
> To: 'Cactus Users List'
> Subject: RE: SampleServlet in JBoss
> 
> 
> Hi,
> 
> First install the 2 Eclipse plug-ins provided on the Cactus page
(refer
> to the documentation). Then you need a Java project in which you have
> test classes and classes under test. Then follow each plug-in
> configuration section
> (http://jakarta.apache.org/cactus/integration/eclipse/index.html) to
> configure them. If the documentation is not clear your feedback would
be
> very much appreciated.
> 
> Julien
> 
> -----Original Message-----
> From: Xie, Jinpeng [mailto:JXie@admin.fsu.edu]
> Sent: Thursday, April 17, 2003 6:03 PM
> To: 'Cactus Users List'
> Subject: SampleServlet in JBoss
> 
> 
> I want to test servlets running in JBoss from eclipse. Please instruct
> me how to make TestSampleServlet to run in eclipse to test
SampleServlet
> in JBoss.
> 
> Jim
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



Mime
View raw message