I'm getting an error running cactus tests on wls 8.1. I'm using cactus 1.6dev-20031023. I've include my ant task i'm using to run the test, and the error I'm seeing. Hopefully, it's just a simple classpath issue. Any suggestions? The weblogic.classpath contains all jars in weblogic/server/lib folder. and the other element is my source classes. i'm testing ejb's. my beans are individually deployed applications (each bean has it's own deployable jar file) and is targeted and deployed to an app server. my cactified war is deployed to the same app container.
ant tasks: <cactifywar mergewebxml="${base.webapp}/httpUnit/ServletTestRunnerIntegration.xml" version="2.3" destfile="${isac.test.war}"> <classes dir="${base.webapp.web-inf.classes}" includes="**/*.class" /> <lib dir="${base.webapp.web-inf.lib}"> <include name="*.jar" /> </lib> </cactifywar> <target name="test.isac.ejb" depends="init"> <!-- make sure prior results are cleaned out --> <mkdir dir="./testResults"/> <delete> <fileset dir="./testResults" includes="**/*"/> </delete> <!-- run the tests --> <cactus fork="yes" warfile="${isac.test.war}" printsummary="withOutAndErr"> <formatter type="xml" /> <classpath> <path refid="weblogic.classpath" /> <pathelement location="${base.webapp.web-inf.classes}" /> </classpath> <containerset> <generic name="${isac.app.server.name}" port="${isac.app.server.port}" /> </containerset> <batchtest todir="./testResults"> <fileset dir="${base.webapp.web-inf.classes}"> <include name="**/ejb20/**/*Test*" /> <exclude name="**/EventSubmit*Test.class" /> <exclude name="**/ui/*" /> </fileset> </batchtest> </cactus> <!-- create the results --> <junitreport todir="./testResults"> <fileset dir="./testResults" includes="TEST-*.xml" /> <report format="frames" todir="./testResults" /> </junitreport> <!-- put the testResults into test.war --> <jar update="true" destfile="${isac.test.war}" basedir="./testResults"/> </target> error message: ***** ASSERTION FAILED *****[ Failed to generate class for com.cbc.isac.ejb20.event.EventMaintenance_dbvlfm_EOImpl_812_WLStub ] java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:805) at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790) at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79) at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:214) at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142) at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:911) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1655) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at weblogic.rmi.internal.CBVInputStream.readObjectInternal(CBVInputStream.java:67) at weblogic.rmi.internal.CBVInputStream.readObject(CBVInputStream.java:61) at weblogic.rmi.internal.ServerRequest.unmarshalReturn(ServerRequest.java:97) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:285) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244) at com.cbc.isac.ejb20.event.EventMaintenance_dbvlfm_HomeImpl_812_WLStub.create(Unknown Source) at com.cbc.isac.ejb20.event.EventMaintenanceTest.setUp(EventMaintenanceTest.java:49) at org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:295) at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263) at org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:156) at org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:130) at org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:158) at org.apache.cactus.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java) at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:138) at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:158) at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java) at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:109) at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:158) at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6354) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) Caused by: java.lang.ArrayIndexOutOfBoundsException: 59 at com.cbc.isac.ejb20.event.EventMaintenance_dbvlfm_EOImpl_812_WLStub.ensureInitialized(Unknown Source) at com.cbc.isac.ejb20.event.EventMaintenance_dbvlfm_EOImpl_812_WLStub.<init>(Unknown Source) ... 48 more --------------- nested within: ------------------ weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate class for com.cbc.isac.ejb20.event.EventMaintenance_dbvlfm_EOImpl_812_WLStub ] - with nested exception: [java.lang.reflect.InvocationTargetException - with target exception: [java.lang.ArrayIndexOutOfBoundsException: 59]] at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:807) at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790) at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79) at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:214) at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:142) at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:911) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1655) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at weblogic.rmi.internal.CBVInputStream.readObjectInternal(CBVInputStream.java:67) at weblogic.rmi.internal.CBVInputStream.readObject(CBVInputStream.java:61) at weblogic.rmi.internal.ServerRequest.unmarshalReturn(ServerRequest.java:97) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:285) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244) at com.cbc.isac.ejb20.event.EventMaintenance_dbvlfm_HomeImpl_812_WLStub.create(Unknown Source) at com.cbc.isac.ejb20.event.EventMaintenanceTest.setUp(EventMaintenanceTest.java:49) at org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:295) at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263) at org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:156) at org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:130) at org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:158) at org.apache.cactus.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java) at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:138) at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:158) at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java) at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:109) at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:158) at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6354) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]