Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
jbpm3.1.4 scheduler integration problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • jbpm3.1.4 scheduler integration problem

    I tried to integrate jbpm3.1.4 with spring,everything works fine until I try to make use of JbpmThreadsServlet and see the below msg:
    org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
    at org.springframework.orm.hibernate3.SpringSessionCo ntext.currentSession(SpringSessionContext.java:63)
    at org.hibernate.impl.SessionFactoryImpl.getCurrentSe ssion(SessionFactoryImpl.java:544)
    at org.jbpm.persistence.db.DbPersistenceService.getSe ssion(DbPersistenceService.java:85)
    at org.jbpm.persistence.db.DbPersistenceService.getSc hedulerSession(DbPersistenceService.java:261)
    at org.jbpm.JbpmContext.getSchedulerSession(JbpmConte xt.java:531)
    at org.jbpm.scheduler.impl.SchedulerThread.executeTim ers(SchedulerThread.java:104)
    at org.jbpm.scheduler.impl.SchedulerThread.run(Schedu lerThread.java:71)

    here goes part of the web.xml:
    <servlet>
    <servlet-name>JbpmThreadsServlet</servlet-name>
    <servlet-class>org.jbpm.web.JbpmThreadsServlet</servlet-class>

    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>JbpmThreadsServlet</servlet-name>
    <url-pattern>/scheduler</url-pattern>
    </servlet-mapping>


    and here goes jbpm.cfg.xml

    <jbpm-configuration>

    <!--
    The default configurations can be found in org/jbpm/default.jbpm.cfg.xml
    Those configurations can be overwritten by putting this file called
    jbpm.cfg.xml on the root of the classpath and put in the customized values.
    -->
    <jbpm-context>
    <!--<service name="persistence" factory="org.jbpm.persistence.db.DbPersistenceServ iceFactory" />-->
    <service name="persistence">
    <factory>
    <bean
    class="org.jbpm.persistence.db.DbPersistenceServic eFactory">
    <field name="isTransactionEnabled">
    <false />
    </field>
    <field name="isCurrentSessionEnabled">
    <true />
    </field>
    </bean>
    </factory>
    </service>

    <service name="message"
    factory="org.jbpm.msg.db.DbMessageServiceFactory" />
    <service name="scheduler"
    factory="org.jbpm.scheduler.db.DbSchedulerServiceF actory" />
    <service name="logging"
    factory="org.jbpm.logging.db.DbLoggingServiceFacto ry" />
    <service name="authentication"
    factory="org.jbpm.security.authentication.DefaultA uthenticationServiceFactory" />
    </jbpm-context>

    <!-- <string name="resource.hibernate.cfg.xml" value="hibernate.cfg.xml" /> -->

    <string name="resource.business.calendar"
    value="org/jbpm/calendar/jbpm.business.calendar.properties" />
    <string name="resource.default.modules"
    value="org/jbpm/graph/def/jbpm.default.modules.properties" />
    <string name="resource.converter"
    value="org/jbpm/db/hibernate/jbpm.converter.properties" />
    <string name="resource.action.types"
    value="org/jbpm/graph/action/action.types.xml" />
    <string name="resource.node.types"
    value="org/jbpm/graph/node/node.types.xml" />
    <string name="resource.parsers"
    value="org/jbpm/jpdl/par/jbpm.parsers.xml" />
    <string name="resource.varmapping"
    value="org/jbpm/context/exe/jbpm.varmapping.xml" />

    <long name="jbpm.msg.wait.timout" value="5000" singleton="true" />
    <int name="jbpm.byte.block.size" value="1024" singleton="true" />
    <string name="mail.smtp.host" value="localhost" />
    <bean name="jbpm.task.instance.factory"
    class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceF actoryImpl"
    singleton="true" />
    <bean name="jbpm.variable.resolver"
    class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true" />
    <bean name="jbpm.mail.address.resolver"
    class="org.jbpm.identity.mail.IdentityAddressResol ver"
    singleton="true" />

    </jbpm-configuration>

    I just cant figure out what's wrong and how to fix this problem.Anybody can help me? thanks in advance
Working...
X