0 Replies Latest reply on Dec 15, 2008 9:37 AM by U N

    Stupid permission problem

    U N Newbie

      Got the following message from the server.log when I try to reach a EJB2.x from a sevlet:


      SecurityException in method: public abstract com.xxx.XXXHome.create() throws java.rmi.RemoteException,javax.ejb.CreateException:
      java.lang.SecurityException: Insufficient method permissions, principal=null, ejbName=XXXBean, method=create, interface=HOME, requiredRoles=[USER, SYSTEM], pri
      ncipalRoles=[]
      at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:258)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:120)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
      at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)
      at org.jboss.ejb.Container.invoke(Container.java:894)
      at sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)


      Help is very appreciated, merry Christmas!