3 Replies Latest reply on Feb 6, 2006 4:15 AM by koen.aers

    Can not deploy process

    mehmetbilgi

      when i try to deploy a process using deployprocess ant task it gives me this error:

      [deployprocess] 16:34:43,906 ERROR ErrorCounter : *** ERROR: Unknown entity: org.jbpm.msg.Message
      [deployprocess] [cause=org.hibernate.MappingException: Unknown entity: org.jbpm.msg.Message]
      [deployprocess] 16:34:43,921 DEBUG JbpmContext : closing JbpmContext
      [deployprocess] 16:34:43,921 DEBUG Services : closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@1d709a5
      [deployprocess] java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      [deployprocess] at java.util.ArrayList.RangeCheck(Unknown Source)
      [deployprocess] at java.util.ArrayList.get(Unknown Source)
      [deployprocess] at org.hibernate.hql.ast.HqlSqlWalker.postProcessUpdate(HqlSqlWalker.java:390)
      [deployprocess] at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:164)
      [deployprocess] at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:189)
      [deployprocess] at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:130)
      [deployprocess] at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
      [deployprocess] at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:427)
      [deployprocess] at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:388)
      [deployprocess] at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:291)
      [deployprocess] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)
      [deployprocess] at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:93)
      [deployprocess] at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:75)
      [deployprocess] at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:80)
      [deployprocess] at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:182)

      .............................

      what could be the reason/fix ? has anyone saw this error ? any help is extremely appreciated !

        • 1. Re: Can not deploy process
          tom.baeyens

          it looks like the hibernate configuration file was not found. (or that the message class was removed from the hibernate configuration file)

          what version are you using ?

          did you specify the cfg attribute ?

          regards, tom.

          • 2. Re: Can not deploy process
            mehmetbilgi

            thanks for the reply tom,
            i finally managed to overcome all the issues by just using the latest stable version,
            in fact i had a source jar from sf.net, and i was tring to make it work... 3.1 beta, i think.

            however, it would be very helpfull if there was a document that covers the most crucial parts of jbpm in depth, i already read the user manual, but it was not that satisfactory.. for instance, i am trying to replace the identity component with our organizational model, and believe me it is quite a hard task for me..
            can you point a more detailed document ?

            thanks.

            Mehmet Bilgi
            Faza Gazetecilik, Zaman Gazetesi
            Junior Developer

            • 3. Re: Can not deploy process
              koen.aers

              Mehmet,

              We are putting together such a series of documents as I write this, so stay tuned. In the meantime, replacing the identity component is not such a hard job. You should write an AssignmentHandler that simply uses your own identity module (e.g. LDAP) to lookup the candidates for assignment. Of course the assignment expressions won't work when you do this.

              Regards,
              Koen