1 Reply Latest reply on Jul 2, 2011 4:15 PM by lvdberg

    JBPM and SEAM problem

    kirshsam
      Hi, I am having trouble initializing JBPM with my sample Seam app.

      WARN  [Jbpm] could not set JNDI properties for jBPM persistence: An AnnotationConfiguration instance is required to use <mapping class="com.seesavings.entity.User"/>||

      Caused by: org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="com.seesavings.entity.User"/>

      (components.xml)
          <bpm:jbpm>
              <bpm:process-definitions>
                  <value>postingProcess.jpdl.xml</value>
              </bpm:process-definitions>
          </bpm:jbpm> 
      -----------------------------------------------------
      (hibernate.cfg.xml)
          <session-factory name="java:/seeSavingsDatabase">
              <property name="show_sql">false</property>
              <property name="connection.datasource">java:/SeeSavingsDS</property>
              <property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
              <property name="transaction.flush_before_completion">true</property>
              <property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
             
                      <mapping class="com.seesavings.entity.User"/>
              <mapping class="com.seesavings.entity.Userrole"/>
              <mapping class="com.seesavings.entity.Role"/>
              <mapping class="com.seesavings.entity.Category"/>
              <mapping class="com.seesavings.entity.Subcategory"/>
              <mapping class="com.seesavings.entity.Posting"/> 

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

                      <!-- hql queries and type defs -->
              <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml" />
             
          </session-factory>
      ...
      ...
      Please let me know when other info I should provide.  Thanks ahead of time.
        • 1. Re: JBPM and SEAM problem
          lvdberg

          Hi,


          It seems that you want JPA annotated classes to the JBPM configuration which can't be done (with JBPM version 3) , because JBPM uses a traditional entity mapping file and is not able to add annotated classes, unless you add these manually (in code).


          If you make you clear what you want to achieve, maybe we can help you with tha.


          Leo