[jboss-dev-forums] [Management Development] New message: "Re: Remote Access to Profile Service"
Ramesh Reddy
do-not-reply at jboss.com
Thu Jan 28 11:39:23 EST 2010
JBoss development,
A new message was posted in the thread "Remote Access to Profile Service":
http://community.jboss.org/message/522813#522813
Author : Ramesh Reddy
Profile : http://community.jboss.org/people/rareddy
Message:
--------------------------------------------------------------
The above in JBoss 5.1.0 GA does not work, as is. There were couple issues.
The property name should be "proxyInterceptors" instead of "serverProxyInterceptors", and this property fragment needs to be added as additional property under "ProfileServiceProxyFactory" rather then replacing the whole bean fragment. Then when I started the the AS, I am getting the following errors
Caused by: java.io.NotSerializableException: org.jboss.aspects.security.AuthenticationInterceptor
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.ArrayList.writeObject(ArrayList.java:570)
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:597)
So, then I thought, I will extend the following classes and add "Serializable" interface to them and replace them in the XML fragment
org.jboss.aspects.security.AuthenticationInterceptor
org.jboss.aspects.security.RoleBasedAuthorizationInterceptor
Then I found that the constructor for "RoleBasedAuthorizationInterceptor" with signature
public RoleBasedAuthorizationInterceptor(AuthenticationManager authManager, AuthorizationManager authzManager)
{
this.authenticationManager = authManager;
this.authorizationManager = authzManager;
}
was not added until version 1.0.1 of "jboss-security-aspects.jar" file, but the version of jar bundled with JBoss AS 5.1.0 is 1.0.0 GA. This version has a constructor
public RoleBasedAuthorizationInterceptor(AuthenticationManager manager, RealmMapping realmMapping)
{
this.securityManager = manager;
this.realmMapping = realmMapping;
}
Here I was not sure what I can pass as "RealmMapping" object, do you have any suggestions?
Thanks.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522813#522813
More information about the jboss-dev-forums
mailing list