Check the release notes for 2.0.8, one change to tests was that the classpath now puts test stuff first.
-----Original Message----- From: Arash Bizhan zadeh [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 11:25 AM To: Maven Users List Subject: Maven upgrade breaks testcases I upgraded maven from 2.0.5 to 2.0.8 and faced a big surprise. My test cases does not run anymore! The error message is : org.hibernate.HibernateException: createCriteria is not valid without active transaction at org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke (ThreadLocalSessionContext.java:297) at $Proxy6.createCriteria(Unknown Source) at ca.cbc.whatson.dao.ProgramHome.findByName(ProgramHome.java:198) at ca.cbc.whatson.util.DigestTestXSL.getEpisodes(DigestTestXSL.java :181) at ca.cbc.whatson.test.dao.FeedData.feedEpisodes(FeedData.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java :604) at org.testng.internal.Invoker.invokeMethod(Invoker.java:470) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830) at org.testng.internal.TestMethodWorker.invokeTestMethods( TestMethodWorker.java:125) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java :109) at org.testng.TestRunner.runWorkers(TestRunner.java:678) at org.testng.TestRunner.privateRun(TestRunner.java:624) at org.testng.TestRunner.run(TestRunner.java:495) at org.testng.SuiteRunner.runTest(SuiteRunner.java:300) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275) at org.testng.SuiteRunner.run(SuiteRunner.java:190) at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792) at org.testng.TestNG.runSuitesLocally(TestNG.java:765) at org.testng.TestNG.run(TestNG.java:699) at org.apache.maven.surefire.testng.TestNGExecutor.run( TestNGExecutor.java:74) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute( TestNGXmlTestSuite.java:92) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) It was working perfectly file with 2.0.5! I guess that it is happened because of an upgrade in one of the plugins, but I don't know how to find out which version of the plugins are used and how. Could somebody help me? -- You can not depend on your eyes when your imagination is out of focus.
