Hi can you check your classpath/dependencies? Ensure you use the dependencies of a single version of openejb and that you didnt override GeronimoTransactionManagerFactory configuration in a server-jar.xml ni your classpath.
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> 2015-05-13 15:36 GMT+02:00 Samuelsson, Johan <[email protected]>: > Hello, > > We have have a test util project that uses OpenEJB in test purpose for > unit tests of our ejbs. Right now we're upgrading our jboss to EAP 6.3.1 > and then we had to change to JNDI lookup on some beans to use the new Java > EE 6 JNDI namespaces starting with java:app.... > > We had version 3.1.2-PATCH-1 of OpenEJB and if I have understood it > correct these JNDI namespace isn't supported in this old version. When I > try to upgrade OpenEJB to latest version I get the following error when I'm > running my tests > > 2015-maj-13 14:12:46 (SEVERE) OpenEJB: FATAL ERROR: Unknown error in > Assembler. Please send the following stack trace and this message to > [email protected] : > org.apache.xbean.recipe.MissingFactoryMethodException: Constructor has 0 > arugments but expected 16 arguments: public > org.apache.openejb.resource.GeronimoTransactionManagerFactory() > > at > org.apache.xbean.recipe.ReflectionUtil.findConstructor(ReflectionUtil.java:622) > at > org.apache.xbean.recipe.ObjectRecipe.findFactory(ObjectRecipe.java:563) > at > org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:274) > at > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96) > at > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61) > at > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49) > at > org.apache.openejb.assembler.classic.Assembler.createTransactionManager(Assembler.java:2551) > at > org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:496) > at > org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:420) > at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150) > at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:67) > at org.apache.openejb.OpenEJB.init(OpenEJB.java:298) > at org.apache.openejb.OpenEJB.init(OpenEJB.java:278) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36) > at > org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:98) > at > org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:62) > at > org.apache.openejb.core.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:46) > at > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) > at > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307) > at javax.naming.InitialContext.init(InitialContext.java:242) > at javax.naming.InitialContext.<init>(InitialContext.java:216) > at > com.lindex.common.util.jpatest.openejb.OpenEjbStatement.bootstrapOpenEJB(OpenEjbStatement.java:148) > at > com.lindex.common.util.jpatest.openejb.OpenEjbStatement.runTestUsingContainer(OpenEjbStatement.java:99) > at > com.lindex.common.util.jpatest.openejb.OpenEjbStatement.evaluate(OpenEjbStatement.java:88) > at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) > at > org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) > at org.junit.runners.ParentRunner.run(ParentRunner.java:363) > at > org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) > at > org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) > at > org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) > at > org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) > at > org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) > at > org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) > at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) > > Does anyone have any clue of whats the problem here? > > Regards > > Johan > > Johan Samuelsson > ERP Systems Team > ------------------------------------ > AB Lindex > Laxfiskevägen 4B > SE-433 38 Partille, Sweden > Phone: +46 (0) 761 69 04 60 > [email protected]<mailto:[email protected]> > www.lindex.com<http://www.lindex.com/> > > 'Get the Look' at www.lindex.com<http://www.lindex.com/> > > Please consider your environmental responsibility. Before printing this > e-mail ask yourself:- "Do I need a hard copy?" > > > ________________________________ > > This e-mail transmission is intended only for the recipient shown above. > It may contain information that is privileged, confidential or otherwise > protected from disclosure. Any review, publication, dissemination, copying > or use of this transmission or its contents by persons other than the > recipient is strictly prohibited, unless prior authorisation is received > from us. If you have received this e-mail in error please destroy the > transmission immediately. Thank you. >
