1 2 Previous Next 18 Replies Latest reply on Sep 1, 2005 8:17 AM by amir kamal

    RE: Trying to get started with jBPM 3.0

    amir kamal Newbie

      Hi
      Ronald and sushant

      this is in response to post my query on new forum(by Ronalds) here is the repeat of the problem raised-

      "Thanks sushant for the deployement help but after the delpoyement i am groping in dark what to do next with that deployement..i mean how to access the functionality as there is no jsp to do that as it was in jbpm 2.0 example..please advice im newbie to jbpm..
      thanks in advance.."

      Thanks Once Again in Advance...

        • 1. Re: RE: Trying to get started with jBPM 3.0
          Ronald van Kuijk Master

          ???? You can also not reply to posts? What browser are you using? In jBPM 3.0 there is a webapp if you just go to http://servername:port/jbpm

          This webapp is generic for all processes.

          • 2. Re: RE: Trying to get started with jBPM 3.0
            Igor Santos Newbie

            Susan,

            I tried your examples for process deploying but I get an error when executing the jsps:

            16:16:01,983 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
            java.lang.RuntimeException: couldn't deploy process archives : String index out of range: -1
            at org.apache.jsp.processDeployed_jsp._jspService(org.apache.jsp.processDeployed_jsp:106)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
            ...
            ...
            ...
            ...
            16:16:01,993 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
            java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
            at org.jbpm.JbpmConfiguration.(JbpmConfiguration.java:92)
            at org.jbpm.db.JbpmSessionFactory.

            This errors appear after "in DeployProcess....Step2...",that is, the line producing the error should be:

            JbpmSessionFactory jbpmSessionFactory =
            JbpmSessionFactory.buildJbpmSessionFactory();

            Any clues?

            Thanks,

            Igor.

            • 3. Re: RE: Trying to get started with jBPM 3.0
              Ronald van Kuijk Master

              Yes, you do not have apache commons-logging and probably some dependend jars in your classpath.

              • 4. Re: RE: Trying to get started with jBPM 3.0
                Igor Santos Newbie

                Hi again! I have the following jars in the WEB-INF/lib folder:

                jbpm-3.0.jar
                jbpm-webapp-3.0.jar
                commons-logging-1.0.4.jar
                hibernate3.jar
                converter.jar
                jbpm-identity-3.0.jar
                jbpm.sar.cfg.jar

                and the two jsp Susan wrote in the root folder: deployProcess.jsp and processDeployed.jsp

                I still get the following error message when I load a process definition:

                EXCEPTION

                javax.servlet.ServletException: org/apache/commons/logging/LogFactory
                org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
                org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
                ....

                ROOT CAUSE

                java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
                org.jbpm.JbpmConfiguration.(JbpmConfiguration.java:92)
                org.jbpm.db.JbpmSessionFactory.(JbpmSessionFactory.java:40)

                ...

                Any idea of why is this happening?

                Thanks,

                Igor.

                • 5. Re: RE: Trying to get started with jBPM 3.0
                  Ronald van Kuijk Master

                  ??? hmm... no classdef found. Is there other info in the logging? NoClassDefFoundError.... have a look at http://www.qos.ch/logging/classloader.jsp and see if something is familiar.

                  • 6. Re: RE: Trying to get started with jBPM 3.0
                    Igor Santos Newbie

                    Thanks for the info, I had a look at the web page but I didn't see the same exact error...I'll have a more thorough look tomorrow...

                    Igor.

                    • 7. Re: RE: Trying to get started with jBPM 3.0
                      Igor Santos Newbie

                      I've been surfing around different forums to find a solution for the commons-logging but I still get the error when I run the processDeployed.jsp:

                      12:44:52,050 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
                      java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
                      at org.jbpm.JbpmConfiguration.(JbpmConfiguration.java:92)
                      at org.jbpm.db.JbpmSessionFactory.(JbpmSessionFactory.java:40)
                      at org.apache.jsp.processDeployed_jsp._jspService(org.apache.jsp.processDeployed_jsp:89)
                      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
                      at org.apache.jasper.servlet.JspServlet.serviceJspFile
                      ...
                      ...
                      ...

                      Anybody has run Susan's jsps succesfully?

                      Thanks,

                      Igor.

                      • 8. Re: RE: Trying to get started with jBPM 3.0
                        amir kamal Newbie

                        Thanks Roanald for your patient to reply to my stupid questions!!!!
                        and sushant your jsp works perfectly fine and deployed the process smoothly...
                        I think Igor is having problems in Logging Jar as i didn`t face this prob.
                        defnetly get back if i get an ans....

                        • 9. Re: RE: Trying to get started with jBPM 3.0
                          Igor Santos Newbie

                          Could you send me please the structure of your .war and the contents of the web.xml?

                          Thanks,

                          Igor.

                          • 10. Re: RE: Trying to get started with jBPM 3.0
                            Igor Santos Newbie

                            I'm having the following error now when deploying the jsps:

                            11:51:35,365 INFO [STDOUT] in DeployProcess....Step1...
                            11:51:35,375 INFO [STDOUT] in DeployProcess....Step2...
                            11:51:35,475 DEBUG [JbpmConfiguration] jbpm.task.instance.class=org.jbpm.taskmgmt.exe.TaskInstance
                            11:51:35,475 DEBUG [JbpmConfiguration] jbpm.hibernate.cfg.xml=hibernate.cfg.xml
                            11:51:35,475 DEBUG [JbpmConfiguration] jbpm.scheduler.service.factory=org.jbpm.scheduler.impl.SchedulerServiceImpl
                            11:51:35,475 DEBUG [JbpmConfiguration] jbpm.hibernate.properties=hibernate.properties
                            11:51:35,545 INFO [Environment] Hibernate 3.0.2
                            11:51:35,565 INFO [Environment] loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=com.mysql.jdbc.Driver, hibernate.cglib.use_reflection_optimizer=true, hibernate.c3p0.max_size=3, hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect, hibernate.c3p0.min_size=1, hibernate.query.substitutions=true 1, false 0 , hibernate.connection.username=root, hibernate.connection.url=jdbc:mysql://localhost:3306/jbpmtest, hibernate.show_sql=true, hibernate.connection.password=****}
                            11:51:35,565 INFO [Environment] using CGLIB reflection optimizer
                            11:51:35,565 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
                            11:51:35,755 DEBUG [JbpmSessionFactory] using 'hibernate.cfg.xml' as hibernate configuration for jbpm
                            11:51:35,755 INFO [Configuration] configuring from resource: hibernate.cfg.xml
                            11:51:35,755 INFO [Configuration] Configuration resource: hibernate.cfg.xml
                            11:51:35,775 INFO [Configuration] Mapping resource: org/jbpm/identity/User.hbm.xml
                            11:51:35,966 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
                            java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
                            at org.hibernate.mapping.Table.(Table.java:33)

                            at org.hibernate.cfg.Mappings.addTable(Mappings.java:116)
                            at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:250)
                            at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:235)
                            at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:151)
                            at org.hibernate.cfg.Configuration.add(Configuration.java:360)

                            Any clues?

                            Thanks,

                            Igor.

                            • 11. Re: RE: Trying to get started with jBPM 3.0
                              Igor Santos Newbie

                              OK, I got the solution, I copied commons-collections-2.1.1.jar in the ser/lib of my JBoss configuration. But now I have the following error:

                              12:08:38,306 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks -> JBPM_TASK
                              12:08:38,306 INFO [Configuration] processing association property references
                              12:08:38,306 INFO [Configuration] processing foreign key constraints
                              12:08:38,566 INFO [C3P0ConnectionProvider] C3P0 using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/jbpmtest
                              12:08:38,566 INFO [C3P0ConnectionProvider] Connection properties: {user=root, password=****}
                              12:08:38,566 INFO [C3P0ConnectionProvider] autocommit mode: false
                              12:08:38,576 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
                              java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/PoolConfig
                              at org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:84)
                              at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
                              at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:362)
                              at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:60)
                              at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
                              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
                              at org.jbpm.db.JbpmSessionFactory.buildSessionFactory(JbpmSessionFactory.java:138)
                              at org.jbpm.db.JbpmSessionFactory.(JbpmSessionFactory.java:77)

                              Any clues again?

                              Thanks,

                              Igor.

                              • 12. Re: RE: Trying to get started with jBPM 3.0
                                Igor Santos Newbie

                                OK, finally I got it!!! I also added ehcache-1.1.jar and c3p0-0.8.5.2.jar libraries to the server/.../lib folder of my JBoss configuration. Hope this is helpful for somebody. Now I'll try to run the process through the weapp...

                                Thanks,

                                Igor.

                                • 13. Re: RE: Trying to get started with jBPM 3.0
                                  Ronald van Kuijk Master

                                  That is why I said to use the src version in another thread. The ant tasks that are in there (maybe they are even in the starter kit) take care of all this!!!!!

                                  The starter-kit should be used as a completely preconfigured running version of jBPM, not as a starting point to repackage things.

                                  Read the docs at http://docs.jboss.com/jbpm/v3/userguide/deployment.html

                                  • 14. Re: RE: Trying to get started with jBPM 3.0
                                    Igor Santos Newbie

                                    Hi Ronald! Which thread are you talking about, can you post me the link?

                                    Thanks,

                                    Igor.

                                    1 2 Previous Next