5 Replies Latest reply on Jan 23, 2009 7:10 PM by Eddy Diaz

    Problem when deploying jbpm-bpel and Jboss Portal

    Jannis E. Newbie

      Hi @ll,
      I'm getting an exception that a hibernate.cfg.xml could not be found when deploying jbpm-bpel on a JBOSS AS environment, where Jboss Portal is installed, too.
      When deleting Jboss Portal everthings working fine.

      Does anyone have a clue why this is happening ?

      Jannis

        • 1. Re: Problem when deploying jbpm-bpel and Jboss Portal
          Gagan Goswami Newbie

          Hey .. when youy are running then have you cretaed Databse schema or not ??
          If not then create database schema "http://localhost:8080/jbpm-bpel" Database schema Section..

          • 2. Re: Problem when deploying jbpm-bpel and Jboss Portal
            Alejandro Guizar Master

            To avoid conflicts with other applications that use the default hibernate configuration file name (hibernate.cfg.xml) it was renamed jbpm.hibernate.cfg.xml in jBPM BPEL. Who throws the exception, Portal or jBPM?

            • 3. Re: Problem when deploying jbpm-bpel and Jboss Portal
              Eddy Diaz Newbie

              I have the same problem. I have installed jboss-portal-2.7.0.GA and jbpm-bpel-1.1.1. The problem when deploying jbpm-bpel in jboss is:

              10:35:29,700 WARN [JMSContainerInvoker] Could not find the queue destination-jndi-name=queue/JbpmCommandQueue
              10:35:29,700 WARN [JMSContainerInvoker] destination not found: queue/JbpmCommandQueue reason: javax.naming.NameNotFoundException: JbpmCommandQueue not bound
              10:35:29,700 WARN [JMSContainerInvoker] creating a new temporary destination: queue/JbpmCommandQueue
              10:35:29,705 INFO [JbpmCommandQueue] Bound to JNDI name: queue/JbpmCommandQueue
              10:35:29,816 WARN [JMSContainerInvoker] Could not find the queue destination-jndi-name=queue/JbpmJobQueue
              10:35:29,816 WARN [JMSContainerInvoker] destination not found: queue/JbpmJobQueue reason: javax.naming.NameNotFoundException: JbpmJobQueue not bound
              10:35:29,816 WARN [JMSContainerInvoker] creating a new temporary destination: queue/JbpmJobQueue
              10:35:29,820 INFO [JbpmJobQueue] Bound to JNDI name: queue/JbpmJobQueue
              10:35:29,825 INFO [EJBDeployer] Deployed: file:/usr/java/jboss-portal/server/default/tmp/deploy/tmp8608262276747418004jbpm-bpel.ear-contents/jbpm-enterprise.jar
              10:35:29,918 INFO [TomcatDeployer] deploy, ctxPath=/jbpm-bpel, warUrl=.../tmp/deploy/tmp8608262276747418004jbpm-bpel.ear-contents/jbpm-bpel-exp.war/
              10:35:30,095 INFO [Configuration] configuring from resource: hibernate.cfg.xml
              10:35:30,095 INFO [Configuration] Configuration resource: hibernate.cfg.xml
              10:35:30,098 ERROR [[/jbpm-bpel]] Exception sending context initialized event to listener instance of class org.jbpm.bpel.web.JbpmConfigurationLoader
              org.hibernate.HibernateException: hibernate.cfg.xml not found
              at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)


              • 4. Re: Problem when deploying jbpm-bpel and Jboss Portal
                Brad Davis Newbie

                @eddydiaz

                Do you see hibernate.cfg.xml within your EAR?

                It should be either in a jbpm-configuration.jar in the lib of the EAR, or the file placed at the root of the EAR.

                • 5. Re: Problem when deploying jbpm-bpel and Jboss Portal
                  Eddy Diaz Newbie

                  Inside jbpm-configuration.jar are jbpm.hibernate.cfg.xml and jbpm.cfg.xml files. I tried adding to .jar file another hibernate.cfg.xml with the same content of the jbpm.hibernate.cfg.xml, but new error appears:

                  18:58:55,495 ERROR [[/jbpm-bpel]] Exception sending context initialized event to listener instance of class org.jbpm.bpel.web.JbpmConfigurationLoader
                  java.lang.ExceptionInInitializerError
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                  .
                  .
                  .
                  .
                  Caused by: org.jbpm.configuration.ConfigurationException: name 'resource.bpel.modules' is not defined in the configuration. configured names: [resource.parsers, resource.mail.templates, jbpm.mail.from.address, resource.hibernate.cfg.xml, jbpm.task.instance.factory, jbpm.mail.smtp.host, jbpm.variable.resolver, resource.action.types, jbpm.byte.block.size, resource.varmapping, resource.business.calendar, resource.default.modules, jbpm.job.executor, resource.node.types, jbpm.mail.address.resolver, default.jbpm.context, resource.converter, jbpmConfiguration]
                  at org.jbpm.configuration.ObjectFactoryImpl.createObject(ObjectFactoryImpl.java:76)
                  at org.jbpm.JbpmConfiguration$Configs.getObject(JbpmConfiguration.java:431)
                  at org.jbpm.JbpmConfiguration$Configs.getString(JbpmConfiguration.java:434)
                  at org.jbpm.bpel.graph.def.BpelProcessDefinition.readModuleClasses(BpelProcessDefinition.java:213)
                  at org.jbpm.bpel.graph.def.BpelProcessDefinition.(BpelProcessDefinition.java:54)