[jboss-user] [EJB 3.0] - RolesAllowed causes exception on client with JBoss5

draganj do-not-reply at jboss.com
Wed Jan 28 07:47:11 EST 2009


I have a problem with JBoss5,EJB3 and security. If I add @RolesAllowed attribute to stateless bean and run client I get following exception:

  | Exception in thread "main" javax.ejb.EJBAccessException: Caller unauthorized
  | 	at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:199)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
  | 	at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
There is no exception on server side.

Note that if I use the same code and only change libraries and SecurityDomain class (other package) everything works OK on JBoss 4.2.3.

Any ideas?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205218#4205218

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205218

More information about the jboss-user mailing list