[jboss-user] [EJB 3.0] - Re: @Service + @Managment + @SecurityDomain throws Authoriza

sappenin do-not-reply at jboss.com
Wed Jan 16 14:53:24 EST 2008


Thanks for your suggestion.  I should have added this into the initial thread.  I'm getting an Authorization exception because the prinicipal and role are null, but only if I specify a @SecurityDomain.

Here's the stack trace:


  | 
  | 2:48:11,650 ERROR [RoleBasedAuthorizationInterceptor] Insufficient permissions, principal=null, req
  | iredRoles=[system, admin], principalRoles=null
  | 2:48:11,651 DEBUG [RoleBasedAuthorizationInterceptor] Authorization failure
  | ava.lang.SecurityException: Insufficient permissions, principal=null, requiredRoles=[system, admin]
  |  principalRoles=null
  |        at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizatio
  | Interceptor.java:149)
  |        at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationIn
  | erceptor.java:108)
  |        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |        at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
  |        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |        at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:1
  | 6)
  |        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |        at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:309)
  |        at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:274)
  |        at org.jboss.ejb3.service.ServiceMBeanDelegate.invoke(ServiceMBeanDelegate.java:215)
  |        at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  |        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
  |        at $Proxy0.create(Unknown Source)
  | 
  | 
  | 

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

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



More information about the jboss-user mailing list