Thanks. This could be useful if I decide to go the "manual" route (not using the task). I think the task is breaking before the point of starting the server, because the config.xml (in the failing case) is missing the test application). I'm assuming that's supposed to be inserted before the server starts. This information also makes it clear the JVM args need to be customized for 8x, differently from 7x.
-----Original Message----- From: Bret Kumler [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 2:29 PM To: Cactus Users List Subject: RE: 1.5 servlet sample doesn't connect to server with weblogic8.1.2 Here's my start and stop weblogic 8.1 tasks and the tasks that execute the tests, hope it helps.. <!-- ###################################################################### Start & Stop Weblogic 8.1 Server ###################################################################### --> <target name="start.weblogic.81"> <java classname="weblogic.Server" fork="yes" dir="${target.weblogic81.dir}/testdomain"> <classpath> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/weblogic.jar"/> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/knex.jar"/> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/wlw-lang.jar"/> <pathelement location="${weblogic.home.81}/weblogic81/javelin/lib/javelin.jar"/> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/webserviceclient.jar "/> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/webserviceclient+ssl .jar "/> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/xbean.jar"/> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/xmarshal.jar"/> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/xqrl.jar"/> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/netui/netui-compiler .jar "/> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/wli.jar"/> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/fop.jar"/> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/debugging.jar"/> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/integration/lib/wlai -ser ver.jar"/> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/integration/adapters /sam ple/lib/sample-eis.jar"/> <pathelement location="${tools.jar}"/> <pathelement location="${oracle.driver}"/> <pathelement location="${junit-jar}"/> <pathelement location="${log4j.jar}"/> <pathelement path="${pm.properties.path}"/> </classpath> <jvmarg value="-hotspot"/> <jvmarg value="-ms256m"/> <jvmarg value="-mx256m"/> <jvmarg value="-Djava.library.path=${java.library.path};${weblogic.home.81}/webl ogic 81/server/bin"/> <jvmarg value="-Dweblogic.Name=testserver"/> <jvmarg value="-Dbea.home=${weblogic.home.81}"/> <jvmarg value="-Dweblogic.management.username=${weblogic.username}"/> <jvmarg value="-Dweblogic.management.password=${weblogic.password}"/> <jvmarg value="-Djava.security.policy==./server/lib/weblogic.policy"/> </java> </target> <target name="stop.weblogic.81"> <java classname="weblogic.Admin" fork="yes"> <classpath> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/weblogic.sp.jar"/> <pathelement location="${weblogic.home.81}/weblogic81/server/lib/weblogic.jar"/> </classpath> <arg line="-url t3://localhost:${test.port}"/> <arg line="-username ${weblogic.username}"/> <arg line="-password ${weblogic.password}"/> <arg value="SHUTDOWN"/> </java> </target> <!-- ############################################################# Execute the Cactus BAT tests ############################################################# --> <target name="cactus.bat.tests"> <!-- Run the tests --> <cactus earfile="${execution-dir}/tests/${test.file}" fork="yes" failureproperty="tests.failed"> <classpath> <path refid="project.classpath"/> <pathelement location="${execution-dir}/tests/lib/qa-test.jar"/> <pathelement location="${conf.test.dir}/log4j.properties"/> </classpath> <containerset> <generic name="Weblogic 8.1.1" port="${test.port}"/> </containerset> <formatter type="brief" usefile="false"/> <formatter type="xml"/> <batchtest todir="${execution-dir}/tests"> <fileset dir="${test.classes}"> <include name="**/AllCactusBatTests.class"/> </fileset> </batchtest> </cactus> <!-- Generate the JUnit reports --> <junitreport todir="${test.reports}/cactus"> <fileset dir="${execution-dir}/tests" includes="TEST-*.xml"/> <report todir="${test.reports}/cactus" format="frames"/> </junitreport> <zip destfile="${test.reports}/cactus/test-reports.zip" basedir="${test.reports}/cactus" excludes="*.xml"/> <if> <equals arg1="${test-type}" arg2="BAT"/> <then> <mail tolist="${group-email}" subject="BAT Results" from="QA-Team" mailhost="smtp.xxx.com"> <fileset dir="${test.reports}/cactus" includes="*.zip"/> </mail> </then> <else> <mail tolist="${local-test-email}" subject="BAT Results" from="QA-Team" mailhost="smtp.xxx.com"> <fileset dir="${test.reports}/cactus" includes="*.zip"/> </mail> </else> </if> <delete file="${test.reports}/cactus/test-reports.zip"/> <fail if="tests.failed">At least one test failed!</fail> </target> <!-- ################################################################# !!!!!!! RUN THIS TARGET FOR CACTUS BAT TESTS ONLY !!!!!!! ################################################################# --> <target name="bat.test" depends="prepare.weblogic.test" description="Run the BAT tests against Weblogic 8."> <runservertests testURL="http://localhost:${test.port}/test/ServletRedirector?Cactus_Ser vice =RUN_TEST" startTarget="start.weblogic.81" stopTarget="stop.weblogic.81" testTarget="cactus.bat.tests" /> </target> -----Original Message----- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 2:19 PM To: Cactus Users List Subject: RE: 1.5 servlet sample doesn't connect to server with weblogic8.1.2 I have no idea whether it's supposed to work the same way. However, I believe most of the changes from WLS 7 to 8 were not in details of server startup and deployment, so it's entirely possible those details haven't changed significantly. I've never used WLS 7, so I'm not sure what to compare it to. I tried running a recursive diff of the two container directories that are generated, the one which works, and the one which doesn't, to see if I could figure out what the differences mean. I can see differences, but I don't know what they mean. I noticed two particular things, but they may be secondary symptoms of more important issues. My two test cases simply differ by the value of the "tmpdir" property of the "weblogic7x" task. The one that works has it set to "c:/tmp". The one that fails has it set to point to a "tmp" directory that I created in the "samples/servlet" directory, but the absolute path to it. The first difference is between the generated "testdomain/config.xml" files. The one that works has an "Application" element for the cactified war, but the other does not. I'm guessing this is just a secondary symptom of a different problem. Second, there is a file "testdomain/testserver/stage/_appsdir_cactus-sample-servlet-cactified_wa r/cactus-sample-servlet-cactified.war/WEB-INF/classes/org/apache/cactus/ sample/unit/TestServerSideExceptions.class" in both directories, but this class has two inner classes, but their class files only appeared in "c:/tmp", and not in the other. A ClassNotFound exception is shown in the error log indicating this. Another thing I noticed is in the "src" distribution, there is a file named "build-tests-weblogic7x.xml" that has some Ant code that seems to imply that you can't use JDK 1.4.x with this. I didn't notice any error messages to this effect, nor could I figure out where, or if, this file was used in the binary distribution. It's possible that the java command line that is built in the "WebLogic7xContainer" class is different from what is built in "startWebLogic.cmd" in a standard domain, but I'm not sure yet whether that's the issue here. You may be aware of this, but if you haven't tested yet with WebLogic8x because you don't have access to it, note that WLS is freely available in an evaluation form, which just means it will only take connections from five unique IP addresses (and clustering might be disabled also). -----Original Message----- From: Vincent Massol [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 6:51 PM To: 'Cactus Users List' Subject: RE: 1.5 servlet sample doesn't connect to server with weblogic8.1.2 Hi David, I have never tried Cactus with WL 8.x and it is not officially supported. Are you sure it's supposed to work in exactly the same way as WL 7.x, which is the supported version when you use the <weblogic7x> nested element? If not, I'm sure some little tweakings will make it work. It would be great if you can find out what is the problem and submit a patch to make cactus work for WL 8.1! :-) Thanks -Vincent > -----Original Message----- > From: Karr, David [mailto:[EMAIL PROTECTED] > Sent: 04 February 2004 23:28 > To: [EMAIL PROTECTED] > Subject: 1.5 servlet sample doesn't connect to server with weblogic8.1.2 > > I took the 1.5 distribution out of the box, commented in the setting of > "cactus.home.weblogic7x" in "build.properties" and set the value to the > path to my weblogic81 (8.1.2) directory, and then ran "ant" in > "samples/servlet". It eventually failed with the output contained in > the first block following this. I don't know what "debug" mode is. I > noticed there's a "debug" property in the "build.xml", but that was > already on. > > I also included the "weblogic7x.out" file, in the second block (although > I elided some of the stack trace entries to slightly reduce the size of > this note). > > --------------- > test: > ----------------------------------------------------------------- > Running tests against WebLogic 7.x > ----------------------------------------------------------------- > Deleting 80 files from > c:\DOCUME~1\u166705\LOCALS~1\Temp\cactus\weblogic7x > Deleted 44 directories from > c:\DOCUME~1\u166705\LOCALS~1\Temp\cactus\weblogic7x > Building jar: > c:\DOCUME~1\u166705\LOCALS~1\Temp\cactus\weblogic7x\testdomain\applicati > ons\cactus-sample-servlet-cactified.war > > BUILD FAILED > file:c:/jakarta/jakarta-cactus-13-1.5/samples/servlet/build.xml:319: > Failed to start the container after more than [180000] ms. Trying to > connect to the > [http://localhost:8080/cactus-sample-servlet-cactified/ServletRedirector > ?Cactus_Service=RUN_TEST] test URL yielded a [-1] error code. Please run > in debug mode for more details about the error. > --------------- > > --------------------- > <Feb 4, 2004 2:11:49 PM PST> <Info> <WebLogicServer> <BEA-000377> > <Starting WebLogic Server with Java HotSpot(TM) Client VM Version > 1.4.2_01-b06 from Sun Microsystems Inc.> <Feb 4, 2004 2:11:50 PM PST> > <Info> <Configuration Management> <BEA-150016> <This server is being > started as the administration server.> <Feb 4, 2004 2:11:50 PM PST> > <Info> <Management> <BEA-141107> <Version: > WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284 WebLogic > XMLX Module 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284 > <Feb 4, 2004 > 2:11:50 PM PST> <Notice> <Management> <BEA-140005> <Loading > domain configuration from configuration repository at > c:\DOCUME~1\u166705\LOCALS~1\Temp\cactus\weblogic7x\testdomain\.\config. > xml.> > <Feb 4, 2004 2:11:53 PM PST> <Notice> <Log Management> <BEA-170019> <The > server log file C:\Documents and Settings\u166705\Local > Settings\Temp\cactus\weblogic7x\testdomain\testserver\testserver.log is > opened. All server side log events will be written to this file.> <Feb > 4, 2004 2:11:56 PM PST> <Notice> <Security> <BEA-090082> <Security > initializing using security realm myrealm.> > <Feb 4, 2004 2:11:57 PM PST> <Notice> <WebLogicServer> <BEA-000327> > <Starting WebLogic Admin Server "testserver" for domain "testdomain"> > <Feb 4, 2004 2:12:02 PM PST> <Warning> <HTTP> <BEA-101296> <Unable to > load the default compiler class "com.sun.tools.javac.Main". Using the > default javac compiler to compile JSPs.> <Feb 4, 2004 2:12:05 PM PST> > <Notice> <JTA> <BEA-110025> <Creating new transaction log file > [.\testserver\./testserver.0000.tlog].> > <Feb 4, 2004 2:12:05 PM PST> <Notice> <JTA> <BEA-110025> <Creating new > transaction log file [.\testserver\./testserver.heur.0000.tlog].> > <Feb 4, 2004 2:12:07 PM PST> <Error> <Deployer> <BEA-149225> <Unable to > unpack the application _appsdir_cactus-sample-servlet-cactified_war to > the file > .\testserver\stage\_appsdir_cactus-sample-servlet-cactified_war\cactus-s > ample-servlet-cactified.war. > java.io.FileNotFoundException: > .\testserver\stage\_appsdir_cactus-sample-servlet-cactified_war\cactus-s > ample-servlet-cactified.war\WEB-INF\classes\org\apache\cactus\sample\uni > t\TestServerSideExceptions$SerializableException.class (The system > cannot find the path specified) > at java.io.FileOutputStream.open(Native Method) > at java.io.FileOutputStream.<init>(FileOutputStream.java:179) > at java.io.FileOutputStream.<init>(FileOutputStream.java:131) > at weblogic.utils.jars.JarUtils.unpackJar(JarUtils.java:96) > at > weblogic.utils.jars.JarUtils.unpackRemoteJar(JarUtils.java:155) > at > weblogic.management.deploy.slave.SlaveDeployer$Application.explode(Slave > Deployer.java:2979) > > > <Feb 4, 2004 2:12:07 PM PST> <Warning> <Deployer> <BEA-149004> <Failures > were detected while initiating Deploy task for application > _appsdir_cactus-sample-servlet-cactified_war.> > <Feb 4, 2004 2:12:07 PM PST> <Error> <Deployer> <BEA-149201> <Failed to > complete the deployment task with ID 0 for the application > _appsdir_cactus-sample-servlet-cactified_war. > weblogic.management.DeploymentException: [Deployer:149225]Unable to > unpack the application _appsdir_cactus-sample-servlet-cactified_war to > the file > .\testserver\stage\_appsdir_cactus-sample-servlet-cactified_war\cactus-s > ample-servlet-cactified.war. > java.io.FileNotFoundException: > .\testserver\stage\_appsdir_cactus-sample-servlet-cactified_war\cactus-s > ample-servlet-cactified.war\WEB-INF\classes\org\apache\cactus\sample\uni > t\TestServerSideExceptions$SerializableException.class (The system > cannot find the path specified) > at java.io.FileOutputStream.open(Native Method) > at java.io.FileOutputStream.<init>(FileOutputStream.java:179) > at java.io.FileOutputStream.<init>(FileOutputStream.java:131) > at weblogic.utils.jars.JarUtils.unpackJar(JarUtils.java:96) > at > weblogic.utils.jars.JarUtils.unpackRemoteJar(JarUtils.java:155) > at > weblogic.management.deploy.slave.SlaveDeployer$Application.explode(Slave > Deployer.java:2979) > --------------- nested within: ------------------ > weblogic.management.ManagementException: - with nested exception: > [weblogic.management.DeploymentException: [Deployer:149225]Unable to > unpack the application _appsdir_cactus-sample-servlet-cactified_war to > the file > .\testserver\stage\_appsdir_cactus-sample-servlet-cactified_war\cactus-s > ample-servlet-cactified.war. > java.io.FileNotFoundException: > .\testserver\stage\_appsdir_cactus-sample-servlet-cactified_war\cactus-s > ample-servlet-cactified.war\WEB-INF\classes\org\apache\cactus\sample\uni > t\TestServerSideExceptions$SerializableException.class (The system > cannot find the path specified) > at java.io.FileOutputStream.open(Native Method) > at java.io.FileOutputStream.<init>(FileOutputStream.java:179) > at java.io.FileOutputStream.<init>(FileOutputStream.java:131) > at weblogic.utils.jars.JarUtils.unpackJar(JarUtils.java:96) > at > weblogic.utils.jars.JarUtils.unpackRemoteJar(JarUtils.java:155) > at > weblogic.management.deploy.slave.SlaveDeployer$Application.explode(Slave > Deployer.java:2979) > > > <Feb 4, 2004 2:12:09 PM PST> <Warning> <Management> <BEA-141130> <The > domain configuration version was not set for the domain testdomain that > is being started. (The current server version is 8.1.2.0.)> <Feb 4, > 2004 2:12:10 PM PST> <Notice> <WebLogicServer> <BEA-000331> <Started > WebLogic Admin Server "testserver" for domain "testdomain" running in > Development Mode> <Feb 4, 2004 2:12:10 PM PST> <Notice> > <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> <Feb 4, > 2004 2:12:10 PM PST> <Warning> <WebLogicServer> <BEA-000372> > <HostName: 0.0.0.0, maps to multiple IP > addresses:10.145.24.70,10.147.128.167> > <Feb 4, 2004 2:12:10 PM PST> <Notice> <WebLogicServer> <BEA-000355> > <Thread "ListenThread.Default" listening on port 8080, ip address *.*> > --------------------- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
