3 Replies Latest reply on Jan 23, 2006 3:02 PM by conkan

    Portal 2.2.1RC1 and ImageGallery

    steinarrune

      I have tried deploying the ImageGallery (Portal Swaps) on the bundled 2.2.1RC1 portal. Both with HyperSOnic and Mysql.

      It seems to be creating the CMS sources for samples images during startup, so the database/connection are OK.

      The problem is when I create an instance of the ImageGallery and go to view the default page with the instance. I get an JTA error. See stack trace below. Any suggestions on what I could try (Hibernate config etc)?



      s_4_0_3_SP1 date=200510231054)] Started in 1m:36s:178ms
      00:39:57,388 ERROR [ImageGalleryModuleImpl] Cannot find imagecollections
      org.hibernate.HibernateException: Unable to locate current JTA transaction
      at org.hibernate.context.JTASessionContext.currentSession(JTASessionCont
      ext.java:61)
      at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactor
      yImpl.java:604)
      at org.jboss.portlet.imagegallery.impl.ImageGalleryModuleImpl.getSession
      (ImageGalleryModuleImpl.java:174)
      at org.jboss.portlet.imagegallery.impl.ImageGalleryModuleImpl.findImageC
      ollections(ImageGalleryModuleImpl.java:123)
      at org.jboss.portlet.imagegallery.ImageGalleryPortlet.doView(ImageGaller
      yPortlet.java:112)
      at org.jboss.portlet.JBossPortlet.doDispatch(JBossPortlet.java:230)
      at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:217)
      at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:360)
      at org.jboss.portal.portlet.PortletContainer.invokeRender(PortletContain
      er.java:512)
      at org.jboss.portal.portlet.PortletContainer.dispatch(PortletContainer.j
      ava:429)
      at org.jboss.portal.server.app.ComponentInvocation.dispatch(ComponentInv
      ocation.java:79)
      at org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.j
      ava:140)
      at org.jboss.portal.core.aspects.component.TransactionInterceptor.invoke
      (TransactionInterceptor.java:72)
      at org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInte
      rceptor.java:38)