4 Replies Latest reply on Dec 4, 2014 12:26 PM by Ritesh Mathur

    JBPM6 in WildFly 8

    Ufuk Doganca Newbie

      Is it posible to run JBPM 6 in WildFly 8 im getting an error like this..

      JBPMorm.xml is missing or its an Hibernate Core {4.3.0.Final} problem?

      Same settings and jars working on Jboss AS 7.1 Final with hibernate-core-4.2.0.SP1.jar

       

      2014-01-17 11:21:14,057 WARN [org.hibernate.hql.internal.ast.HqlParser] (ServerService Thread Pool -- 59) HHH000203: processEqualityExpression() : No expression to process!

      2014-01-17 11:21:14,581 ERROR [org.hibernate.internal.SessionFactoryImpl] (ServerService Thread Pool -- 59) HHH000177: Error in named query: GetProcessInstanceIdByCorrelation: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: key near line 1, column 133 [select key.processInstanceId from org.jbpm.persistence.correlation.CorrelationKeyInfo key left join key.properties props where size(key.properties) = cast(:elem_count as integer) and props.value in :properties group by key.id,key.processInstanceId having count(key.id) = :elem_count]

      at org.hibernate.hql.internal.ast.QuerySyntaxException.convert(QuerySyntaxException.java:91) [hibernate-core-4.3.0.Final.jar:4.3.0.Final]

      at org.hibernate.hql.internal.ast.ErrorCounter.throwQueryException(ErrorCounter.java:109) [hibernate-core-4.3.0.Final.jar:4.3.0.Final]

      at org.hibernate.hql.internal.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:304) [hibernate-core-4.3.0.Final.jar:4.3.0.Final]

      at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:203) [hibernate-core-4.3.0.Final.jar:4.3.0.Final]

      at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:158) [hibernate-core-4.3.0.Final.jar:4.3.0.Final]

      at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:126) [hibernate-core-4.3.0.Final.jar:4.3.0.Final]

      at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:88) [hibernate-core-4.3.0.Final.jar:4.3.0.Final]

      at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:190) [hibernate-core-4.3.0.Final.jar:4.3.0.Final]

      at org.hibernate.internal.NamedQueryRepository.checkNamedQueries(NamedQueryRepository.java:161) [hibernate-core-4.3.0.Final.jar:4.3.0.Final]

      at org.hibernate.internal.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:1088) [hibernate-core-4.3.0.Final.jar:4.3.0.Final]

      at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:534) [hibernate-core-4.3.0.Final.jar:4.3.0.Final]

      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1857) [hibernate-core-4.3.0.Final.jar:4.3.0.Final]

      at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850) [hibernate-entitymanager-4.3.0.Final.jar:4.3.0.Final]

      at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:843) [hibernate-entitymanager-4.3.0.Final.jar:4.3.0.Final]

      at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:399) [hibernate-core-4.3.0.Final.jar:4.3.0.Final]

      at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:842) [hibernate-entitymanager-4.3.0.Final.jar:4.3.0.Final]

      at org.jboss.as.jpa.hibernate4.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44) [jipijapa-hibernate4-3-1.0.0.Final.jar:]

      at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154) [wildfly-jpa-8.0.0.CR1.jar:8.0.0.CR1]

      at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117) [wildfly-jpa-8.0.0.CR1.jar:8.0.0.CR1]

      at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_45]

      at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:463) [wildfly-security-manager-1.0.0.Beta3.jar:1.0.0.Beta3]

      at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182) [wildfly-jpa-8.0.0.CR1.jar:8.0.0.CR1]

      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_45]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_45]

      at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_45]

      at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.1.Final.jar:2.1.1.Final]

        • 1. Re: JBPM6 in WildFly 8
          Sander Postma Newbie

          How did you even get it deployed? The current demo only works in as7 standalone-as-7.1.1.Final.xml, there isn't one for WildFly 8.

          I've tried messing with the ant build.properties and build.xml to make it download and install WildFly8.0.0.Final, but it simply won't deploy due to missing assets. And just boldly dropping the jBpm wars into standalone\deployment will fail horribly with a NoSuchMethodException:

           

          2014-02-15 16:32:36,848 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016008: Starting weld service for deployment dashboard-builder.war

          2014-02-15 16:32:38,958 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."dashboard-builder.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."dashboard-builder.war".WeldStartService: Failed to start service

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]

            at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

          Caused by: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:

          Exception 0 :

          javax.enterprise.event.ObserverException

            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

            at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

            at java.lang.Class.newInstance(Class.java:374)

            at org.jboss.weld.security.NewInstanceAction.run(NewInstanceAction.java:33)

            at java.security.AccessController.doPrivileged(Native Method)

            at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:40)

            at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:78)

            at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:101)

            at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:266)

            at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:125)

            at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:253)

            at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:232)

            at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:169)

            at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:128)

            at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:102)

            at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:63)

            at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:35)

            at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:55)

            at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:372)

            at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:79)

            at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:92)

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

            at java.lang.Thread.run(Thread.java:744)

          Caused by: java.lang.NoSuchMethodError: org.jboss.weld.context.AbstractUnboundContext.<init>(Z)V

            at org.jboss.weld.environment.se.contexts.ThreadContext.<init>(ThreadContext.java:40)

            at org.jboss.weld.environment.se.WeldSEBeanRegistrant.registerWeldSEContexts(WeldSEBeanRegistrant.java:49)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:606)

            at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:93)

            ... 18 more

           

           

            at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:37)

            at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:55)

            at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:372)

            at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:79)

            at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:92)

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

            ... 3 more

          • 2. Re: JBPM6 in WildFly 8
            Ufuk Doganca Newbie

            im just using maven for dependencies and im not using jbpm consoles, tyring to work jbpm over a web application

             

                <properties>

                    <jbpm.version>6.0.0.Final</jbpm.version>       

                </properties>

             

            <dependency>
            <groupId>org.kie</groupId>
            <artifactId>kie-api</artifactId>
            <version>${jbpm.version}</version>
            </dependency>

             

             

            <dependency>
            <groupId>org.jbpm</groupId>
            <artifactId>jbpm-audit</artifactId>
            <version>${jbpm.version}</version>
            </dependency>

             

             

            <dependency>
            <groupId>org.jbpm</groupId>
            <artifactId>jbpm-bpmn2</artifactId>
            <version>${jbpm.version}</version>
            </dependency>

             

             

            <dependency>
            <groupId>org.jbpm</groupId>
            <artifactId>jbpm-human-task-core</artifactId>
            <version>${jbpm.version}</version>
            </dependency>

             

             

            <dependency>
            <groupId>org.jbpm</groupId>
            <artifactId>jbpm-human-task-audit</artifactId>
            <version>${jbpm.version}</version>
            </dependency>

             

             

            <dependency>
            <groupId>org.jbpm</groupId>
            <artifactId>jbpm-kie-services</artifactId>
            <version>${jbpm.version}</version>
            </dependency>

             

             

            <dependency>
            <groupId>org.jbpm</groupId>
            <artifactId>jbpm-shared-services</artifactId>
            <version>${jbpm.version}</version>
            </dependency>
            <dependency>
            <groupId>org.jbpm</groupId>
            <artifactId>jbpm-persistence-jpa</artifactId>
            <version>${jbpm.version}</version>
            </dependency>

             

             

            <dependency>
            <groupId>org.jbpm</groupId>
            <artifactId>jbpm-runtime-manager</artifactId>
            <version>${jbpm.version}</version>
            </dependency>

             

             

            <dependency>
            <groupId>org.jbpm</groupId>
            <artifactId>jbpm-executor</artifactId>
            <version>${jbpm.version}</version>
            </dependency>
            • 3. Re: JBPM6 in WildFly 8
              Guy Rouillier Newbie

              Attempting to install JBPM 6.0.1 into WildFly 8.0.0 Final.  I'm having the exact same problem in the same place:

               

              Caused by: java.lang.NoSuchMethodError: org.jboss.weld.context.AbstractUnboundContext.(Z)V

              at org.jboss.weld.environment.se.contexts.ThreadContext.(ThreadContext.java:40)

              at org.jboss.weld.environment.se.WeldSEBeanRegistrant.registerWeldSEContexts(WeldSEBeanRegistrant.java:49)

              • 4. Re: JBPM6 in WildFly 8
                Ritesh Mathur Newbie

                Did you found a solution to this issue?