2 Replies Latest reply on Oct 22, 2008 4:12 AM by ruchika garg

    The jbpm does not read my custom hibernate.cfg.xml

    Pavel Kadlec Novice

      Hello

      I would like to have my custom hibernate.cfg.xml with my own mappings for my application entitities.

      I try to deploy process archive from Eclipse. But JBPM does not read my custom hibernate.cfg.xml.

      Does hibernate.cfg.xml have to be in some folder in process archive? What is structure of process archive? I have included jbpm.cfg.xml into
      my archive as well.But the jbpm.cfg.xml is not read as well.

      Regards
      Pavel

        • 1. Re: The jbpm does not read my custom hibernate.cfg.xml
          jerome tellier Newbie

          try to use

          JbpmConfiguration configuration = JbpmConfiguration.getInstance(myJbpmConfiguration_xmlFilePath);


          • 2. Re: The jbpm does not read my custom hibernate.cfg.xml
            ruchika garg Newbie

            Hello,

            I have a standalone application from where I am trying to access bussiness process(I created using jpdl).
            I tried what you suggested but I am getting the below error:

            log4j:WARN No appenders could be found for logger (org.jbpm.JbpmConfiguration).
            log4j:WARN Please initialize the log4j system properly.
            Exception in thread "main" org.jbpm.JbpmException: couldn't parse jbpm configuration from resource 'D:\eclipse_new\eclipse-SDK-3.4.1-win32\eclipse\workspace\TestEvenNumberjDPL\src\lib\jbpm.cfg.xml'
            at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:292)
            at EvenNumbersTest.main(EvenNumbersTest.java:15)
            Caused by: org.jbpm.JbpmException: jbpm configuration resource 'D:\eclipse_new\eclipse-SDK-3.4.1-win32\eclipse\workspace\TestEvenNumberjDPL\src\lib\jbpm.cfg.xml' is not available
            at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:286)
            ... 1 more

            I am not sure what I am missing.
            Can you please tell me steps to access process from standalone application?
            Its urgent and any help will be greatly appreciated.

            Regards,
            Ruchika