3 Replies Latest reply on Sep 22, 2008 5:47 PM by Ivan Pazmino

    jbpm.cfg.xml in EAR

    Ivan Pazmino Newbie

      Where, in an EAR deployment, should the jbpm.cfg.xml file be in?

      Thanks in davance.

        • 1. Re: jbpm.cfg.xml in EAR
          Hans Schlegel Newbie

          Hi Ivan

          I did put this file in the root of the ear - same as jboss-seam.jar and

          • 2. Re: jbpm.cfg.xml in EAR
            Ivan Pazmino Newbie

            Hi Hans,

            THanks for you time. I have placed the jbpm.cfg.xml file in the WebContent folder, together with a jbpm descriptor todo.jpdl.xml. The later file reads:

                 xsi:schemaLocation="urn:jbpm.org:jpdl-3.2 http://jbpm.org/xsd/jpdl-3.2.xsd">
                 <start-state name="start">
                      <transition to="todo" />
                 <task-node name="todo">
                      <task name="todo" description="#{todoList.description}">
                           <assignment actor-id="#{actor.id}" />
                      <transition to="done" />
                 <end-state name="done"></end-state>

            and have it registered in components.xml, as follows:


            but when trying to deploy i get the following errors

            ERROR [JpdlXmlReader] couldn't parse process definition
            org.dom4j.DocumentException: null Nested exception: null
            Nested exception: 
                 at java.net.URL.<init>(URL.java:601)
                 at java.net.URL.<init>(URL.java:464)
                 at java.net.URL.<init>(URL.java:413)
            ERROR [[/seamExamples]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
            org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.bpm.jbpm

            but the xmls are well formed, actually the iDE would notice me if they were wrong I think

            Any ideas? am I missing something?

            • 3. Re: jbpm.cfg.xml in EAR
              Ivan Pazmino Newbie

              You won't believe it, it worked! I mean it deployed.

              I was missing the hibernate configuration file, and moved it outside the WEB-INF folder, together with
              jbpm.cfg.xml and todo.jpdl.xml files.

              The problem now, is that none of my views can be found. Any view, even those from examples that were working, now return a HTTP Status 404. Why can be this happening?

              Thanks in advance.