tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From exabrial <exabrial+open...@gmail.com>
Subject Re: Property javax.security.jacc.PolicyConfigurationFactory.provider not set
Date Sun, 01 Jul 2012 22:43:00 GMT
Ok I fixed at least part of the problem by changing the example to:

	<JndiProvider id="shoe" type="javax.naming.InitialContext">
		java.naming.provider.url = ejbd://localhost:3201
		java.naming.factory.initial =
org.apache.openejb.client.RemoteInitialContextFactory
	</JndiProvider>

I updated the wiki accordingly (No need for a beer this time, I'll grab one
out of my own fridge)

Stateless EJBs now work, but I have a different error:

INFO: Creating Container(id=My Stateful Container)
Jul 01, 2012 5:39:22 PM org.apache.openejb.util.OpenEJBErrorHandler
handleUnknownError
SEVERE: 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:1391)
	at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:405)
	at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:325)
	at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:144)
	at org.apache.openejb.OpenEJB.init(OpenEJB.java:290)
	at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:209)
	at org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:127)
	at
org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:104)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:624)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:649)
	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:601)
	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)
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:135)
	at
org.apache.openejb.core.stateful.StatefulContainerFactory.create(StatefulContainerFactory.java:102)
	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:601)
	at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:298)
	... 23 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:86)
	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)
	... 34 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)
	... 38 more

Jul 01, 2012 5:39:22 PM org.apache.openejb.OpenEJB$Instance <init>
SEVERE: 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:338)
	at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:144)
	at org.apache.openejb.OpenEJB.init(OpenEJB.java:290)
	at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:209)
	at org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:127)
	at
org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:104)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:624)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:649)
	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:601)
	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)
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:1391)
	at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:405)
	at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:325)
	... 17 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:135)
	at
org.apache.openejb.core.stateful.StatefulContainerFactory.create(StatefulContainerFactory.java:102)
	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:601)
	at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:298)
	... 23 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:86)
	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)
	... 34 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)
	... 38 more

Jul 01, 2012 5:39:22 PM org.apache.tomee.catalina.ServerListener
lifecycleEvent
SEVERE: TomEE Listener can't start OpenEJB
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:338)
	at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:144)
	at org.apache.openejb.OpenEJB.init(OpenEJB.java:290)
	at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:209)
	at org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:127)
	at
org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:104)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:624)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:649)
	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:601)
	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)
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:1391)
	at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:405)
	at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:325)
	... 17 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:135)
	at
org.apache.openejb.core.stateful.StatefulContainerFactory.create(StatefulContainerFactory.java:102)
	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:601)
	at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:298)
	... 23 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:86)
	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)
	... 34 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)
	... 38 more

Jul 01, 2012 5:39:22 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1651 ms
Jul 01, 2012 5:39:22 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Jul 01, 2012 5:39:22 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.27

--
View this message in context: http://openejb.979440.n4.nabble.com/Property-javax-security-jacc-PolicyConfigurationFactory-provider-not-set-tp4655930p4655938.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message