2 Replies Latest reply on Jan 4, 2006 4:08 AM by Koen Aers

    Accessing jBPM in jBoss through Tomcat Q

    Fred Muhlenberg Newbie


      What additional configuration is necessary, if any, to enable a servlet running from a war file on tomcat to save a process definition? I'm using the default bundled jBPM distribution v3.0.2 and have been running into some issues. At present, I'm too lazy (intimidated) to create a session bean.

      As I noted in an earlier reply to myself, saving a process definition works from an EJB but not from a servlet.

        • 1. Re: Accessing jBPM in jBoss through Tomcat Q
          Fred Muhlenberg Newbie

          My followup is that Tomcat isn't the problem.

          I found that when I attempt to save a ProcessDefinition I run into one of two error situations:
          1) This code generates an exception during the commit

          jbpmSession.beginTransaction()
          jbpmSession.getGraphSession().saveProcessDefinition(ProcessDefinition)
          jbpmSession.commitTransaction()

          However, I find that that the ProcessDefinition has been stored and will run as expected.

          2) Calling this code without transaction demarcations generates errors later when the process s being read or run

          jbpmSession.getGraphSession().saveProcessDefinition(ProcessDefinition)

          Note: all of this code is being run within the jBoss App Server.

          • 2. Re: Accessing jBPM in jBoss through Tomcat Q
            Koen Aers Master

            Can you post some stack traces. It is hard to figure out what is wrong when we don't have some more info...

            Regards,
            Koen