Just to clarify, in the case of OSWorkflow, the actual test case is found in WEB-INF/classes. It doesn't even access the EJB classes at all, or any classes for that matter. Also, the BasicTest class is not included in the EJB jar file (build.xml takes care of that). I'm sure it is a classloader problem, but I have no idea what problem that is.
Someone else on IRC suggested it might be that a non-Serializable class is being put in the session/servlet context by Cactus... -Pat ----- Original Message ----- From: "Rajagopal. V" <[EMAIL PROTECTED]> To: "Cactus Users List" <[EMAIL PROTECTED]> Sent: Thursday, May 02, 2002 6:07 PM Subject: Re: Orion 1.5.4 and Cactus 1.3 > A separation of the Test Case and EAR mite do teh > difference. The ClassCastException that you said mite > be a result of this. I hvaent tried this for ur > examples but ive had many instances of this in > wEblogic where i created an JAR and war separately and > updated only my jar file(The home and remote > interfaces). this wud result in two different versions > of the class loaded by 2 different classloaders > resulting in a classcastexception.. > > > --- Patrick Lightbody <[EMAIL PROTECTED]> wrote: > > To answer your packaging question, yes, I plan to > > clean that up and separate > > it better, but I didn't get to a point where things > > even worked. I'll do > > that once things work again :) > > > > "ant example" will build the example EAR file. When > > you deploy, you'll need > > the beanshell jar (bsh.jar I think) to be in > > orion/lib or in > > osworkflow_ear/config (it's in the classpath). > > > > -Pat > > > > ----- Original Message ----- > > From: "Rajagopal. V" <[EMAIL PROTECTED]> > > To: "Cactus Users List" > > <[EMAIL PROTECTED]> > > Sent: Thursday, May 02, 2002 5:59 PM > > Subject: Re: Orion 1.5.4 and Cactus 1.3 > > > > > > > I checked out the code from OSWorkflow and > > installed > > > it on Orion. All i got while installing was that > > it > > > cudnt find bsh libraries, thats alrite, but i > > could > > > not find the ant test target??? Where is your ant > > test > > > target. how do u test this!!! > > > > > > Also i found one thing when i checked out the > > code. Im > > > not sure why you package the test scripts along > > with > > > your main source code. What I did when i tested > > was > > > create the ear with the main application alone and > > > create a separate war file for Cactus. I mite not > > > understand what u were doing.. Let me know how you > > are > > > testing it(i mean the target and other stuff). > > > > > > Cheers > > > Raj > > > > > > --- Patrick Lightbody <[EMAIL PROTECTED]> > > wrote: > > > > It works for me too on Orion, but only until I > > > > redeploy the app. Then it > > > > bombs out with that ClassCastException. If you > > do > > > > try Orion tonight, grab > > > > the OSWorkflow CVS and build with "ant example". > > > > Then deploy > > > > osworkflow_example.ear and try running the > > testcase. > > > > It should work. Then > > > > tough web.xml or application.xml (orion unpacks > > the > > > > ear) and try again, it > > > > should fail. :( > > > > > > > > -Pat > > > > > > > > > > > > >From: "Rajagopal. V" <[EMAIL PROTECTED]> > > > > >Reply-To: "Cactus Users List" > > > > <[EMAIL PROTECTED]> > > > > >To: Cactus Users List > > > > <[EMAIL PROTECTED]> > > > > >Subject: Re: Orion 1.5.4 and Cactus 1.3 > > > > >Date: Thu, 2 May 2002 11:38:45 -0700 (PDT) > > > > > > > > > >Hi Pat, > > > > >This is what I tried and what i got. It ran > > > > perfectly > > > > >alright on weblogic 6.1.. This is the output > > > > > > > > > > [junit] Running BasicTest > > > > > [junit] URL: > > > > > > > > > > >http://localhost:7001/CactusTest/ServletRedirector?Cactus_TestM > > > > > > > > > > >ethod=testFoo&Cactus_TestClass=BasicTest&Cactus_AutomaticSession=true&Cactu > > s_Ser > > > > >vice=CALL_TEST > > > > > [junit] Response Code:200 > > > > > [junit] URL: > > > > > > > > > > >http://localhost:7001/CactusTest/ServletRedirector?Cactus_Servi > > > > >ce=GET_RESULTS > > > > > [junit] Response Code:200 > > > > > [junit] URL: > > > > > > > > > > >http://localhost:7001/CactusTest/ServletRedirector?Cactus_TestM > > > > > > > > > > >ethod=testBar&Cactus_TestClass=BasicTest&Cactus_AutomaticSession=true&Cactu > > s_Ser > > > > >vice=CALL_TEST > > > > > [junit] Response Code:200 > > > > > [junit] URL: > > > > > > > > > > >http://localhost:7001/CactusTest/ServletRedirector?Cactus_Servi > > > > >ce=GET_RESULTS > > > > > [junit] Response Code:200 > > > > > [junit] Tests run: 2, Failures: 1, Errors: > > 0, > > > > Time > > > > >elapsed: 0.231 sec > > > > > [junit] Testsuite: BasicTest > > > > > [junit] Tests run: 2, Failures: 1, Errors: > > 0, > > > > Time > > > > >elapsed: 0.231 sec > > > > > [junit] > > > > > [junit] Testcase: testFoo took 0.171 sec > > > > > [junit] Testcase: testBar took 0.06 sec > > > > > [junit] FAILED > > > > > [junit] null > > > > > [junit] > > junit.framework.AssertionFailedError > > > > > [junit] at > > > > >junit.framework.Assert.fail(Assert.java:65) > > > > > [junit] at > > > > > > >junit.framework.Assert.assertTrue(Assert.java:38) > > > > > [junit] at > > > > > > >junit.framework.Assert.assertTrue(Assert.java:45) > > > > > [junit] at BasicTest.testBar(Unknown > > > > Source) > > > > > > > > > > [junit] at > > > > >java.lang.reflect.Method.invoke(Native Method) > > > > > [junit] at > > > > > > > > > > >org.apache.cactus.AbstractTestCase.runServerTest(AbstractTest > > > > >Case.java:524) > > > > > [junit] at > > > > > > > > > > >org.apache.cactus.AbstractTestCase.runBareServerTest(Abstract > > > > >TestCase.java:490) > > > > > [junit] at > > > > > > > > > > >org.apache.cactus.server.AbstractTestCaller.doTest(AbstractTe > > > > >stCaller.java:150) > > > > > [junit] at > > > > > > > > > > >org.apache.cactus.server.AbstractTestController.dispatch79_ha > > > > > > > > > > >ndleRequest(AbstractTestController.java;org/apache/cactus/util/log/LogAspec > > t.jav > > > > >a(1k):123) > > > > > [junit] at > > > > > > > > > > >org.apache.cactus.server.AbstractTestController.around79_hand > > > > > > > > > > >leRequest(AbstractTestController.java;org/apache/cactus/util/log/LogAspect. > > java( > > > > >1k):1147) > > > > > [junit] at > > > > > > > > > > >org.apache.cactus.server.AbstractTestController.handleRequest > > > > > > > > > > >(AbstractTestController.java;org/apache/cactus/util/log/LogAspect.java(1k): > > 101) > > > > > [junit] at > > > > > > > > > > >org.apache.cactus.server.ServletTestRedirector.dispatch88_doP > > > > > > > > > > >ost(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.java(1k > > ):132 > > > > >) > > > > > [junit] at > > > > > > > > > > >org.apache.cactus.server.ServletTestRedirector.around88_doPos > > > > > > > > > > >t(ServletTestRedirector.java;org/apache/cactus/util/log/LogAspect.java(1k): > > 1147) > > > > > > > > === message truncated === > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Health - your guide to health and wellness > http://health.yahoo.com > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
