3 Replies Latest reply on May 2, 2006 8:00 AM by Vishrut Arya

    Error related to hibernate.queries.hbm.xml,Issue with deploy

    Vishrut Arya Newbie

      Hi,

      While migrating from 3.0 to 3.1, I'm trying to deploy a Procesdefinition.xml, This XML is valid against the 3.1 Schema, It gives me an error saying :

      org.hibernate.HibernateException: Errors in named queries: SchedulerSession.deleteTimersForProcessInstance, SchedulerSession.suspendTimersForToken, MessagingSession.suspendMessagesForToken, SchedulerSession.resumeTimersForToken, MessagingSession.resumeMessagesForToken
      at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:338)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154)
      at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:90)
      at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:74)
      at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:78)
      at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:216)
      at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:427)
      at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:166)
      at gov.cdc.pems.jbpm.process.ScanImportMacroProcess.storeProcessDefinition(ScanImportMacroProcess.java:39)
      at gov.cdc.pems.jbpm.process.ScanImportMacroProcess.main(ScanImportMacroProcess.java:26)


      The code which I use is :

      JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
      ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("ProcessDefinition.xml");
      jbpmContext.deployProcessDefinition(processDefinition);

      I have created the new SQL DB, and I'm using same jar files(for JBOSS and Hibernate, which come with the starter kit )

      Can anyone help me resolve this?

      Thanks
      Vishrut