1 Reply Latest reply on Oct 9, 2007 9:46 AM by speleomaniac

    PortalNode Childrens and HibernateException because of permi

    speleomaniac

      Hi everybody,

      I have an interesting problem, out from the referance guide I am looking to the example 10.8.3 'Link to other pages' and I try to implement this with JSF Portlet Bridge and JSF RI 1.2 (Jboss version).

      I am always hitting a permission error in hibernate level when I want to get the current portal node's parent's child's....

      My assumption is that it must be something to do, that I am working with JSF Bridge, I look to the catalog portlet source code to get some clues but it doesn't do anything different then I am doing.

      Only, it is based on JBossPortlet class and I have a feeling this class is doing some initialization work for the security. Naturally I can not use the same class with JSF bridge and this is the reason of my problems.

      Can somebody confirm this or somebody has a better idea.

      Thx in advance

      Exception look like something like this.

      13:33:29,818 ERROR [PortalPermissionCollection] Permission check against the repository failed
      org.hibernate.HibernateException: Unable to locate current JTA transaction
      at org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:61)
      at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:544)
      at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNode(PersistentPortalObjectC
      ontainer.java:242)
      at org.jboss.portal.core.impl.model.portal.AbstractPortalObjectContainer.getPermission(AbstractPortalObjectConta
      iner.java:166)
      at org.jboss.portal.core.model.portal.PortalObjectPermission.implies(PortalObjectPermission.java:227)
      at org.jboss.portal.security.PortalPermissionCollection.implies(PortalPermissionCollection.java:96)
      at java.security.Permissions.implies(Permissions.java:165)
      at org.jboss.security.jacc.ContextPolicy.implies(ContextPolicy.java:100)
      at org.jboss.security.jacc.DelegatingPolicy.implies(DelegatingPolicy.java:204)
      at org.jboss.portal.security.impl.jacc.JACCPortalAuthorizationManager.internalCheckPermission(JACCPortalAuthoriz
      ationManager.java:215)
      at org.jboss.portal.security.impl.jacc.JACCPortalAuthorizationManager.checkPermission(JACCPortalAuthorizationMan
      ager.java:233)
      at org.jboss.portal.security.impl.jacc.JACCPortalAuthorizationManager.checkPermission(JACCPortalAuthorizationMan
      ager.java:258)
      at org.jboss.portal.core.impl.api.node.PortalNodeImpl$NodeList.buildChildMap(PortalNodeImpl.java:372)
      at org.jboss.portal.core.impl.api.node.PortalNodeImpl$Siblings.createMap(PortalNodeImpl.java:423)
      at org.jboss.portal.core.impl.api.node.PortalNodeImpl$NodeList.getMap(PortalNodeImpl.java:336)
      at org.jboss.portal.core.impl.api.node.PortalNodeImpl$NodeList.getList(PortalNodeImpl.java:320)
      at org.jboss.portal.core.impl.api.node.PortalNodeImpl.getChildren(PortalNodeImpl.java:209)