1 2 Previous Next 24 Replies Latest reply on Oct 1, 2009 10:55 PM by pbaltz Go to original post
      • 15. Re: jbpm 4.1 installation problems on jboss 4.2.3

         

        "kukeltje" wrote:
        I'm no jboss service /.sar specialist, but afaik, it should wait until the datasource is deployed.

        At least is does this for JBoss AS 5 in distro/src/main/files/install/src/jboss/config.jboss5/deploy/jbpm/jbpm-service.sar/jbpm-service-jboss-beans.xml

        for 4 in distro/src/main/files/install/src/jboss/config.jboss4/deploy/jbpm/jbpm-service.sar/jboss-beans.xml this seams missing. Can you try adding something similar in this file and see if it works then.


        I had been trying this initially, somewhat unintentionally, and injecting the datasource there didn't make a difference. I also tried various configurations of adding the state attribute to the JbpmDS injection and the demand and depends elements, none of which worked.

        I don't know if it is a difference with the microcontainer, because all the links to version 1.x of that on jboss.org seem to be broken. Perhaps, there is some low-level configuration with the microcontainer that will make it wait?

        • 16. Re: jbpm 4.1 installation problems on jboss 4.2.3
          kukeltje

          Adding a

          <depends>JbpmDS</depends>


          to the JbpmService in jboss-beans.xml did not work?

          I'll ask some others....(have no option to try myself)



          • 17. Re: jbpm 4.1 installation problems on jboss 4.2.3
            kukeltje

            and adding something like:

            [codejboss.jca:service=DataSourceBinding,name=java:/JbpmDS

            • 18. Re: jbpm 4.1 installation problems on jboss 4.2.3
              kukeltje

              ouch.... sorry typo

              <depends>jboss.jca:service=DataSourceBinding,name=JbpmDS</depends>


              or with the java:/ in front

              This is done in the ESB which is certified on JBoss AS 4.2.3 so it should work.

              • 19. Re: jbpm 4.1 installation problems on jboss 4.2.3

                Yes, I tried that, and it still has issues. Here's the relevant bean definition. (I tried the mbean name both the way you specified, and the way it shows up in JMX console.) Also, I've tried with and without the dataSource property specified in addition to the dependency.

                 <bean name="org.jbpm:service=ProcessEngine"
                 class="org.jbpm.integration.spi.JBPMService">
                 <property name="serverConfig"><inject bean="org.jbpm:service=ServerConfig"/></property>
                <!--
                 <property name="dataSource">
                 <inject bean="jboss.jca:service=DataSourceBinding,name=JbpmDS" />
                 </property>
                -->
                 <depends>jboss.jca:name=JbpmDS,service=DataSourceBinding</depends>
                 </bean>
                


                This results in the following error with the ProcessEngine not bound in JNDI.

                --- MBeans waiting for other MBeans ---
                ObjectName: jboss.beans:service=JBossBeanDeployment,name='jbpm-service.sar#jbpm-service.beans'
                 State: FAILED
                 Reason: org.jboss.deployment.DeploymentException: Cannot start AbstractKernelDeployment@17b51e8{name=file:/opt/jboss/jboss-4.2.3.GA/server/TDS/deploy/jbpm/jbpm-service.sar/jbpm-service.beans/META-INF/jboss-beans.xml installed=true beans=[AbstractBeanMetaData@13e6577{name=org.jbpm:service=KernelLocator bean=org.jbpm.integration.util.KernelLocator properties=[kernel] constructor=null}, AbstractBeanMetaData@1776d65{name=org.jbpm:service=ProcessEngine bean=org.jbpm.integration.spi.JBPMService properties=[serverConfig] constructor=null demands=[jboss.jca:name=JbpmDS,service=DataSourceBinding]}, AbstractBeanMetaData@1af1934{name=org.jbpm:service=ServerConfig bean=org.jbpm.integration.jboss4.mgmt.ServerConfig properties=[webServiceHost] constructor=null}]}; - nested throwable: (java.lang.IllegalStateException: Incompletely deployed:
                
                *** DEPLOYMENTS MISSING DEPENDENCIES:
                org.jbpm:service=ProcessEngine -> org.jbpm:service=ServerConfig{Configured:Installed}, jboss.jca:name=JbpmDS,service=DataSourceBinding{Create:NOT FOUND}, jboss.jca:name=JbpmDS,service=DataSourceBinding{Start:NOT FOUND}
                )
                
                --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
                ObjectName: jboss.beans:service=JBossBeanDeployment,name='jbpm-service.sar#jbpm-service.beans'
                 State: FAILED
                 Reason: org.jboss.deployment.DeploymentException: Cannot start AbstractKernelDeployment@17b51e8{name=file:/opt/jboss/jboss-4.2.3.GA/server/TDS/deploy/jbpm/jbpm-service.sar/jbpm-service.beans/META-INF/jboss-beans.xml installed=true beans=[AbstractBeanMetaData@13e6577{name=org.jbpm:service=KernelLocator bean=org.jbpm.integration.util.KernelLocator properties=[kernel] constructor=null}, AbstractBeanMetaData@1776d65{name=org.jbpm:service=ProcessEngine bean=org.jbpm.integration.spi.JBPMService properties=[serverConfig] constructor=null demands=[jboss.jca:name=JbpmDS,service=DataSourceBinding]}, AbstractBeanMetaData@1af1934{name=org.jbpm:service=ServerConfig bean=org.jbpm.integration.jboss4.mgmt.ServerConfig properties=[webServiceHost] constructor=null}]}; - nested throwable: (java.lang.IllegalStateException: Incompletely deployed:
                
                *** DEPLOYMENTS MISSING DEPENDENCIES:
                org.jbpm:service=ProcessEngine -> org.jbpm:service=ServerConfig{Configured:Installed}, jboss.jca:name=JbpmDS,service=DataSourceBinding{Create:NOT FOUND}, jboss.jca:name=JbpmDS,service=DataSourceBinding{Start:NOT FOUND}
                )
                



                • 20. Re: jbpm 4.1 installation problems on jboss 4.2.3
                  kukeltje

                  You have the content of the depends tag in a different order then what I posted. Might make a big difference. Can you give that a try?

                  • 21. Re: jbpm 4.1 installation problems on jboss 4.2.3
                    kukeltje

                    oops, sorry, I now only re-read your first line that you tried it in the 'correct' order as well. Same error then?

                    • 22. Re: jbpm 4.1 installation problems on jboss 4.2.3
                      kukeltje

                      hmm... might be that the 'waitÃng' on dependent services only takes place when the jboss-service.xml is used and not the jboss-beans.xml. I'll try to look into this a little further.

                      Putting things in the jboss-service.xml might be an option, but I cannot find a replacement for the property/inject elements.

                      • 23. Re: jbpm 4.1 installation problems on jboss 4.2.3
                        tom.baeyens

                        files of jboss 4 are still in the sources, but it is not supported.

                        • 24. Re: jbpm 4.1 installation problems on jboss 4.2.3

                          Thanks for the information. I was not aware that JBoss 4.x wasn't supported. Will have to move forward with 5 then.

                          Regards,

                          Pat

                          1 2 Previous Next