1 Reply Latest reply on Jun 2, 2010 4:50 AM by Darek B

    Seam + Jboss Portal + JBPM

    Mac McKeen Newbie

      I am working on building a demo application that use jBPM and Seam inside a jBoss Portal and I am having trouble in the configuration.


      My setup is as follows:





      • Jboss Portal Server 4.3 Enterprise (Which I think is equliviant to JBoss 4.2.3 and Portal 2.7.1)

      • JBPM 3.2.2 who’s jars are loaded in the server by default.

      • Seam 2.1.2

      • PortletBridge 1.0.0-CR2

      • Richfaces 3.3.0



      For the integration I am using these configuration files:


      components.xml


      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
                  xmlns:core="http://jboss.com/products/seam/core"
                  xmlns:persistence="http://jboss.com/products/seam/persistence"
                  xmlns:drools="http://jboss.com/products/seam/drools"
                  xmlns:bpm="http://jboss.com/products/seam/bpm"
                  xmlns:security="http://jboss.com/products/seam/security"
                  xmlns:mail="http://jboss.com/products/seam/mail"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation=
                      "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd 
                       http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd 
                       http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd
                       http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd
                       http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
                       http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd
                       http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd">
      
         <core:init debug="true" jndi-pattern="@jndiPattern@"/>
           
         <core:manager concurrent-request-timeout="500" 
                       conversation-timeout="120000" 
                       conversation-id-parameter="cid"
                       parent-conversation-id-parameter="pid"/>
          
         <persistence:managed-persistence-context name="entityManager"
                                           auto-create="true"
                                entity-manager-factory="#{testWarEntityManagerFactory}" />
      
         <persistence:entity-manager-factory name="testWarEntityManagerFactory" 
                            persistence-unit-name="testWar" />
         
         <drools:rule-base name="securityRules">
            <drools:rule-files><value>/security.drl</value></drools:rule-files>
         </drools:rule-base>
      
         <security:rule-based-permission-resolver security-rules="#{securityRules}"/> 
      
         <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
                                    
         <event type="org.jboss.seam.security.notLoggedIn">
            <action execute="#{redirect.captureCurrentView}"/>
         </event>
         <event type="org.jboss.seam.security.loginSuccessful">
            <action execute="#{redirect.returnToCapturedView}"/>
         </event>
         
         <mail:mail-session host="localhost" port="2525" username="test" password="test" />
              
         <!-- For use with jBPM pageflow or process management -->
         
         <bpm:jbpm>
            <bpm:process-definitions><value>VacationRequest/processdefinition.xml</value></bpm:process-definitions>
            <bpm:pageflow-definitions></bpm:pageflow-definitions>
         </bpm:jbpm>
      
            
      </components>




      persistence.xml




      <?xml version="1.0" encoding="UTF-8"?>
      <!-- Persistence deployment descriptor for dev profile -->
      <persistence xmlns="http://java.sun.com/xml/ns/persistence" 
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" 
                   version="1.0">
                   
         <persistence-unit name="testWar" transaction-type="JTA">
            <provider>org.hibernate.ejb.HibernatePersistence</provider>
            <jta-data-source>java:/testWarDatasource</jta-data-source>
            <properties>
               <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
               <property name="hibernate.hbm2ddl.auto" value="update"/>
               <property name="hibernate.show_sql" value="true"/>
               <property name="hibernate.format_sql" value="true"/>
               <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
               
            </properties>
         </persistence-unit>
          
      </persistence>



      jbpm.cfg.xml




      <jbpm-configuration>
      
        <jbpm-context>
          <service name="persistence">
             <factory>
                <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
                   <field name="isTransactionEnabled"><false/></field>   
               </bean>
             </factory>
          </service>
          <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />  
        </jbpm-context>
      
      </jbpm-configuration>




      hibernate.cfg.xml




      <?xml version='1.0' encoding='utf-8'?>
      
      <!DOCTYPE hibernate-configuration PUBLIC
                "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
                "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
      
      <hibernate-configuration>
        <session-factory>
      
          <property name="show_sql">false</property>
          <property name="connection.datasource">java:/testWarDatasource</property>  
          <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property> 
          <property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property> 
          <property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>  
          <property name="hbm2ddl.auto">update</property>
          <property name="transaction.flush_before_completion">true</property>
          <property name="connection.release_mode">after_transaction</property>
          <property name="useTransactionAwareDataSource">false</property>
          
          <!-- ############################################ -->
          <!-- # mapping files                            # -->
          <!-- ############################################ -->
          ....
      
        </session-factory>
      </hibernate-configuration>



      I am able to load package and delpoy the application on the server but when I run:



      @CreateProcess(definition="VacationRequest")



      I get the following dump:




      15:50:10,781 ERROR [Services] problem closing service 'persistence'
      org.jbpm.persistence.JbpmPersistenceException: hibernate flush failed
           at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:237)
           at org.jbpm.svc.Services.close(Services.java:225)
           at org.jbpm.JbpmContext.close(JbpmContext.java:139)
           at org.jboss.seam.bpm.ManagedJbpmContext.closeContext(ManagedJbpmContext.java:155)
           at org.jboss.seam.bpm.ManagedJbpmContext.destroy(ManagedJbpmContext.java:148)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2171)
           at org.jboss.seam.Component.callDestroyMethod(Component.java:2102)
           at org.jboss.seam.Component.destroy(Component.java:1396)
           at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:251)
           at org.jboss.seam.contexts.Contexts.flushAndDestroyContexts(Contexts.java:394)
           at org.jboss.seam.contexts.FacesLifecycle.endRequest(FacesLifecycle.java:130)
           at org.jboss.seam.jsf.SeamPhaseListener.afterRenderResponse(SeamPhaseListener.java:515)
           at org.jboss.seam.jsf.SeamPhaseListenerWrapper.afterPortletPhase(SeamPhaseListenerWrapper.java:128)
           at org.jboss.seam.jsf.SeamPhaseListenerWrapper.afterPhase(SeamPhaseListenerWrapper.java:84)
           at org.jboss.portletbridge.lifecycle.LifecyclePhase.execute(LifecyclePhase.java:87)
           at org.jboss.portletbridge.lifecycle.PortletLifecycle.render(PortletLifecycle.java:155)
           at org.jboss.portletbridge.AjaxPortletBridge.render(AjaxPortletBridge.java:840)
           at org.jboss.portletbridge.AjaxPortletBridge.renderResponse(AjaxPortletBridge.java:665)
           at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:501)
           at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:351)
           at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:312)
           at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
           at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:293)
           at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
           at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:568)
           at org.jboss.portal.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)
           at org.jboss.portal.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80)
           at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:505)
           at org.jboss.portal.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:97)
           at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N6922078035659651697.invokeNext(TransactionInterceptor$invokeNotSupported_N6922078035659651697.java)
           at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
           at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:112)
           at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N6922078035659651697.invokeNext(TransactionInterceptor$invokeNotSupported_N6922078035659651697.java)
           at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
           at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:102)
           at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N6922078035659651697.invokeNext(TransactionInterceptor$invokeNotSupported_N6922078035659651697.java)
           at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java)
           at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:49)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.portlet.aspects.portlet.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:196)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.portlet.aspects.portlet.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.core.aspects.portlet.SignOutInterceptor.invoke(SignOutInterceptor.java:43)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.core.aspects.portlet.AjaxInterceptor.invoke(AjaxInterceptor.java:49)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.core.aspects.portlet.BackwardCompatibilityInterceptor.invoke(BackwardCompatibilityInterceptor.java:46)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.portlet.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchronizationInterceptor.java:82)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.portlet.aspects.portlet.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:48)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)
           at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)
           at org.jboss.portal.web.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:74)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
           at org.jboss.portal.web.command.CommandServlet.doGet(CommandServlet.java:130)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
           at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
           at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
           at org.jboss.portal.web.command.CommandServlet.include(CommandServlet.java:79)
           at org.jboss.portal.web.command.CommandDispatcher.include(CommandDispatcher.java:50)
           at org.jboss.portal.web.jboss.JBossWebContext.include(JBossWebContext.java:66)
           at org.jboss.portal.web.impl.DefaultServletContainer.include(DefaultServletContainer.java:190)
           at org.jboss.portal.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)
           at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.portlet.aspects.portlet.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.portlet.aspects.portlet.ValveInterceptor.invoke(ValveInterceptor.java:75)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:116)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:221)
           at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker.org$jboss$portal$core$impl$portlet$state$ProducerPortletInvoker$invoke$aop(ProducerPortletInvoker.java:53)
           at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext(ProducerPortletInvoker$invoke_N8654503705355129869.java)
           at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
           at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
           at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext(ProducerPortletInvoker$invoke_N8654503705355129869.java)
           at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
           at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
           at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext(ProducerPortletInvoker$invoke_N8654503705355129869.java)
           at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java)
           at org.jboss.portal.portlet.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:145)
           at org.jboss.portal.portlet.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:149)
           at org.jboss.portal.core.model.instance.InstanceInvoker.invoke(InstanceInvoker.java:42)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor.invoke(PortalSessionSynchronizationInterceptor.java:93)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.core.model.instance.InstanceSecurityInterceptor.invoke(InstanceSecurityInterceptor.java:93)
           at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
           at org.jboss.portal.portlet.aspects.portlet.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:162)
           at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl.org$jboss$portal$core$impl$model$instance$InstanceContainerImpl$invoke$aop(InstanceContainerImpl.java:408)
           at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl$invoke_N8654503705355129869.invokeNext(InstanceContainerImpl$invoke_N8654503705355129869.java)
           at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
           at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
           at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl$invoke_N8654503705355129869.invokeNext(InstanceContainerImpl$invoke_N8654503705355129869.java)
           at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
           at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
           at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl$invoke_N8654503705355129869.invokeNext(InstanceContainerImpl$invoke_N8654503705355129869.java)
           at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl.invoke(InstanceContainerImpl.java)
           at org.jboss.portal.core.impl.model.instance.AbstractInstance.invoke(AbstractInstance.java:231)
           at org.jboss.portal.core.impl.model.content.InternalContentProvider.renderWindow(InternalContentProvider.java:345)
           at org.jboss.portal.core.model.portal.command.render.RenderWindowCommand.execute(RenderWindowCommand.java:100)
           at org.jboss.portal.core.controller.ControllerCommand$1.invoke(ControllerCommand.java:68)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
           at org.jboss.portal.core.aspects.controller.node.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:124)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:134)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:78)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:81)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.controller.BackwardCompatibilityInterceptor.invoke(BackwardCompatibilityInterceptor.java:48)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.controller.ControlInterceptor.invoke(ControlInterceptor.java:56)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.controller.NavigationalStateInterceptor.invoke(NavigationalStateInterceptor.java:42)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.controller.ajax.AjaxInterceptor.invoke(AjaxInterceptor.java:55)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.controller.ResourceAcquisitionInterceptor.invoke(ResourceAcquisitionInterceptor.java:50)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
           at org.jboss.portal.core.controller.ControllerContext.execute(ControllerContext.java:134)
           at org.jboss.portal.core.model.portal.command.render.RenderWindowCommand.render(RenderWindowCommand.java:80)
           at org.jboss.portal.core.model.portal.command.render.RenderPageCommand.execute(RenderPageCommand.java:222)
           at org.jboss.portal.core.controller.ControllerCommand$1.invoke(ControllerCommand.java:68)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
           at org.jboss.portal.core.aspects.controller.node.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:124)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:134)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:78)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:81)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.controller.BackwardCompatibilityInterceptor.invoke(BackwardCompatibilityInterceptor.java:48)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.controller.ControlInterceptor.invoke(ControlInterceptor.java:56)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.controller.NavigationalStateInterceptor.invoke(NavigationalStateInterceptor.java:42)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.controller.ajax.AjaxInterceptor.invoke(AjaxInterceptor.java:55)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.controller.ResourceAcquisitionInterceptor.invoke(ResourceAcquisitionInterceptor.java:50)
           at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
           at org.jboss.portal.core.controller.ControllerContext.execute(ControllerContext.java:134)
           at org.jboss.portal.core.model.portal.PortalObjectResponseHandler.processCommandResponse(PortalObjectResponseHandler.java:81)
           at org.jboss.portal.core.controller.classic.ClassicResponseHandler.processHandlers(ClassicResponseHandler.java:79)
           at org.jboss.portal.core.controller.classic.ClassicResponseHandler.processCommandResponse(ClassicResponseHandler.java:53)
           at org.jboss.portal.core.controller.handler.ResponseHandlerSelector.processCommandResponse(ResponseHandlerSelector.java:70)
           at org.jboss.portal.core.controller.Controller.processCommandResponse(Controller.java:315)
           at org.jboss.portal.core.controller.Controller.processCommand(Controller.java:303)
           at org.jboss.portal.core.controller.Controller.handle(Controller.java:261)
           at org.jboss.portal.server.RequestControllerDispatcher.invoke(RequestControllerDispatcher.java:51)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
           at org.jboss.portal.core.cms.aspect.IdentityBindingInterceptor.invoke(IdentityBindingInterceptor.java:47)
           at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:68)
           at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.server.PortalContextPathInterceptor.invoke(PortalContextPathInterceptor.java:45)
           at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:96)
           at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:196)
           at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.server.aspects.server.SignOutInterceptor.invoke(SignOutInterceptor.java:98)
           at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.impl.api.user.UserEventBridgeTriggerInterceptor.invoke(UserEventBridgeTriggerInterceptor.java:65)
           at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.server.IdentityCacheInterceptor.invoke(IdentityCacheInterceptor.java:68)
           at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
           at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
           at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
           at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:253)
           at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
           at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
           at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
           at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
           at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
           at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.server.aspects.LockInterceptor$InternalLock.invoke(LockInterceptor.java:69)
           at org.jboss.portal.server.aspects.LockInterceptor.invoke(LockInterceptor.java:130)
           at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
           at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
           at org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:252)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
           at java.lang.Thread.run(Thread.java:595)
      Caused by: org.hibernate.SessionException: Session is closed!
           at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)
           at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:993)
           at org.jbpm.persistence.db.DbPersistenceService.flushSession(DbPersistenceService.java:272)
           at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:232)



      Any help would be greatly appreciated...