0 Replies Latest reply on Aug 24, 2006 6:12 PM by William E. Sollers III

    jbpmContext not found

    William E. Sollers III Newbie

      I have 2 datasources 1 for application use that works fine, can do CRUD ops etc... The other I was going to use to run jbpm in hsqldb. My basic problem is that the jbpContext cannot be found:

      2006-08-24 17:45:18,326 DEBUG [org.jboss.seam.Component] seam component not found: jbpmContext

      After that the null that is jbpmContext just blows off everytime I try to do a pageflow / process...

      Need some help / pointers here. I cannot seem to get jbpm configured for anything. Here is my jbpm.cfg.xml (c&p reuse from dvd store):


      <jbpm-configuration>

      <jbpm-context>











      </jbpm-context>

      </jbpm-configuration>

      I have the hibernate.cfg.xml from dvd store as well:

      <?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>

      false
      java:/jbpmDatasource
      org.hibernate.transaction.JTATransactionFactory
      org.hibernate.transaction.JBossTransactionManagerLookup
      org.hibernate.cache.HashtableCacheProvider
      create-drop
      <!--property name="transaction.flush_before_completion">true</property-->

      <!-- ############################################ -->
      <!-- # mapping files with external dependencies # -->
      <!-- ############################################ -->

      <!-- following mapping file has a dependendy on -->
      <!-- 'bsh-{version}.jar'. -->
      <!-- uncomment this if you don't have bsh on your -->
      <!-- classpath. you won't be able to use the -->
      <!-- script element in process definition files -->
      <!--

      -->

      <!-- following mapping files have a dependendy on -->
      <!-- 'jbpm-identity-{version}.jar', mapping files -->
      <!-- of the pluggable jbpm identity component. -->
      <!-- comment out the following 3 lines if you don't-->
      <!-- want to use the default jBPM identity mgmgt -->
      <!-- component -->

      <!--



      -->

      <!-- ###################### -->
      <!-- # jbpm mapping files # -->
      <!-- ###################### -->

      <!-- hql queries and type defs -->


      <!-- graph.def mapping files -->









      <!-- graph.node mapping files -->









      <!-- context.def mapping files -->



      <!-- taskmgmt.def mapping files -->





      <!-- module.def mapping files -->


      <!-- bytes mapping files -->


      <!-- file.def mapping files -->


      <!-- scheduler.def mapping files -->



      <!-- graph.exe mapping files -->





      <!-- module.exe mapping files -->


      <!-- context.exe mapping files -->












      <!-- msg.db mapping files -->







      <!-- taskmgmt.exe mapping files -->





      <!-- scheduler.exe mapping files -->


      <!-- logging mapping files -->






























      </session-factory>
      </hibernate-configuration>

      here is the jbpm-ds.xml

      <?xml version="1.0" encoding="UTF-8"?>


      <local-tx-datasource>
      <jndi-name>jbpmDatasource</jndi-name>
      <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}jbpm</connection-url>
      <connection-url>jdbc:hsqldb:mem</connection-url>
      <driver-class>org.hsqldb.jdbcDriver</driver-class>
      <user-name>sa</user-name>

      </local-tx-datasource>


      jbpm
      true



      jbpm is configured in the components.xml:


      launchbatch.jpdl.xml todo.jpdl.xml


      Packaging is in EAR format with the class path attribute in the META-INF/MANIFEST.MF of the war :
      Class-Path: jboss-seam.jar jbpm-3.1.1.jar


      I see hibernate find all of my entities in their jars and map them but I never see hibernate find the hbm's for jbpm in its jar.

      Anyone have an idea of what am I doing wrong? Or where to even start looking?