Hi Robert,

The only reason I can see for the ant script to hang (I guess it happens
when it starts weblogic, right ?) is that the testURL that you have
specified (http://localhost:7001/test) does not return a clean answer, so
the runservertests task keep trying.

-Vincent

----- Original Message -----
From: "Hollamby, Robert" <[EMAIL PROTECTED]>
To: "Cactus-User Mail List (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, October 19, 2001 3:19 AM
Subject: Sec:Unclassified Cactus Sample Hanging on Weblogic 6.0sp2


> Hi all
>
> I have created an ant script to run the examples on Weblogic6.0sp2.
> I am currently just dumping the war file in the default mydomain for
> weblogic. The default mydomain is a standard configuration except that
> I have turned off SSL and the native windows io dll performance pack.
>
> The problem is that the tomcat tests run ok but when I try to run the
> same tests and war file on weblogic6.0 the junit tests don't run as the
> ant script just hangs. The trace writes and script can be seen below.
> I know that the script is not like the other cactus example scripts in
> that I am not creating a clean separate instance of the web server to test
> on. But my weblogic install is very new/clean and would like to get the
> samples
> running in that before I start trying to play with more variables such as
> weblogic 6.0 configurations. Any ideas?
>
>
> Robert Hollamby
>
>
>
> ******** Ant Script **********
> weblogic.home.60 set to d:/bea/wlserver6.0
>
>
>     <!--
>
> ========================================================================
>          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">
>
>         <java classname="weblogic.Server" fork="yes"
> dir="${weblogic.home.60}">
>
>             <classpath>
>               <pathelement
location="${weblogic.home.60}/lib/weblogic.jar"/>
>
>             </classpath>
>
>             <jvmarg value="-ms64m"/>
>             <jvmarg value="-mx64m"/>
>             <jvmarg value="-Dweblogic.Domain=mydomain"/>
>             <jvmarg value="-Dweblogic.Name=myserver"/>
>             <jvmarg value="-Dbea.home=D:/bea"/>
>             <jvmarg value="-
> Djava.security.policy==D:/bea/wlserver6.0/lib/weblogic.policy"/>
>             <jvmarg value="-Dweblogic.management.password=password"/>
>
>         </java>
>
>     </target>
>
>     <!--
>
> ========================================================================
>          Stop WebLogic 6.0
>
> ========================================================================
>     -->
>     <target name="stop_weblogic_60">
>
>         <java classname="weblogic.Admin" fork="yes"
> dir="${weblogic.home.60}">
>
>             <classpath>
>         <pathelement
> location="${weblogic.home.60}/lib/weblogic.jar"/>
>             </classpath>
>
>             <arg value="t3://localhost:7001/test"/>
>             <arg value="SHUTDOWN"/>
>             <arg value="system"/>
>             <arg value="password"/>
>
>         </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}"/>
>
>         <!-- Copy the war file -->
>         <copy file="${out.test.dir}/test.war"
>
> tofile="${weblogic.home.60}/config/mydomain/applications/test.war"/>
>
>     </target>
>
>
> ************ trace writes *********************
>
> D:\jakarta-cactus-22-1.2\sample\build>build
>
> D:\jakarta-cactus-22-1.2\sample\build>rem set JAVA_HOME=D:\jdk1.3.1_01
>
> D:\jakarta-cactus-22-1.2\sample\build>set JAVA_HOME=D:\bea\jdk131
>
> D:\jakarta-cactus-22-1.2\sample\build>set ANT_HOME=d:\jakarta-ant-1.4
>
> D:\jakarta-cactus-22-1.2\sample\build>set
> CLASSPATH=D:\bea\jdk131\lib\tools.jar
>
>
> D:\jakarta-cactus-22-1.2\sample\build>set
> PATH=D:\bea\jdk131\bin;d:\jakarta-ant-
> 1.4\bin;
>
> D:\jakarta-cactus-22-1.2\sample\build>rem ant all
>
> D:\jakarta-cactus-22-1.2\sample\build>ant tests_all
> Buildfile: build.xml
>
> init:
>      [echo] --------- Cactus Sample 1.2 ---------
>      [echo]
>      [echo] java.class.path =
> D:\bea\jdk131\lib\tools.jar;d:\jakarta-ant-1.4\lib
>
\xerces.jar;d:\jakarta-ant-1.4\lib\xalan.jar;d:\jakarta-ant-1.4\lib\styleboo
> k-1.
>
0-b3_xalan-2.jar;d:\jakarta-ant-1.4\lib\junit.jar;d:\jakarta-ant-1.4\lib\jre
> fact
>
ory.jar;d:\jakarta-ant-1.4\lib\jaxp.jar;d:\jakarta-ant-1.4\lib\jakarta-ant-1
> .4-o
>
ptional.jar;d:\jakarta-ant-1.4\lib\crimson.jar;d:\jakarta-ant-1.4\lib\ant.ja
> r;D:
> \bea\jdk131\lib\tools.jar
>      [echo]
>      [echo] java.home = D:\bea\jdk131\jre
>      [echo] user.home = C:\WINNT\Profiles\roberthollamby.000
>      [echo]
>      [echo] basedir = D:\jakarta-cactus-22-1.2\sample
>      [echo]
>      [echo] cactus.jar = ../lib/cactus.jar
>      [echo] cactus.ant.jar = ../lib/cactus-ant.jar
>      [echo] servlet.jar =
d:/JBoss-2.4.1_Tomcat-3.2.3/tomcat/lib/servlet.jar
>      [echo] junit.jar = d:/jakarta-ant-1.4/lib/junit.jar
>      [echo] httpclient.jar = ../lib/httpclient.jar
>
> prepare:
>
> prepare-compile:
>
> compile:
>
> prepare-testwar-log4j:
>
> prepare-testwar:
>
> testwar:
>
> check_tests_resin_20:
>      [echo]
>      [echo] *********************************************************
>      [echo] WARNING : The 'resin.home.20' property has not been set.
>      [echo]           No test will be run on that servlet engine.
>      [echo] *********************************************************
>      [echo]
>
> prepare_tests_resin_20:
>
> tests_resin_20:
>
> check_tests_resin_12:
>      [echo]
>      [echo] *********************************************************
>      [echo] WARNING : The 'resin.home.12' property has not been set.
>      [echo]           No test will be run on that servlet engine.
>      [echo] *********************************************************
>      [echo]
>
> prepare_tests_resin_12:
>
> tests_resin_12:
>
> check_tests_tomcat_32:
>
> prepare_tests_tomcat_32:
>      [echo] tomcat.home.32 = d:/JBoss-2.4.1_Tomcat-3.2.3/tomcat
>    [delete] Deleting directory
> D:\jakarta-cactus-22-1.2\sample\target\test\tomca
> t32\webapps
>      [copy] Copying 1 file to
> D:\jakarta-cactus-22-1.2\sample\target\test\tomcat
> 32\webapps
>
> tests_tomcat_32:
>
> start_tomcat_32:
>      [java] Starting tomcat. Check logs/tomcat.log for error messages
>      [java] 2001-10-19 11:53:45 - path="" :jsp: init
>      [java] 2001-10-19 11:53:46 - path="/test" :jsp: init
>
> tests:
>     [junit] Running org.apache.cactus.TestAll
>      [java] 2001-10-19 11:53:48 - path="/test" :ServletRedirector: init
>      [java] 2001-10-19 11:53:53 - path="/test" :jsp: init
>      [java] 2001-10-19 11:53:53 - path="/test" :ServletRedirector: init
>      [java] 2001-10-19 11:53:53 - path="/test" :JspRedirector: init
>      [java] 2001-10-19 11:53:54 - path="/test" :JspRedirector: init
>      [java] 2001-10-19 11:53:55 - path="/test" :some test log
>     [junit] Tests run: 48, Failures: 0, Errors: 0, Time elapsed: 7.891 sec
>     [junit] Testsuite: org.apache.cactus.TestAll
>     [junit] Tests run: 48, Failures: 0, Errors: 0, Time elapsed: 7.891 sec
>     [junit]
>     [junit] Testcase: testLongProcess took 3.825 sec
>     [junit] Testcase: testLotsOfData took 0.1 sec
>     [junit] Testcase: testReadServletOutputStream took 0.08 sec
>     [junit] Testcase: testPostMethod took 0.051 sec
>     [junit] Testcase: testGetMethod took 0.06 sec
>     [junit] Testcase: testSetAttribute took 0.04 sec
>     [junit] Testcase: testSetRequestAttribute took 0.04 sec
>     [junit] Testcase: testSendParams took 0.04 sec
>     [junit] Testcase: testSendHeader took 0.05 sec
>     [junit] Testcase: testSendCookie took 0.05 sec
>     [junit] Testcase: testSendMultipleCookies took 0.04 sec
>     [junit] Testcase: testReceiveHeader took 0.04 sec
>     [junit] Testcase: testReceiveCookie took 0.06 sec
>     [junit] Testcase: testRequestDispatcher took 1.042 sec
>     [junit] Testcase: testServletConfig took 0.05 sec
>     [junit] Testcase: testDoStartTag took 0.631 sec
>     [junit] Testcase: testDoStartTagInclude took 0.06 sec
>     [junit] Testcase: testDoEndTagContinue took 0.06 sec
>     [junit] Testcase: testDoEndTagStop took 0.05 sec
>     [junit] Testcase: testReplacement took 0.07 sec
>     [junit] Testcase: testAssertionFailedError took 0.08 sec
>     [junit] Testcase: testExceptionNotSerializable took 0.04 sec
>     [junit] Testcase: testExceptionSerializable took 0.04 sec
>     [junit] Testcase: testNoAutomaticSessionCreation took 0.06 sec
>     [junit] Testcase: testMultiValueParameters took 0.04 sec
>     [junit] Testcase: testWriteOutputStream took 0.05 sec
>     [junit] Testcase: testSetConfigParameter took 0.05 sec
>     [junit] Testcase: testGetServletName took 0.061 sec
>     [junit] Testcase: testSendMultivaluedHeader took 0.07 sec
>     [junit] Testcase: testGetResponseAsStringMultiLines took 0.04 sec
>     [junit] Testcase: testGetResponseAsStringArrayMultiLines took 0.05 sec
>     [junit] Testcase: testCookieEncoding took 0.04 sec
>     [junit] Testcase: testGetRequestDispatcherFromRequest1 took 0.08 sec
>     [junit] Testcase: testGetRequestDispatcherFromRequest2 took 0.06 sec
>     [junit] Testcase: testGetLogs took 0.06 sec
>     [junit] Testcase: testStatusCode took 0.04 sec
>     [junit] Testcase: testRedirect took 0.05 sec
>     [junit] Testcase: testGetPathTranslated took 0.05 sec
>     [junit] Testcase: testSetUp took 0.04 sec
>     [junit] Testcase: testTearDown took 0.05 sec
>     [junit] Testcase: testSimulatedURLBasics took 0.051 sec
>     [junit] Testcase: testSimulatedURL1 took 0.05 sec
>     [junit] Testcase: testSimulatedURL2 took 0.04 sec
>     [junit] Testcase: testSimulatedURL3 took 0.04 sec
>     [junit] Testcase: testSimulatedURL4 took 0.06 sec
>     [junit] Testcase: testSimulatedURL5 took 0.05 sec
>     [junit] Testcase: testTearDown took 0.05 sec
>     [junit] Testcase: testOut took 0.06 sec
>
> stop_tomcat_32:
>      [java] Stop tomcat
>      [java] 2001-10-19 11:53:56 - path="/test" :ServletRedirector: destroy
> [runservertests] Server stopped !
>
> check_tests_tomcat_33:
>      [echo]
>      [echo] *********************************************************
>      [echo] WARNING : The 'tomcat.home.33' property has not been set.
>      [echo]           No test will be run on that servlet engine.
>      [echo] *********************************************************
>      [echo]
>
> prepare_tests_tomcat_33:
>
> tests_tomcat_33:
>
> check_tests_orion_14:
>      [echo]
>      [echo] *********************************************************
>      [echo] WARNING : The 'orion.home.14' property has not been set.
>      [echo]           No test will be run on that servlet engine.
>      [echo] *********************************************************
>      [echo]
>
> prepare_tests_orion_14:
>
> tests_orion_14:
>
> check_tests_orion_15:
>      [echo]
>      [echo] *********************************************************
>      [echo] WARNING : The 'orion.home.15' property has not been set.
>      [echo]           No test will be run on that servlet engine.
>      [echo] *********************************************************
>      [echo]
>
> prepare_tests_orion_15:
>
> tests_orion_15:
>
> check_tests_weblogic_51:
>      [echo]
>      [echo] ***********************************************************
>      [echo] WARNING : The 'weblogic.home.51' property has not been set.
>      [echo]           No test will be run on that servlet engine.
>      [echo] ***********************************************************
>      [echo]
>
> prepare_tests_weblogic_51:
>
> tests_weblogic_51:
>
> check_tests_weblogic_60:
>
> prepare_tests_weblogic_60:
>      [echo] weblogic.home.60 = d:/bea/wlserver6.0
>
> tests_weblogic_60:
>
> start_weblogic_60:
>      [java] Starting WebLogic Server ....
>      [java] <Oct 19, 2001 11:54:02 AM EST> <Notice> <Management> <Loading
> config
> uration file .\config\mydomain\config.xml ...>
>      [java] log file:
D:\bea\wlserver6.0\.\config\mydomain\logs\weblogic.log
>      [java] <Oct 19, 2001 11:54:03 AM EST> <Info> <Logging> <Only log
> messages o
> f severity "Error" or worse will be displayed in this window. This can be
> change
> d at Admin Console> mydomain> Servers> myserver> Logging> General> Stdout
> severi
> ty threshold>
>      [java] <Oct 19, 2001 11:54:17 AM EST> <Notice> <WebLogicServer>
> <WebLogic S
> erver started>
>      [java] <Oct 19, 2001 11:54:17 AM EST> <Notice> <WebLogicServer>
> <ListenThre
> ad listening on port 7001>
>
>
>

Reply via email to