2 Replies Latest reply on Jul 25, 2009 7:35 AM by Andries Inzé

    jbpm4-hibernate2-spring1.2 integration

    manish hotwani Newbie

      Is it possible to integrate jbpm4 with hibernate2 and spring 1.2. I tried integrating, but got the following errors when trying to instantiate the hibernate session factory.

      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/test-servlet.xml]: Initialization of bean failed; nested exception is net.sf.hibernate.MappingException: Could not interpret type: converter
      net.sf.hibernate.MappingException: Could not interpret type: converter
      at net.sf.hibernate.cfg.Binder.getTypeFromXML(Binder.java:934)
      at net.sf.hibernate.cfg.Binder.bindSimpleValue(Binder.java:435)
      at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1047)
      at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:362)
      at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)
      at net.sf.hibernate.cfg.Configuration.add(Configuration.java:253)
      at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:289)
      at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:457)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:341)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:186)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046)
      ...
      ...

      It seems that hibernate2 doesn't supports typedefs (that is used in jbpm.execution.hbm.xml to define user defined properties). Is there a workaround for this or switching to hibernate3 the only solution?