You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by alok shukla <al...@gmail.com> on 2011/01/13 19:45:52 UTC

Getting An error while starting embedded OpenEJB 3.1.4

ERROR - FATAL ERROR: Unknown error in Assembler.  Please send the following
stack trace and this message to users@openejb.apache.org :
 org.apache.xbean.recipe.ConstructionException: Error calling instance
factory method: public org.apache.openejb.core.stateful.StatefulContainer
org.apache.openejb.core.stateful.StatefulContainerFactory.create() throws
java.lang.Exception
    at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:307)
    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.createContainer(Assembler.java:1000)
    at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:362)
    at
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:280)
    at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:125)
    at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:60)
    at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)
    at org.apache.openejb.OpenEJB.init(OpenEJB.java:250)
    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:616)
    at
org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
    at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)
    at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)
    at
org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:42)
    at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
    at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305)
    at javax.naming.InitialContext.init(InitialContext.java:240)
    at javax.naming.InitialContext.<init>(InitialContext.java:214)
    at
com.capitalone.logging.dao.HibernateEventLogDAOImplTest.setUpBeforeClass(HibernateEventLogDAOImplTest.java:49)
    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:616)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
    at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.apache.xbean.recipe.ConstructionException: Unable to convert
property value from java.lang.String to java.lang.Class<? extends
org.apache.openejb.core.stateful.PassivationStrategy> for injection public
synchronized void
org.apache.openejb.core.stateful.SimpleCache.setPassivator(java.lang.Class)
throws java.lang.Exception
    at
org.apache.xbean.recipe.ObjectRecipe.setProperty(ObjectRecipe.java:503)
    at
org.apache.xbean.recipe.ObjectRecipe.setProperties(ObjectRecipe.java:371)
    at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:286)
    at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
    at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
    at
org.apache.openejb.core.stateful.StatefulContainerFactory.buildCache(StatefulContainerFactory.java:120)
    at
org.apache.openejb.core.stateful.StatefulContainerFactory.create(StatefulContainerFactory.java:88)
    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:616)
    at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:298)
    ... 39 more
Caused by: org.apache.xbean.propertyeditor.PropertyEditorException: Unable
to resolve class
    at
org.apache.xbean.propertyeditor.ClassEditor.toObjectImpl(ClassEditor.java:43)
    at
org.apache.xbean.propertyeditor.AbstractConverter.toObject(AbstractConverter.java:80)
    at
org.apache.xbean.propertyeditor.PropertyEditors.getValue(PropertyEditors.java:284)
    at org.apache.xbean.recipe.RecipeHelper.convert(RecipeHelper.java:172)
    at
org.apache.xbean.recipe.ObjectRecipe.setProperty(ObjectRecipe.java:497)
    ... 50 more
Caused by: java.lang.ClassNotFoundException:
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at
org.apache.xbean.propertyeditor.ClassEditor.toObjectImpl(ClassEditor.java:40)
    ... 54 more

FATAL - OpenEJB has encountered a fatal error and cannot be started:
Assembler failed to build the container system.
org.apache.openejb.OpenEJBException:
org.apache.xbean.recipe.ConstructionException: Error calling instance
factory method: public org.apache.openejb.core.stateful.StatefulContainer
org.apache.openejb.core.stateful.StatefulContainerFactory.create() throws
java.lang.Exception: Error calling instance factory method: public
org.apache.openejb.core.stateful.StatefulContainer
org.apache.openejb.core.stateful.StatefulContainerFactory.create() throws
java.lang.Exception
    at
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:293)
    at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:125)
    at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:60)
    at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)
    at org.apache.openejb.OpenEJB.init(OpenEJB.java:250)
    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:616)
    at
org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
    at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)
    at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)
    at
org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:42)
    at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
    at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305)
    at javax.naming.InitialContext.init(InitialContext.java:240)
    at javax.naming.InitialContext.<init>(InitialContext.java:214)
    at
