4 Replies Latest reply on Feb 4, 2008 6:48 PM by pmuir

    Seam & JBPM (WebConsole)

    mjung85

      Hi,

      i'm using JBoss Seam 1.2.1. I want to use JBPM Business Processes (not only for pageflow).

      Unfortunately i have found not so much documentation about that sceneria. In the Seam reference the JBPM part is very small. Additionally i have the JBoss Seam book of Michael Juntao Yuan which is very good about Seam, but the JBPM part isn't big.

      1. Where can i get good documentation about the usage of JBPM in Seam (especially for business process and not only for pageflow definition)?

      2. JBPM standalone has a Web Console to access the JBPM engine. I can't find a Web Console in Seam, that allows me to access the JBPM engine in Seam. Where can i find it?

      Currently i'm doing a kind of reverse engineering with the dvd-store example, where business processes are used. This is very slow and not very satisfying.

      Thanks four your help!

        • 1. Re: Seam & JBPM (WebConsole)
          pmuir

          1) You've got all there is

          2) You just use the jbpm web console. But there is work in progress on seamifying this.

          • 2. Re: Seam & JBPM (WebConsole)
            brombie

            There's a book published by Apress called Practical Seam Project (or something like that) that has more about Seam and jbpm integration.

            For the jbpm console, just find the war file in the jbpm package that you've downloaded and plop/explode it inside your jboss deploy folder. If you're using JBoss 4.2, you'll need to tweak the war file or you'll get errors. See the jbpm wiki for it. What I found work for myself is building it from the code. The jbpm wiki has this covered too.

            • 3. Re: Seam & JBPM (WebConsole)
              mjung85

              Thanks for your replies.

              It seems to me that Seam uses JBPM in a very dirty way. I think the Web Console is one of the advantages of JBPM. I can use it to monitor the current tasks and the state of the business processes.

              Without the console i have just the nearly undocumented built-in components and a database, where i can look what happens in a very uncomfortable way.

              That makes the use of business processes in this way (Seam + JBPM) unattractive. It's like a black box where i put some process definitions and then i hope everything runs as expected.

              1. Can you tell me where i can find it in the JBPM Wiki? I tried to use this .war archive.
              http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmWebConsole

              2. The version looked to be right for my jboss platform (AS 4.0.5, SEAM 1.2.0). I deployed it and then tried to access it (http://localhos:8080/jpbm/) but i get the following error, whats the problem?

              2008-02-04 18:35:52,113 DEBUG [org.jbpm.webapp.filter.LogFilter] request http://localhost:8080/jbpm/
              2008-02-04 18:35:52,113 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jbpm].[jsp]] Servlet.service() for servlet jsp threw exception
              java.lang.NoClassDefFoundError
               at java.lang.Class.forName0(Native Method)
               at java.lang.Class.forName(Class.java:164)
               at org.jbpm.webapp.context.Context.getPersistenceContext(Context.java:33)
               at org.jbpm.webapp.filter.PersistenceFilter.doFilter(PersistenceFilter.java:22)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
               at org.jbpm.webapp.filter.ContextFilter.doFilter(ContextFilter.java:19)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
               at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:38)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
               at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
               at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
               at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
               at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
               at java.lang.Thread.run(Thread.java:595)





              • 4. Re: Seam & JBPM (WebConsole)
                pmuir

                Ask on the jbpm forum about jbpm web console.