4 Replies Latest reply on Nov 5, 2013 9:50 AM by Senthil Sathiya

    executor-service

    rachi Newbie

      bjr, je suis debutante dans la modelisation des processus avec bpm,je suis le tuto jbpm5-developper-guide,

      je suis bloqué au nivo du chapitre 6 à l'execution du module jbpm-executor-service,j'ai les erreurs suivantes:

      Starting Executor Service ...

      SLF4J: Class path contains multiple SLF4J bindings.

      SLF4J: Found binding in [jar:file:/G:/maven_repos/org/jboss/weld/se/weld-se/2.0.0.CR2/weld-se-2.0.0.CR2.jar!/org/slf4j/impl/StaticLoggerBinder.class]

      SLF4J: Found binding in [jar:file:/G:/maven_repos/org/jboss/weld/servlet/weld-servlet/2.0.0.Beta4/weld-servlet-2.0.0.Beta4.jar!/org/slf4j/impl/StaticLoggerBinder.class]

      SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

      SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]

      [main] INFO org.jboss.weld.Version - WELD-000900 2.0.0 (CR2)

      [main] INFO org.jboss.weld.Bootstrap - WELD-000101 Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.

      [main] WARN org.jboss.weld.Bootstrap - Legacy deployment metadata provided by the integrator. Certain functionality will not be available.

      avr. 30, 2013 2:55:23 PM org.jboss.solder.logging.Logger info

      INFO: Solder Config XML provider starting...

      avr. 30, 2013 2:55:23 PM org.jboss.solder.logging.Logger info

      INFO: Loading XmlDocumentProvider: org.jboss.solder.config.xml.bootstrap.ResourceLoaderXmlDocumentProvider

      avr. 30, 2013 2:55:23 PM org.jboss.solder.logging.Logger info

      INFO: Reading XML file: jar:file:/G:/maven_repos/org/jboss/seam/persistence/seam-persistence/3.1.0.Final/seam-persistence-3.1.0.Final.jar!/META-INF/beans.xml

      avr. 30, 2013 2:55:23 PM org.jboss.solder.logging.Logger info

      INFO: Reading XML file: jar:file:/G:/maven_repos/org/jboss/seam/transaction/seam-transaction/3.1.0.Final/seam-transaction-3.1.0.Final.jar!/META-INF/beans.xml

      avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

      INFO: Solder 3.2.0.Final (build id: 3.2.0.Final)

      [weld-worker-1] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.jboss.seam.persistence.util.EJBContextUtils because of underlying class loading error: Type javax.ejb.EJBContext not found.  If this is unexpected, enable DEBUG logging to see the full error.

      [weld-worker-3] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.jboss.seam.transaction.CMTTransaction because of underlying class loading error: Type javax.ejb.EJBContext not found.  If this is unexpected, enable DEBUG logging to see the full error.

      [weld-worker-1] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.jboss.seam.transaction.DefaultSeamTransaction because of underlying class loading error: Type javax.ejb.EJBContext not found.  If this is unexpected, enable DEBUG logging to see the full error.

      avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

      INFO: Preventing class org.jboss.seam.persistence.hibernate.HibernateManagedSessionExtensionImpl from being installed as bean due to @Veto annotation

      avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

      INFO: Preventing class org.jboss.seam.transaction.EntityTransaction from being installed as bean due to @Veto annotation

      avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

      INFO: Preventing class org.jboss.seam.persistence.HibernatePersistenceProvider from being installed as bean due to @Veto annotation

      avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

      INFO: Preventing class org.jboss.seam.transaction.HibernateTransaction from being installed as bean due to @Veto annotation

      avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

      INFO: Preventing class org.jboss.seam.transaction.UTTransaction from being installed as bean due to @Veto annotation

      avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

      INFO: Preventing class org.jboss.seam.transaction.SeSynchronizations from being installed as bean due to @Veto annotation

      avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

      INFO: Preventing class org.jboss.seam.transaction.NoTransaction from being installed as bean due to @Veto annotation

      [weld-worker-1] WARN org.jboss.weld.interceptor.util.InterceptionTypeRegistry - Class 'javax.ejb.PostActivate' not found, interception based on it is not enabled

      [weld-worker-1] WARN org.jboss.weld.interceptor.util.InterceptionTypeRegistry - Class 'javax.ejb.PrePassivate' not found, interception based on it is not enabled

      avr. 30, 2013 2:55:25 PM org.jboss.solder.exception.control.extension.CatchExtension registerHandlerMethod

      INFO: Adding handler Qualifiers: [@javax.enterprise.inject.Any()] TraversalMode: BREADTH_FIRST Handles Type: class java.lang.Throwable Precedence: -100 [BackedAnnotatedMethod] public org.jboss.seam.transaction.SimpleTransactionExceptionHandler.markTransactionRollback(@Handles CaughtException<Throwable>) to known handlers

      Exception in thread "main" org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:

      Exception 0 :

      org.jboss.weld.exceptions.IllegalStateException: WELD-001332 BeanManager method getBeans() is not available during application initialization

        at org.jboss.weld.bean.builtin.BeanManagerProxy.checkContainerValidated(BeanManagerProxy.java:142)

        at org.jboss.weld.bean.builtin.BeanManagerProxy.getBeans(BeanManagerProxy.java:80)

        at org.jboss.solder.core.CoreExtension.failIfWeldExtensionsDetected(CoreExtension.java:215)

        at org.jboss.solder.core.CoreExtension.afterBeanDiscovery(CoreExtension.java:208)

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

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

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

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

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

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

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

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

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

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

        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:53)

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

        at org.jboss.weld.bootstrap.api.helpers.ForwardingBootstrap.deployBeans(ForwardingBootstrap.java:63)

        at org.jboss.weld.environment.se.Weld.initialize(Weld.java:137)

        at org.jbpm.executor.ExecutorModule.<init>(ExecutorModule.java:31)

        at org.jbpm.executor.ExecutorModule.getInstance(ExecutorModule.java:24)

        at org.jbpm.executor.ExecutorMain.main(ExecutorMain.java:15)

       

       

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

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

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

        at org.jboss.weld.bootstrap.api.helpers.ForwardingBootstrap.deployBeans(ForwardingBootstrap.java:63)

        at org.jboss.weld.environment.se.Weld.initialize(Weld.java:137)

        at org.jbpm.executor.ExecutorModule.<init>(ExecutorModule.java:31)

        at org.jbpm.executor.ExecutorModule.getInstance(ExecutorModule.java:24)

        at org.jbpm.executor.ExecutorMain.main(ExecutorMain.java:15)

       

       

      j'ai joins mon fichier pom.xml,svp si quelqu'un peut m'aider ca me permettra d'avancer.

      merci

        • 1. Re: executor-service
          Mauricio Salatino Master

          Hi,

          This blog is in English, I don't understand french, so can you please elaborate your question in English?

          What are you trying to achieve?

           

          Cheers

          • 2. Re: executor-service
            rachi Newbie

            HI,I try to execute the attached module, I import the project into eclipse. when I execute the following errors appears

            SLF4J: Class path contains multiple SLF4J bindings.

            SLF4J: Found binding in [jar:file:/G:/maven_repos/org/jboss/weld/se/weld-se/2.0.0.CR2/weld-se-2.0.0.CR2.jar!/org/slf4j/impl/StaticLoggerBinder.class]

            SLF4J: Found binding in [jar:file:/G:/maven_repos/org/jboss/weld/servlet/weld-servlet/2.0.0.Beta4/weld-servlet-2.0.0.Beta4.jar!/org/slf4j/impl/StaticLoggerBinder.class]

            SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

            SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]

            [main] INFO org.jboss.weld.Version - WELD-000900 2.0.0 (CR2)

            [main] INFO org.jboss.weld.Bootstrap - WELD-000101 Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.

            [main] WARN org.jboss.weld.Bootstrap - Legacy deployment metadata provided by the integrator. Certain functionality will not be available.

            avr. 30, 2013 2:55:23 PM org.jboss.solder.logging.Logger info

            INFO: Solder Config XML provider starting...

            avr. 30, 2013 2:55:23 PM org.jboss.solder.logging.Logger info

            INFO: Loading XmlDocumentProvider: org.jboss.solder.config.xml.bootstrap.ResourceLoaderXmlDocumentProvider

            avr. 30, 2013 2:55:23 PM org.jboss.solder.logging.Logger info

            INFO: Reading XML file: jar:file:/G:/maven_repos/org/jboss/seam/persistence/seam-persistence/3.1.0.Final/seam-persistence-3.1.0.Final.jar!/META-INF/beans.xml

            avr. 30, 2013 2:55:23 PM org.jboss.solder.logging.Logger info

            INFO: Reading XML file: jar:file:/G:/maven_repos/org/jboss/seam/transaction/seam-transaction/3.1.0.Final/seam-transaction-3.1.0.Final.jar!/META-INF/beans.xml

            avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

            INFO: Solder 3.2.0.Final (build id: 3.2.0.Final)

            [weld-worker-1] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.jboss.seam.persistence.util.EJBContextUtils because of underlying class loading error: Type javax.ejb.EJBContext not found.  If this is unexpected, enable DEBUG logging to see the full error.

            [weld-worker-3] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.jboss.seam.transaction.CMTTransaction because of underlying class loading error: Type javax.ejb.EJBContext not found.  If this is unexpected, enable DEBUG logging to see the full error.

            [weld-worker-1] INFO org.jboss.weld.ClassLoading - WELD-000119 Not generating any bean definitions from org.jboss.seam.transaction.DefaultSeamTransaction because of underlying class loading error: Type javax.ejb.EJBContext not found.  If this is unexpected, enable DEBUG logging to see the full error.

            avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

            INFO: Preventing class org.jboss.seam.persistence.hibernate.HibernateManagedSessionExtensionImpl from being installed as bean due to @Veto annotation

            avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

            INFO: Preventing class org.jboss.seam.transaction.EntityTransaction from being installed as bean due to @Veto annotation

            avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

            INFO: Preventing class org.jboss.seam.persistence.HibernatePersistenceProvider from being installed as bean due to @Veto annotation

            avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

            INFO: Preventing class org.jboss.seam.transaction.HibernateTransaction from being installed as bean due to @Veto annotation

            avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

            INFO: Preventing class org.jboss.seam.transaction.UTTransaction from being installed as bean due to @Veto annotation

            avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

            INFO: Preventing class org.jboss.seam.transaction.SeSynchronizations from being installed as bean due to @Veto annotation

            avr. 30, 2013 2:55:24 PM org.jboss.solder.logging.Logger info

            INFO: Preventing class org.jboss.seam.transaction.NoTransaction from being installed as bean due to @Veto annotation

            [weld-worker-1] WARN org.jboss.weld.interceptor.util.InterceptionTypeRegistry - Class 'javax.ejb.PostActivate' not found, interception based on it is not enabled

            [weld-worker-1] WARN org.jboss.weld.interceptor.util.InterceptionTypeRegistry - Class 'javax.ejb.PrePassivate' not found, interception based on it is not enabled

            avr. 30, 2013 2:55:25 PM org.jboss.solder.exception.control.extension.CatchExtension registerHandlerMethod

            INFO: Adding handler Qualifiers: [@javax.enterprise.inject.Any()] TraversalMode: BREADTH_FIRST Handles Type: class java.lang.Throwable Precedence: -100 [BackedAnnotatedMethod] public org.jboss.seam.transaction.SimpleTransactionExceptionHandler.markTransactionRollback(@Handles CaughtException<Throwable>) to known handlers

            Exception in thread "main" org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:

            Exception 0 :

            org.jboss.weld.exceptions.IllegalStateException: WELD-001332 BeanManager method getBeans() is not available during application initialization

              at org.jboss.weld.bean.builtin.BeanManagerProxy.checkContainerValidated(BeanManagerProxy.java:142)

              at org.jboss.weld.bean.builtin.BeanManagerProxy.getBeans(BeanManagerProxy.java:80)

              at org.jboss.solder.core.CoreExtension.failIfWeldExtensionsDetected(CoreExtension.java:215)

              at org.jboss.solder.core.CoreExtension.afterBeanDiscovery(CoreExtension.java:208)

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

              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

              at java.lang.reflect.Method.invoke(Unknown Source)

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

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

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

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

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

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

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

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

              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:53)

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

              at org.jboss.weld.bootstrap.api.helpers.ForwardingBootstrap.deployBeans(ForwardingBootstrap.java:63)

              at org.jboss.weld.environment.se.Weld.initialize(Weld.java:137)

              at org.jbpm.executor.ExecutorModule.<init>(ExecutorModule.java:31)

              at org.jbpm.executor.ExecutorModule.getInstance(ExecutorModule.java:24)

              at org.jbpm.executor.ExecutorMain.main(ExecutorMain.java:15)

             

             

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

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

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

              at org.jboss.weld.bootstrap.api.helpers.ForwardingBootstrap.deployBeans(ForwardingBootstrap.java:63)

              at org.jboss.weld.environment.se.Weld.initialize(Weld.java:137)

              at org.jbpm.executor.ExecutorModule.<init>(ExecutorModule.java:31)

              at org.jbpm.executor.ExecutorModule.getInstance(ExecutorModule.java:24)

              at org.jbpm.executor.ExecutorMain.main(ExecutorMain.java:15)

            • 3. Re: executor-service
              Mauricio Salatino Master

              Yeah, but what are you doing? Can you share some code?

              Because it's not clear what example are you trying to execute.

              • 4. Re: executor-service
                Senthil Sathiya Newbie

                Hi

                 

                I am also getting the same error message trying to run the executor service within eclipse . Not sure if the pom.xml has to be updated with any missing dependencies.

                 

                Thanks


                Senthil Sathiya