2 Replies Latest reply on Jun 22, 2007 4:17 AM by Nigel White

    Security Exception: Denied: EJBMethodPermission

    Nigel White Newbie

      This just started happening after I upgraded to JBoss 4.2.0

      It's completely broken my app.

      10:11:41,204 ERROR [executehql_jsp]] Servlet.service() for servlet org.apache.jsp.manager.executehql_jsp threw exception
      java.lang.SecurityException: Denied: (javax.security.jacc.EJBMethodPermission com.aspicio.entity.base.Person read)[*:read()], caller
      =Subject:
       Principal: Ultimate Logistics/ultimate/nigelw
       Principal: CallerPrincipal(members:Ultimate Logistics/ultimate/nigelw)
       Principal: Roles(members:User)
      
       at org.hibernate.secure.JACCPermissions.checkPermission(JACCPermissions.java:49)
       at org.hibernate.secure.JACCPreLoadEventListener.onPreLoad(JACCPreLoadEventListener.java:30)
       at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:125)
       at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:854)
       at org.hibernate.loader.Loader.doQuery(Loader.java:729)
       at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
       at org.hibernate.loader.Loader.doList(Loader.java:2220)
       at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
       at org.hibernate.loader.Loader.list(Loader.java:2099)
       at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
       at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
       at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
       at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
       at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
       at org.apache.jsp.manager.executehql_jsp._jspService(executehql_jsp.java:69)