com.capitalone.logging.dao.HibernateEventLogDAOImplTest.setUpBeforeClass(HibernateEventLogDAOImplTest.java:49)
    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:616)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
    at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.apache.xbean.recipe.ConstructionException: Error calling
instance factory method: public
org.apache.openejb.core.stateful.StatefulContainer
org.apache.openejb.core.stateful.StatefulContainerFactory.create() throws
java.lang.Exception
    at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:307)
    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.createContainer(Assembler.java:1000)
    at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:362)
    at
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:280)
    ... 33 more
Caused by: org.apache.xbean.recipe.ConstructionException: Unable to convert
property value from java.lang.String to java.lang.Class<? extends
org.apache.openejb.core.stateful.PassivationStrategy> for injection public
synchronized void
org.apache.openejb.core.stateful.SimpleCache.setPassivator(java.lang.Class)
throws java.lang.Exception
    at
org.apache.xbean.recipe.ObjectRecipe.setProperty(ObjectRecipe.java:503)
    at
org.apache.xbean.recipe.ObjectRecipe.setProperties(ObjectRecipe.java:371)
    at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:286)
    at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
    at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
    at
org.apache.openejb.core.stateful.StatefulContainerFactory.buildCache(StatefulContainerFactory.java:120)
    at
org.apache.openejb.core.stateful.StatefulContainerFactory.create(StatefulContainerFactory.java:88)
    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:616)
    at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:298)
    ... 39 more
Caused by: org.apache.xbean.propertyeditor.PropertyEditorException: Unable
to resolve class
    at
org.apache.xbean.propertyeditor.ClassEditor.toObjectImpl(ClassEditor.java:43)
    at
org.apache.xbean.propertyeditor.AbstractConverter.toObject(AbstractConverter.java:80)
    at
org.apache.xbean.propertyeditor.PropertyEditors.getValue(PropertyEditors.java:284)
    at org.apache.xbean.recipe.RecipeHelper.convert(RecipeHelper.java:172)
    at
org.apache.xbean.recipe.ObjectRecipe.setProperty(ObjectRecipe.java:497)
    ... 50 more
Caused by: java.lang.ClassNotFoundException:
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at
org.apache.xbean.propertyeditor.ClassEditor.toObjectImpl(ClassEditor.java:40)
    ... 54 more
ERROR - org.apache.openejb.OpenEJBException:
org.apache.xbean.recipe.ConstructionException: Error calling instance
factory method: public org.apache.openejb.core.stateful.StatefulContainer
org.apache.openejb.core.stateful.StatefulContainerFactory.create() throws
java.lang.Exception: Error calling instance factory method: public
org.apache.openejb.core.stateful.StatefulContainer
org.apache.openejb.core.stateful.StatefulContainerFactory.create() throws
java.lang.Exception



Thanks,
Alok Shukla
Hyderabad, AP
Ph:040-27714329
Mo:09948552329

The best way to find yourself is to lose yourself in the service of others

Re: Getting An error while starting embedded OpenEJB 3.1.4

Posted by Jacek Laskowski <ja...@japila.pl>.
On Thu, Jan 13, 2011 at 9:46 PM, Jean-Louis MONTEIRO
<je...@atosorigin.com> wrote:

> Can you give it a try saving...

I believe you meant removing not saving, didn't you?

Jacek

-- 
Jacek Laskowski
Java EE, functional languages and IBM WebSphere - http://blog.japila.pl

Re: Getting An error while starting embedded OpenEJB 3.1.4

Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Hi,

Looks like you are using an old openejb.xml with a newer openejb release.
Can you give it a try saving all openejb stuff in conf/ directory and start
the server again. OpenEJB will create a new openejb.xml file.

An you will be able to compare Containers configuration and update your
configuration.

Otherwise, you can upload your openejb.xml file so we can help you fixing
the issue.

Hope it helps.
Jean-Louis
-- 
View this message in context: http://openejb.979440.n4.nabble.com/Getting-An-error-while-starting-embedded-OpenEJB-3-1-4-tp3216420p3216640.html
Sent from the OpenEJB User mailing list archive at Nabble.com.