1 2 Previous Next 19 Replies Latest reply on May 30, 2008 9:36 AM by fornachari Go to original post
      • 15. Re: Error in Process Definition Deployment.
        mputz

        @Ronald

        This is the second time that people do not know that in memory hsql databases are not shared


        well, maybe that's because it's not that obvious. it's in the connection.url (jdbc:hsqldb:mem:jbpm), but can be easily overlooked (just as I have ;-) )

        @Fornachari
        What's strange though is why the datasource is not found in your environment.

        • 16. Re: Error in Process Definition Deployment.
          kukeltje

          hmmm it was 'table' not found so it could not load the processdefinition. jBPM does not create the tables runtime (it does work though if you configure hibernate to do so on most databases). So with an in-memory db, the tables are not there, hence.....

          Where did you read about the datasource not being found?

          • 17. Re: Error in Process Definition Deployment.
            fornachari

            Kukeltje, I can open here the HSQL Database Manager and can see all tables created, everything is fine, all data are in the tables. The persistence works if I run my process from the jBPM Console. The data are being stored in the tables.
            The problem is if I try to instance a process from the eclipse, like I described. I receive the error "couldn't find process definition 'NameOfMyProcess'". I was using all default configurations that came in the hibernate.cfg.xml.

            Then I tryied to change the hibernate.cfg.xml. When I changed the hibernate.cfg.xml I received other error: "Could Not Find DataSource".
            The differences from the hibernate.cfg.xml file that I was using from the hibernate.cfg.cml file that I tried now (hibernate.cfg.xml that is inside the jbpm-console.war file) are the following lines:

            hibernate.cfg.xml that I was using - Receive the error: "couldn't find process definition NameofMyProcess'"

             <!-- JDBC connection properties (begin) -->
             <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
             <property name="hibernate.connection.url">jdbc:hsqldb:mem:jbpm</property>
             <property name="hibernate.connection.username">sa</property>
             <property name="hibernate.connection.password"></property>
             <!-- JDBC connection properties (end) -->
            
             <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
            
             <!-- DataSource properties (begin) ===
             <property name="hibernate.connection.datasource">java:/JbpmDS</property>
             ==== DataSource properties (end) -->


            hibernate.cfg.xml that I tried now - Receive the error: ""Could Not Find DataSource"
             <!-- JDBC connection properties (begin) ===
             <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
             <property name="hibernate.connection.url">jdbc:hsqldb:mem:jbpm</property>
             <property name="hibernate.connection.username">sa</property>
             <property name="hibernate.connection.password"></property>
             ==== JDBC connection properties (end) -->
            
             <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
            
             <!-- DataSource properties (begin) -->
             <property name="hibernate.connection.datasource">java:/JbpmDS</property>
             <!-- DataSource properties (end) -->


            I just posted the differents lines between the two files, the other lines are the same for both files.

            If someone have some idea, please, help me.
            I thank all, but I thing I will change the database to MS SQL Server. I hope that will work better than hypersonic.

            • 18. Re: Error in Process Definition Deployment.
              mputz

               

              The problem is if I try to instance a process from the eclipse, like I described.


              now, *that* is some information I was missing before!

              hsqldb is run in "In-Process" mode, which means as part of the running process (the app server) in the same JVM. But this also means the db is not accessible from outside the JVM.

              As you said, it's probably the best decision to switch the database to something you are accustomed to work with.

              • 19. Re: Error in Process Definition Deployment.
                fornachari

                Thank you mputz, I will do this!

                Thank to all!

                1 2 Previous Next