Problem with startup of server: NotSerializableException
kinderpe Sep 28, 2011 3:41 AMWhen I try and start up my server (JBoss SOA-P 5.1) with picketlink/box using the default profile (unaltered configuration), I get the following exception:
java.lang.RuntimeException: Error configuring property: policyRegistration for JNDIBasedSecurityRegistration
at org.jboss.kernel.plugins.dependency.ConfigureAction.dispatchSetProperty(ConfigureAction.java:112)
at org.jboss.kernel.plugins.dependency.ConfigureAction.setAttributes(ConfigureAction.java:85)
at org.jboss.kernel.plugins.dependency.ConfigureAction.installActionInternal(ConfigureAction.java:44)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
...
Caused by: java.lang.RuntimeException: javax.naming.CommunicationException [Root exception is java.io.NotSerializableException: org.jboss.security.xacml.core.JBossPDP]
at org.jboss.security.integration.JNDIBasedSecurityRegistration.setPolicyRegistration(JNDIBasedSecurityRegistration.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
...
Caused by: javax.naming.CommunicationException [Root exception is java.io.NotSerializableException: org.jboss.security.xacml.core.JBossPDP]
at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:602)
at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:540)
at javax.naming.InitialContext.rebind(InitialContext.java:408)
at org.jboss.security.integration.JNDIBasedSecurityRegistration.establishPolicyRegistration(JNDIBasedSecurityRegistration.java:107)
at org.jboss.security.integration.JNDIBasedSecurityRegistration.setPolicyRegistration(JNDIBasedSecurityRegistration.java:59)
... 62 more
Caused by: java.io.NotSerializableException: org.jboss.security.xacml.core.JBossPDP
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
...
Now, I have read on this forum that this problem is fixed with jboss-xacml 2.0.6, so I dropped the following files into the endorsed libs:
- jboss-sunxacml-2.0.6.Final.jar
- jboss-xacml-2.0.6.Final.jar
- picketbox-commons-1.0.0.CR1.jar
However, this gives me the following stacktrace, which I suspect is a symptom of the same problem, namely the JNDIBasedSecurityRegistration:
java.lang.RuntimeException: Error configuring property: policyRegistration for JNDIBasedSecurityRegistration
at org.jboss.kernel.plugins.dependency.ConfigureAction.dispatchSetProperty(ConfigureAction.java:112)
at org.jboss.kernel.plugins.dependency.ConfigureAction.setAttributes(ConfigureAction.java:85)
at org.jboss.kernel.plugins.dependency.ConfigureAction.installActionInternal(ConfigureAction.java:44)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
...
Caused by: java.lang.RuntimeException: javax.naming.CommunicationException [Root exception is java.io.NotSerializableException: org.jboss.security.xacml.core.JBossXACMLPolicy]
at org.jboss.security.integration.JNDIBasedSecurityRegistration.setPolicyRegistration(JNDIBasedSecurityRegistration.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
...
Caused by: javax.naming.CommunicationException [Root exception is java.io.NotSerializableException: org.jboss.security.xacml.core.JBossXACMLPolicy]
at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:602)
at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:540)
at javax.naming.InitialContext.rebind(InitialContext.java:408)
at org.jboss.security.integration.JNDIBasedSecurityRegistration.establishPolicyRegistration(JNDIBasedSecurityRegistration.java:107)
at org.jboss.security.integration.JNDIBasedSecurityRegistration.setPolicyRegistration(JNDIBasedSecurityRegistration.java:59)
... 62 more
Caused by: java.io.NotSerializableException: org.jboss.security.xacml.core.JBossXACMLPolicy
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.HashSet.writeObject(HashSet.java:267)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
...
Can anyone point me into the right direction to tackle my problem?
I have attached the config files of my security components (which are all pretty basic).
-
voi-xacml-policy.xml 759 bytes
-
jbossxacml-config.xml 394 bytes
-
jboss.xml 193 bytes
-
ejbxacml-jboss-beans.xml 760 bytes
-
ejb-jar.xml 313 bytes