| Author |
Running JUnit testcases with Maven
|
Rohan Fernandes
Greenhorn
Joined: Oct 29, 2003
Posts: 1
|
|
I use weblogic 8.1 i get the following error when i try to run the testcases using the command MAVEN JUNITEJB:TEST can anyone tell me how to get rid of this error!!! junitejb:test: [junit] dir attribute ignored if running in the same VM [junit] Running com.oneport.billing.psd.ejb.PSDiscountEntityTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 10.355 sec [junit] Testsuite: com.oneport.billing.psd.ejb.PSDiscountEntityTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 10.355 sec [junit] [junit] Testcase: testCreate took 10.305 sec [junit] Caused an ERROR [junit] EJB Exception: ; nested exception is: [junit] java.lang.IllegalStateException: Transaction does not exist [junit] java.rmi.RemoteException: EJB Exception: ; nested exception is: [junit] java.lang.IllegalStateException: Transaction does not exist [junit] at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108) [junit] at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284) [junit] at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244) [junit] at net.sourceforge.junitejb.EJBTestRunnerEJB_5znltd_EOImpl_811_WLStub.run(Unknown Source) [junit] at net.sourceforge.junitejb.EJBTestCase.runBare(EJBTestCase.java:219) [junit] at net.sourceforge.junitejb.EJBTestCase.run(EJBTestCase.java:189) [junit] at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232) [junit] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) [junit] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) [junit] at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88) [junit] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) [junit] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) [junit] at com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:128) [junit] at com.werken.werkz.Goal.fire(Goal.java:639) [junit] at com.werken.werkz.Goal.attain(Goal.java:575) [junit] at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:448) [junit] at org.apache.maven.MavenSession.attainGoals(MavenSession.java:348) [junit] at org.apache.maven.cli.App.doMain(App.java:543) [junit] at org.apache.maven.cli.App.main(App.java:1109) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at com.werken.forehead.Forehead.run(Forehead.java:551) [junit] at com.werken.forehead.Forehead.main(Forehead.java:581) [junit] Caused by: java.lang.IllegalStateException: Transaction does not exist [junit] at weblogic.transaction.internal.TransactionManagerImpl.rollback(TransactionManagerImpl.java:320) [junit] at net.sourceforge.junitejb.EJBTestRunnerBean.runTestCase(EJBTestRunnerBean.java:111) [junit] at net.sourceforge.junitejb.EJBTestRunnerBean.run(EJBTestRunnerBean.java:44) [junit] at net.sourceforge.junitejb.EJBTestRunnerEJB_5znltd_EOImpl.run(EJBTestRunnerEJB_5znltd_EOImpl.java:46) [junit] at net.sourceforge.junitejb.EJBTestRunnerEJB_5znltd_EOImpl_WLSkel.invoke(Unknown Source) [junit] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:466) [junit] at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108) [junit] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:409) [junit] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353) [junit] at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144) [junit] at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:404) [junit] at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30) [junit] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) [junit] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
|
 |
 |
|
|
subject: Running JUnit testcases with Maven
|
|
|