3 Replies Latest reply on Jul 4, 2006 7:38 AM by Vincenzo Segreto

    JBoss UserPortlet, ThemePortlet and WeatherPortlet

    Vincenzo Segreto Newbie

      I would insert this 3 portlet in my application directly from xml source, without using Admin Manager, so I have already ready my portal application simply copying my .war file.

        • 1. Re: JBoss UserPortlet, ThemePortlet and WeatherPortlet
          Vincenzo Segreto Newbie

          I resolved.
          Simply add windows and ref to the instances in *-object.xml file.

          • 2. Re: JBoss UserPortlet, ThemePortlet and WeatherPortlet
            Vincenzo Segreto Newbie

            I've a problem, If I try to change portal theme from my portal application I get a 500 error, how can I fix it?


            2006-07-04 13:33:25,562 ERROR [org.jboss.portal.core.portlet.theme.ThemeSelectorPortlet] The portlet threw an exception
            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:541)
            at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObject(PersistentPortalObjectContainer.java:221)
            at sun.reflect.GeneratedMethodAccessor205.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:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy117.getObject(Unknown Source)
            at org.jboss.portal.core.portlet.theme.ThemeSelectorPortlet.setPortalProperty(ThemeSelectorPortlet.java:171)
            at org.jboss.portal.core.portlet.theme.ThemeSelectorPortlet.setPortalTheme(ThemeSelectorPortlet.java:157)
            at org.jboss.portal.core.portlet.theme.ThemeSelectorPortlet.processAction(ThemeSelectorPortlet.java:147)
            at org.jboss.portlet.JBossPortlet.processAction(JBossPortlet.java:379)
            at org.jboss.portal.portlet.container.PortletContainer.invokeAction(PortletContainer.java:536)
            at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:477)

            ...

            2006-07-04 13:33:25,578 ERROR [org.jboss.portal.core.command.InvokeWindowActionCommand] An portlet exception occured in portlet ThemeSelectorPortletInstance
            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:541)
            at org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObject(PersistentPortalObjectContainer.java:221)
            at sun.reflect.GeneratedMethodAccessor205.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:155)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
            at $Proxy117.getObject(Unknown Source)
            at org.jboss.portal.core.portlet.theme.ThemeSelectorPortlet.setPortalProperty(ThemeSelectorPortlet.java:171)
            at org.jboss.portal.core.portlet.theme.ThemeSelectorPortlet.setPortalTheme(ThemeSelectorPortlet.java:157)
            at org.jboss.portal.core.portlet.theme.ThemeSelectorPortlet.processAction(ThemeSelectorPortlet.java:147)
            at org.jboss.portlet.JBossPortlet.processAction(JBossPortlet.java:379)


            • 3. Re: JBoss UserPortlet, ThemePortlet and WeatherPortlet
              Vincenzo Segreto Newbie

              I'm using JBoss AS 4.0.4 GA + JBoss Portal 2.4 Beta1