12 Replies Latest reply on Aug 16, 2006 9:31 PM by houzhizhen

    JBpm3 + hibernate 3 in Tomcat5

    ericmacau

      Is there any web example running JBpm3+Hibernate3 in Tomcat5?

        • 1. Re: JBpm3 + hibernate 3 in Tomcat5
          jds66

          Do you mean you need to see what it looks like or how to configure it?

          I'm looking for more info about how to install the config you mention myself.

          • 2. Re: JBpm3 + hibernate 3 in Tomcat5
            kukeltje

            shouldn't be to difficult. JBoss 4 also uses tomcat 5 so no issues on that part I think.

            U cannot use the .sar file, so you have to use the jbpm classes in a jar that is either on the classpath or in the .war file. If you make sure that besides this, all required libs are on the classpath, you should not have a problem and it should run

            • 3. Re: JBpm3 + hibernate 3 in Tomcat5
              jds66

              Thanks a lot for your appreciated comment.

              But..

              I have to have it working today, and I need to have the list of needed jar, with there path in the jbpm-starters-kit-3.0.1 zip for example.

              The can of error I have is not exactly helpfull as it uses reflection!

              javax.servlet.ServletException: L'exécution du filtre (Filter) a lancé une exception
              org.jbpm.webapp.filter.ContextFilter.doFilter(ContextFilter.java:19)
              org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:38)

              cause mère

              java.lang.NoClassDefFoundError
              java.lang.Class.forName0(Native Method)
              java.lang.Class.forName(Class.java:164)
              org.jbpm.webapp.context.Context.getPersistenceContext(Context.java:33)
              org.jbpm.webapp.filter.PersistenceFilter.doFilter(PersistenceFilter.java:22)
              org.jbpm.webapp.filter.ContextFilter.doFilter(ContextFilter.java:19)
              org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:38)


              Any help would be appreciated.

              • 4. Re: JBpm3 + hibernate 3 in Tomcat5

                Are you using a different database than the default one ?
                May be you need to add the jdbc driver then...


                Regards,
                David

                • 5. Re: JBpm3 + hibernate 3 in Tomcat5
                  jds66

                  I'm using mysql, but I have to admit I did't add any table in the schema jbpm..

                  For the libs, I added every jar found in the starter kit and I was able to go further. I'll remove some later!

                  Thanks

                  • 6. Re: JBpm3 + hibernate 3 in Tomcat5
                    ericmacau

                    If jbpm3 uses in Tomcat5, does it still have scheduler and timer function ?

                    • 7. Re: JBpm3 + hibernate 3 in Tomcat5
                      kylin_bo

                       

                      "ericmacau" wrote:
                      If jbpm3 uses in Tomcat5, does it still have scheduler and timer function ?

                      right!I will ask the question too!!!!

                      • 8. Re: JBpm3 + hibernate 3 in Tomcat5
                        kukeltje

                        yes, it does

                        • 9. Re: JBpm3 + hibernate 3 in Tomcat5
                          sanjeevt

                          I am running into the same problem. In my case I downloaded the starter kit and copied the jbpm.war file from jbpm/build/ directory into tomcat webapps directory. Then I followed it up by copiying all the required libraries to common/lib/. I copied the following libs: hibernate3, dom4j-1.6, log4j-1.2.8, hsqldb-1.7.3.3 and jbpm-3.0.1.

                          I then started up the hsqldb server from jbpm-starter-kit/jbpm-db/hsqldb/hsqldb.server.bat. I created a context in the server.xml for /jbpm and setup the data connection by suppliying the hsqldb url and user name settings.

                          When I startup tomcat and connect to http://localhost:8080/jbpm it gives the exact error that this post refers to. But in the tomcat console I see that it is unable to find hibernate.cfg.xml. So I copied hibernate.cfg.xml from jbpm-starter-kit/jbpm/src/config.files/ to tomcat/common/lib. But I still keep getting the same error.

                          Can some one help me out?

                          Thanks.

                          • 10. Re: JBpm3 + hibernate 3 in Tomcat5
                            kylin_bo

                             

                            "jds66" wrote:
                            Thanks a lot for your appreciated comment.

                            But..

                            I have to have it working today, and I need to have the list of needed jar, with there path in the jbpm-starters-kit-3.0.1 zip for example.

                            The can of error I have is not exactly helpfull as it uses reflection!

                            javax.servlet.ServletException: L'exécution du filtre (Filter) a lancé une exception
                            org.jbpm.webapp.filter.ContextFilter.doFilter(ContextFilter.java:19)
                            org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:38)


                            I also have the same error !...waiting for solutions with it !!

                            cause mère

                            java.lang.NoClassDefFoundError
                            java.lang.Class.forName0(Native Method)
                            java.lang.Class.forName(Class.java:164)
                            org.jbpm.webapp.context.Context.getPersistenceContext(Context.java:33)
                            org.jbpm.webapp.filter.PersistenceFilter.doFilter(PersistenceFilter.java:22)
                            org.jbpm.webapp.filter.ContextFilter.doFilter(ContextFilter.java:19)
                            org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:38)


                            Any help would be appreciated.


                            • 11. Re: JBpm3 + hibernate 3 in Tomcat5
                              sanjeevt

                              I was able to resolve my problem of not being able to locate hibernate.cfg.xml file. I placed the xml in the tomcat/common/classes folder. However I am still having issues when I try to access http://localhost:8080/jbpm context.

                              I have placed all the jars that are required except for the jBoss related jars.

                              On the other hand I installed jBoss and was able to build jbpm by running the updated build.deploy script. When I connect to Apache that is part of jBoss at http://localhost:8080/jbpm it does show me the Login screen. The Admin and Monitoring tab's do not work. However on the Home page I do see a link for process creation to create a new Websale process.

                              BUt when I click on it it just creates a process. BUt I cannot track its progress.

                              Is this how it is supposed to behave? What can I expect to see when I create a new process on the web interface?

                              Thanks.
                              Sanjeev

                              • 12. Re: JBpm3 + hibernate 3 in Tomcat5
                                houzhizhen

                                 

                                "ericmacau" wrote:
                                If jbpm3 uses in Tomcat5, does it still have scheduler and timer function ?

                                I can't use it in Tomcat5 too.It has a error ListnerStart