5 Replies Latest reply on Sep 26, 2007 8:13 AM by Pete Muir

    jbpm configuration error

    pandu purnama Newbie

      hi....
      here's my step configuring jbpm :
      1. copied hibernate.cfg.xml, jbpm.cfg.xml, test.jpdl.xml into resources folder from some example
      2. edited dialect & datasource in hibernate.cfg.xml
      3. edited components.xml and typed

       <core:Jbpm processDefinitions="test.jpdl.xml"/>
      


      i got this following error :
      "the matching wildcard is strict, but no declaration can be found for element core:jbpm"

      i don't understand, is it because the lib ? seam gen generated the lib for me... jbpm-jpdl.jar
      i'm using jboss seam2.0.0 beta1
      thank's in advance

        • 1. Re: jbpm configuration error
          Pete Muir Master

          Read the seam2migragtion guide. Use bpm:jbpm

          • 2. Re: jbpm configuration error
            pandu purnama Newbie

            thank's for the response mr muir
            i've read seam2migration.txt, and now using

             <bpm:jbpm>
             <bpm:process-definitions>
             <value>test.jpdl.xml</value>
             </bpm:process-definitions>
             </bpm:jbpm>
            


            but another error occured :
            Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener

            and another question, there's already jbpm-jpdl.jar in my lib,
            do i need to include jbpm-x.x.x.jar ?
            does it have same functionality with jbpm-jpdl.jar ?

            thank's

            • 3. Re: jbpm configuration error
              Pete Muir Master

              You need jbpm-jpdl.jar as included in the Seam distribution. No other jbpm jars.

              • 4. Re: jbpm configuration error
                pandu purnama Newbie

                ok, so i now only have jbpm-jpdl.jar
                here's my components.xml :

                <?xml version="1.0" encoding="UTF-8"?>
                <components xmlns="http://jboss.com/products/seam/components"
                 xmlns:core="http://jboss.com/products/seam/core"
                 xmlns:persistence="http://jboss.com/products/seam/persistence"
                 xmlns:drools="http://jboss.com/products/seam/drools"
                 xmlns:security="http://jboss.com/products/seam/security"
                 xmlns:mail="http://jboss.com/products/seam/mail"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xmlns:bpm="http://jboss.com/products/seam/bpm"
                 xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
                http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd
                http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.0.xsd
                http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
                http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.0.xsd
                http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.0.xsd
                http://jboss.com/products/seam/foobar http://jboss.com/products/seam/foobar-2.0.xsd
                http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
                
                 <core:init debug="@debug@" jndi-pattern="@jndiPattern@" />
                
                 <core:manager concurrent-request-timeout="500"
                 conversation-timeout="120000" conversation-id-parameter="cid" />
                
                 <persistence:managed-persistence-context name="entityManager"
                 auto-create="true"
                 persistence-unit-jndi-name="java:/SIMAKPortalEntityManagerFactory" />
                
                 <drools:rule-base name="securityRules">
                 <drools:rule-files>
                 <value>/security.drl</value>
                 </drools:rule-files>
                 </drools:rule-base>
                
                 <security:identity authenticate-method="#{authenticator.login}"
                 security-rules="#{securityRules}" />
                
                 <mail:mail-session host="localhost" port="2525" username="test" password="test" />
                
                 <!-- For use with jBPM pageflow or process management -->
                
                 <bpm:jbpm>
                 <bpm:process-definitions>
                 <value>test.jpdl.xml</value>
                 </bpm:process-definitions>
                 </bpm:jbpm>
                
                </components>
                


                here's the error log

                Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
                java.lang.RuntimeException: could not deploy a process definition
                 at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:256)
                 at org.jboss.seam.bpm.Jbpm.startup(Jbpm.java:71)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                 at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124)
                 at org.jboss.seam.Component.callComponentMethod(Component.java:1957)
                 at org.jboss.seam.Component.callCreateMethod(Component.java:1880)
                 at org.jboss.seam.Component.newInstance(Component.java:1859)
                 at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
                 at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
                 at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:98)
                 at org.jboss.seam.init.Initialization.init(Initialization.java:508)
                 at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
                 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
                 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
                 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
                 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
                 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
                 at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
                 at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
                 at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
                 at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
                 at org.jboss.web.WebModule.startModule(WebModule.java:83)
                 at org.jboss.web.WebModule.startService(WebModule.java:61)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                 at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                 at $Proxy0.start(Unknown Source)
                 at org.jboss.system.ServiceController.start(ServiceController.java:417)
                 at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy45.start(Unknown Source)
                 at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                 at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                 at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
                 at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
                 at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy46.start(Unknown Source)
                 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                 at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy9.deploy(Unknown Source)
                 at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                 at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                 at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                 at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                 at $Proxy0.start(Unknown Source)
                 at org.jboss.system.ServiceController.start(ServiceController.java:417)
                 at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy4.start(Unknown Source)
                 at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy5.deploy(Unknown Source)
                 at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                 at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                 at org.jboss.Main.boot(Main.java:200)
                 at org.jboss.Main$1.run(Main.java:508)
                 at java.lang.Thread.run(Thread.java:595)
                Caused by: org.hibernate.MappingNotFoundException: resource: org/jbpm/msg/Message.hbm.xml not found
                 at org.hibernate.cfg.Configuration.addResource(Configuration.java:563)
                 at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1587)
                 at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)
                 at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)
                 at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)
                 at org.hibernate.cfg.Configuration.configure(Configuration.java:1428)
                 at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:91)
                 at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:69)
                 at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
                 at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:94)
                 at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:98)
                 at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:336)
                 at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:571)
                 at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
                 at org.jboss.seam.bpm.Jbpm.deployProcess(Jbpm.java:272)
                 at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:250)
                


                sorry for the trouble, thank's

                • 5. Re: jbpm configuration error
                  Pete Muir Master

                  Make sure your jbpm-jpdl.jar is deployed to the lib folder in your ear.