Hibernate version: 3.2.0
I
suddenly can't read any entities! I get the following error. What is it? Why does it happen? What do I need to do. This is just a mystery. It just started happening. I'm not using EJBs, so what's this
EJBMethodPermission?
Code:
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)