6 Replies Latest reply on Sep 8, 2015 2:18 AM by Chetan Math

    Is jbpm 6.1.0 supported on apache-tomcat-8

    Chetan Math Newbie

      Is jbpm 6.1.0 supported on apache-tomcat-8 . If yes then can you please point me to the relevant documents

        • 1. Re: Is jbpm 6.1.0 supported on apache-tomcat-8
          Maciej Swiderski Master

          it should be same as for tomcat 7, so see instructions here.

           

          HTH

          • 2. Re: Is jbpm 6.1.0 supported on apache-tomcat-8
            Chetan Math Newbie

            Hi Maciej,

            Thanks for the response . I have followed the steps listed in the instructions but I get the below error.

             

            I have created a sample mavenized  jbpm project to reproduce the issue. All details have been updated here

            Issue when running jbpm 6.1.0. with apache-tomcat-8.0.23 and java JRE 1.8.0_51

             

            Could you please suggest if I am missing anything.

             

            SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class com.company.util.ServletJBPMContext

            java.lang.IllegalStateException: No task persistence context available

              at org.jbpm.services.task.commands.TaskContext.getPersistenceContext(TaskContext.java:114)

              at org.jbpm.services.task.commands.InitDeadlinesCommand.execute(InitDeadlinesCommand.java:32)

              at org.jbpm.services.task.commands.InitDeadlinesCommand.execute(InitDeadlinesCommand.java:18)

            • 3. Re: Is jbpm 6.1.0 supported on apache-tomcat-8
              Maciej Swiderski Master

              the error indicates a failure during startup and is only a consequence of invalid bootstrap. You should see other errors while the application starts. Check both catalina.out and localhost-{date}.log of your tomcat. I see you most likely running embedded and not workbench/jbpm console, correct?

               

              HTH

              • 4. Re: Is jbpm 6.1.0 supported on apache-tomcat-8
                Chetan Math Newbie

                Hello Maciej ,

                 

                Yes we use jbpm api's  to to manage the process state and not the jbpm console. On server startup we create the  runtime manager and use the per request strategy.

                Error occurs while creating the runtime manager.(The error occurs even if I don't add and assets to the knowledge base)

                 

                Catalina logs :

                2015-08-02 15:44:42,592 DEBUG [localhost-startStop-1]: Runtime Environment ..

                2015-08-02 15:44:42,597 DEBUG [localhost-startStop-1]: No descriptor found returning default instance

                2015-08-02 15:44:42,609 DEBUG [localhost-startStop-1]: Instantiating JtaTransactionManager

                2015-08-02 15:44:42,612 WARN  [localhost-startStop-1]: No default interceptor found of type org.jbpm.services.task.persistence.TaskTransactionInterceptor might be mssing jbpm-human-task-jpa module on classpath (error null

                2015-08-02 15:44:42,626 INFO  [localhost-startStop-1]: CDI BeanManager cannot be found. Not sending event org.jboss.solder.servlet.event.ImplicitServletObjectsHolder$InternalServletContextEvent@601eec36 with qualifiers [@org.jboss.solder.servlet.event.Initialized()]

                2015-08-02 15:44:42,626 INFO  [localhost-startStop-1]: CDI BeanManager cannot be found. Not sending event org.jboss.solder.servlet.WebApplication@ac2b949e with qualifiers [@org.jboss.solder.servlet.event.Initialized()]

                2015-08-02 15:44:42,627 INFO  [localhost-startStop-1]: CDI BeanManager cannot be found. Not sending event org.apache.catalina.core.ApplicationContextFacade@191e6af6 with qualifiers [@org.jboss.solder.servlet.event.Initialized()]

                2015-08-02 15:44:42,631 INFO  [localhost-startStop-1]: CDI BeanManager cannot be found. Not sending event org.jboss.solder.servlet.event.ImplicitServletObjectsHolder$InternalServletContextEvent@3a8ac152 with qualifiers [@org.jboss.solder.servlet.event.Destroyed()]

                2015-08-02 15:44:42,631 DEBUG [localhost-startStop-1]: Context destroyed

                 

                In localhost-{date}.log


                SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class com.company.util.ServletJBPMContext

                java.lang.IllegalStateException: No task persistence context available

                  at org.jbpm.services.task.commands.TaskContext.getPersistenceContext(TaskContext.java:114)

                  at org.jbpm.services.task.commands.InitDeadlinesCommand.execute(InitDeadlinesCommand.java:32)

                  at org.jbpm.services.task.commands.InitDeadlinesCommand.execute(InitDeadlinesCommand.java:18)

                  at org.jbpm.services.task.commands.TaskCommandExecutorImpl$SelfExecutionCommandService.execute(TaskCommandExecutorImpl.java:65)

                  at org.jbpm.services.task.commands.TaskCommandExecutorImpl.execute(TaskCommandExecutorImpl.java:40)

                  at org.jbpm.services.task.impl.TaskDeadlinesServiceImpl.initialize(TaskDeadlinesServiceImpl.java:367)

                  at org.jbpm.services.task.HumanTaskConfigurator.getTaskService(HumanTaskConfigurator.java:153)

                  at org.jbpm.runtime.manager.impl.factory.LocalTaskServiceFactory.newTaskService(LocalTaskServiceFactory.java:65)

                  at org.jbpm.runtime.manager.impl.PerRequestRuntimeManager.init(PerRequestRuntimeManager.java:142)

                  at org.jbpm.runtime.manager.impl.RuntimeManagerFactoryImpl.newPerRequestRuntimeManager(RuntimeManagerFactoryImpl.java:88)

                  at org.jbpm.runtime.manager.impl.RuntimeManagerFactoryImpl.newPerRequestRuntimeManager(RuntimeManagerFactoryImpl.java:79)

                  at com.company.util.PerRequestRuntimeManager.getRuntimeManager(PerRequestRuntimeManager.java:58)

                 

                 

                I have created a sample mavenized project for reference.

                Issue when running jbpm 6.1.0. with apache-tomcat-8.0.23 and java JRE 1.8.0_51

                 

                Could you please suggest.

                • 5. Re: Is jbpm 6.1.0 supported on apache-tomcat-8
                  Chetan Math Newbie

                  Hello Maciej ,


                  Attaching logs for reference , bitronix transaction manager also looks to be configured from logs.  Could you please suggest if I am missing anything here.

                  Below are the logs for reference


                  01-Sep-2015 12:04:21.224 INFO [main] bitronix.tm.integration.tomcat55.BTMLifecycleListener.lifecycleEvent Starting Bitronix Transaction Manager

                  01-Sep-2015 12:04:21.244 INFO [main] bitronix.tm.BitronixTransactionManager.logVersion Bitronix Transaction Manager version 2.1.4

                  01-Sep-2015 12:04:21.247 INFO [main] bitronix.tm.Configuration.buildServerIdArray JVM unique ID: <tomcat-btm-node0>

                  01-Sep-2015 12:04:21.262 INFO [main] bitronix.tm.resource.ResourceLoader.init reading resources configuration from /Users/cmath/Downloads/apache-tomcat-8.0.23/conf/resources.properties

                  01-Sep-2015 12:04:29.918 INFO [main] bitronix.tm.recovery.Recoverer.run recovery committed 0 dangling transaction(s) and rolled back 0 aborted transaction(s) on 1 resource(s) [OracleDS] (restricted to serverId 'tomcat-btm-node0')

                   

                   

                  localhost.2015-09-01.log

                  01-Sep-2015 12:05:15.536 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class com.akamai.util.ServletJBPMContext

                  java.lang.IllegalStateException: No task persistence context available

                    at org.jbpm.services.task.commands.TaskContext.getPersistenceContext(TaskContext.java:114)

                    at org.jbpm.services.task.commands.InitDeadlinesCommand.execute(InitDeadlinesCommand.java:32)

                    at org.jbpm.services.task.commands.InitDeadlinesCommand.execute(InitDeadlinesCommand.java:18)

                    at org.jbpm.services.task.commands.TaskCommandExecutorImpl$SelfExecutionCommandService.execute(TaskCommandExecutorImpl.java:65)

                    at org.jbpm.services.task.commands.TaskCommandExecutorImpl.execute(TaskCommandExecutorImpl.java:40)

                    at org.jbpm.services.task.impl.TaskDeadlinesServiceImpl.initialize(TaskDeadlinesServiceImpl.java:367)

                    at org.jbpm.services.task.HumanTaskConfigurator.getTaskService(HumanTaskConfigurator.java:153)

                    at org.jbpm.runtime.manager.impl.factory.LocalTaskServiceFactory.newTaskService(LocalTaskServiceFactory.java:65)

                    at org.jbpm.runtime.manager.impl.PerRequestRuntimeManager.init(PerRequestRuntimeManager.java:142)

                    at org.jbpm.runtime.manager.impl.RuntimeManagerFactoryImpl.newPerRequestRuntimeManager(RuntimeManagerFactoryImpl.java:88)

                    at org.jbpm.runtime.manager.impl.RuntimeManagerFactoryImpl.newPerRequestRuntimeManager(RuntimeManagerFactoryImpl.java:79)

                    at com.akamai.util.PerRequestRuntimeManager.getRuntimeManager(PerRequestRuntimeManager.java:70)

                    at com.akamai.util.ServletJBPMContext.contextInitialized(ServletJBPMContext.java:27)

                    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729)

                    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)

                    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

                    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)

                    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)

                    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)

                    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)

                    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768)

                    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

                    at java.util.concurrent.FutureTask.run(FutureTask.java:262)

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



                  catalina.out

                  01-Sep-2015 12:04:20.873 WARNING [main] org.apache.tomcat.util.digester.Digester.endElement   No rules found matching 'Server/Resource'.

                  01-Sep-2015 12:04:20.875 WARNING [main] org.apache.tomcat.util.digester.Digester.endElement   No rules found matching 'Server/Resource'.

                  01-Sep-2015 12:04:20.875 WARNING [main] org.apache.tomcat.util.digester.Digester.endElement   No rules found matching 'Server/Resource'.

                  01-Sep-2015 12:04:20.875 WARNING [main] org.apache.tomcat.util.digester.Digester.endElement   No rules found matching 'Server/Resource'.

                  01-Sep-2015 12:04:21.019 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.0.23

                  01-Sep-2015 12:04:21.019 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          May 19 2015 14:58:38 UTC

                  01-Sep-2015 12:04:21.019 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.0.23.0

                  01-Sep-2015 12:04:21.019 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Mac OS X

                  01-Sep-2015 12:04:21.019 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.10.4

                  01-Sep-2015 12:04:21.019 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          x86_64

                  01-Sep-2015 12:04:21.019 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre

                  01-Sep-2015 12:04:21.019 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.7.0_79-b15

                  01-Sep-2015 12:04:21.019 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation

                  01-Sep-2015 12:04:21.019 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /Users/cmath/Downloads/apache-tomcat-8.0.23

                  01-Sep-2015 12:04:21.020 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /Users/cmath/Downloads/apache-tomcat-8.0.23

                  01-Sep-2015 12:04:21.020 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/Users/cmath/Downloads/apache-tomcat-8.0.23/conf/logging.properties

                  01-Sep-2015 12:04:21.020 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

                  01-Sep-2015 12:04:21.020 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx512M

                  01-Sep-2015 12:04:21.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:MaxPermSize=512m

                  01-Sep-2015 12:04:21.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dbtm.root=/Users/cmath/Downloads/apache-tomcat-8.0.23

                  01-Sep-2015 12:04:21.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dbitronix.tm.configuration=/Users/cmath/Downloads/apache-tomcat-8.0.23/conf/btm-config.properties

                  01-Sep-2015 12:04:21.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=/Users/cmath/Downloads/apache-tomcat-8.0.23/endorsed

                  01-Sep-2015 12:04:21.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/Users/cmath/Downloads/apache-tomcat-8.0.23

                  01-Sep-2015 12:04:21.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/Users/cmath/Downloads/apache-tomcat-8.0.23

                  01-Sep-2015 12:04:21.021 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/Users/cmath/Downloads/apache-tomcat-8.0.23/temp

                  01-Sep-2015 12:04:21.021 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /Users/cmath/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.

                  01-Sep-2015 12:04:21.189 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]

                  01-Sep-2015 12:04:21.218 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read

                  01-Sep-2015 12:04:21.221 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]

                  01-Sep-2015 12:04:21.223 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read

                  01-Sep-2015 12:04:21.223 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 773 ms

                  01-Sep-2015 12:04:21.224 INFO [main] bitronix.tm.integration.tomcat55.BTMLifecycleListener.lifecycleEvent Starting Bitronix Transaction Manager

                  01-Sep-2015 12:04:21.244 INFO [main] bitronix.tm.BitronixTransactionManager.logVersion Bitronix Transaction Manager version 2.1.4

                  01-Sep-2015 12:04:21.247 INFO [main] bitronix.tm.Configuration.buildServerIdArray JVM unique ID: <tomcat-btm-node0>

                  01-Sep-2015 12:04:21.262 INFO [main] bitronix.tm.resource.ResourceLoader.init reading resources configuration from /Users/cmath/Downloads/apache-tomcat-8.0.23/conf/resources.properties

                  01-Sep-2015 12:04:29.918 INFO [main] bitronix.tm.recovery.Recoverer.run recovery committed 0 dangling transaction(s) and rolled back 0 aborted transaction(s) on 1 resource(s) [OracleDS] (restricted to serverId 'tomcat-btm-node0')

                  01-Sep-2015 12:04:29.951 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina

                  01-Sep-2015 12:04:29.951 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.23

                  01-Sep-2015 12:04:29.975 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /Users/cmath/Downloads/apache-tomcat-8.0.23/webapps/batman-web.war

                  01-Sep-2015 12:04:35.231 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

                  SLF4J: Class path contains multiple SLF4J bindings.

                  SLF4J: Found binding in [jar:file:/Users/cmath/Downloads/apache-tomcat-8.0.23/lib/slf4j-jdk14-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]

                  SLF4J: Found binding in [jar:file:/Users/cmath/Downloads/apache-tomcat-8.0.23/webapps/batman-web/WEB-INF/lib/slf4j-log4j12-1.7.2.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.Log4jLoggerFactory]

                  INFO : initilaze runtime at server startup

                  INFO : HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

                  INFO : HHH000412: Hibernate Core {4.0.1.Final}

                  INFO : HHH000206: hibernate.properties not found

                  INFO : HHH000021: Bytecode provider name : javassist

                  INFO : HHH000221: Reading mappings from resource: META-INF/Taskorm.xml

                  INFO : HHH000221: Reading mappings from resource: META-INF/JBPMorm.xml

                  INFO : HHH000221: Reading mappings from resource: META-INF/TaskAuditorm.xml

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.AccountsPK

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.AccountsPK

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.WFMLocale

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.WFMLocale

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.TaskFormVariable

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.TaskFormVariable

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.WorkflowConfigPk

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.WorkflowConfigPk

                  INFO : HHH000400: Using dialect: org.hibernate.dialect.Oracle10gDialect

                  INFO : HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory

                  INFO : HHH000397: Using ASTQueryTranslatorFactory

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.AccountsPK

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.AccountsPK

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.TaskFormVariable

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.TaskFormVariable

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.WorkflowConfigPk

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.WorkflowConfigPk

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.WFMLocale

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.WFMLocale

                  INFO : HHH000400: Using dialect: org.hibernate.dialect.Oracle10gDialect

                  INFO : HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactory

                  INFO : HHH000397: Using ASTQueryTranslatorFactory

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.AccountsPK

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.AccountsPK

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.TaskFormVariable

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.TaskFormVariable

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.WorkflowConfigPk

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.WorkflowConfigPk

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.WFMLocale

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.WFMLocale

                  INFO : HHH000400: Using dialect: org.hibernate.dialect.Oracle10gDialect

                  WARN : HHH000427: Using deprecated org.hibernate.transaction.TransactionManagerLookup strategy [hibernate.transaction.manager_lookup_class], use newer org.hibernate.service.jta.platform.spi.JtaPlatform strategy instead [hibernate.transaction.jta.platform]

                  INFO : HHH000428: Encountered legacy TransactionManagerLookup specified; convert to newer org.hibernate.service.jta.platform.spi.JtaPlatform contract specified via hibernate.transaction.jta.platform setting

                  INFO : HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactory

                  INFO : HHH000397: Using ASTQueryTranslatorFactory

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.AccountsPK

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.AccountsPK

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.TaskFormVariable

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.TaskFormVariable

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.WorkflowConfigPk

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.WorkflowConfigPk

                  WARN : HHH000038: Composite-id class does not override equals(): com.akamai.wfmanager.dataaccess.model.WFMLocale

                  WARN : HHH000039: Composite-id class does not override hashCode(): com.akamai.wfmanager.dataaccess.model.WFMLocale

                  INFO : HHH000400: Using dialect: org.hibernate.dialect.Oracle10gDialect

                  INFO : HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactory

                  INFO : HHH000397: Using ASTQueryTranslatorFactory

                  INFO : [WorkflowsAssetsBuilder] addWorkflowsToKnowledgeBase ..

                  INFO : [WorkflowsAssetsBuilder] Adding workflow asset with name : ESSL-Slot-Reclamation

                  INFO : [WorkflowsAssetsBuilder] Adding workflow asset to knowledge base : ESSL-Slot-Reclamation

                  WARN : Process variable accountMgr uses ObjectDataType for default type (java.lang) which could cause problems with setting variables, use dedicated type instead

                  WARN : Process variable customerContactId uses ObjectDataType for default type (java.lang) which could cause problems with setting variables, use dedicated type instead

                  WARN : No default interceptor found of type org.jbpm.services.task.persistence.TaskTransactionInterceptor might be mssing jbpm-human-task-jpa module on classpath (error null

                  INFO : CDI BeanManager cannot be found. Not sending event org.jboss.solder.servlet.event.ImplicitServletObjectsHolder$InternalServletContextEvent@563d2761 with qualifiers [@org.jboss.solder.servlet.event.Initialized()]

                  INFO : CDI BeanManager cannot be found. Not sending event org.jboss.solder.servlet.WebApplication@c029151c with qualifiers [@org.jboss.solder.servlet.event.Initialized()]

                  INFO : CDI BeanManager cannot be found. Not sending event org.apache.catalina.core.ApplicationContextFacade@7db75239 with qualifiers [@org.jboss.solder.servlet.event.Initialized()]

                  01-Sep-2015 12:05:15.544 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file

                  01-Sep-2015 12:05:15.545 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/batman-web] startup failed due to previous errors

                  INFO : CDI BeanManager cannot be found. Not sending event org.jboss.solder.servlet.event.ImplicitServletObjectsHolder$InternalServletContextEvent@27c708b3 with qualifiers [@org.jboss.solder.servlet.event.Destroyed()]

                  01-Sep-2015 12:05:15.555 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [batman-web] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

                  java.lang.Object.wait(Native Method)

                  java.util.TimerThread.mainLoop(Timer.java:552)

                  java.util.TimerThread.run(Timer.java:505)

                  01-Sep-2015 12:05:15.565 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /Users/cmath/Downloads/apache-tomcat-8.0.23/webapps/batman-web.war has finished in 45,589 ms

                  01-Sep-2015 12:05:15.566 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /Users/cmath/Downloads/apache-tomcat-8.0.23/webapps/docs

                  01-Sep-2015 12:05:15.770 WARNING [localhost-startStop-1] org.apache.catalina.core.NamingContextListener.addResource Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory]

                  01-Sep-2015 12:05:15.770 WARNING [localhost-startStop-1] org.apache.catalina.core.NamingContextListener.addResource Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory]

                  01-Sep-2015 12:05:15.789 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /Users/cmath/Downloads/apache-tomcat-8.0.23/webapps/docs has finished in 223 ms

                  01-Sep-2015 12:05:15.789 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /Users/cmath/Downloads/apache-tomcat-8.0.23/webapps/examples

                  01-Sep-2015 12:05:16.064 WARNING [localhost-startStop-1] org.apache.catalina.core.NamingContextListener.addResource Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory]

                  01-Sep-2015 12:05:16.064 WARNING [localhost-startStop-1] org.apache.catalina.core.NamingContextListener.addResource Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory]

                  01-Sep-2015 12:05:16.158 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /Users/cmath/Downloads/apache-tomcat-8.0.23/webapps/examples has finished in 369 ms

                  01-Sep-2015 12:05:16.158 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /Users/cmath/Downloads/apache-tomcat-8.0.23/webapps/host-manager

                  01-Sep-2015 12:05:16.339 WARNING [localhost-startStop-1] org.apache.catalina.core.NamingContextListener.addResource Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory]

                  01-Sep-2015 12:05:16.339 WARNING [localhost-startStop-1] org.apache.catalina.core.NamingContextListener.addResource Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory]

                  01-Sep-2015 12:05:16.346 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /Users/cmath/Downloads/apache-tomcat-8.0.23/webapps/host-manager has finished in 188 ms

                  01-Sep-2015 12:05:16.346 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /Users/cmath/Downloads/apache-tomcat-8.0.23/webapps/manager

                  01-Sep-2015 12:05:16.512 WARNING [localhost-startStop-1] org.apache.catalina.core.NamingContextListener.addResource Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory]

                  01-Sep-2015 12:05:16.513 WARNING [localhost-startStop-1] org.apache.catalina.core.NamingContextListener.addResource Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory]

                  01-Sep-2015 12:05:16.518 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /Users/cmath/Downloads/apache-tomcat-8.0.23/webapps/manager has finished in 172 ms

                  01-Sep-2015 12:05:16.518 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /Users/cmath/Downloads/apache-tomcat-8.0.23/webapps/ROOT

                  01-Sep-2015 12:05:16.688 WARNING [localhost-startStop-1] org.apache.catalina.core.NamingContextListener.addResource Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory]

                  01-Sep-2015 12:05:16.690 WARNING [localhost-startStop-1] org.apache.catalina.core.NamingContextListener.addResource Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory]

                  01-Sep-2015 12:05:16.695 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /Users/cmath/Downloads/apache-tomcat-8.0.23/webapps/ROOT has finished in 177 ms

                  01-Sep-2015 12:05:16.709 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]

                  01-Sep-2015 12:05:16.715 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]

                  01-Sep-2015 12:05:16.716 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 55492 ms

                   

                  • 6. Re: Is jbpm 6.1.0 supported on apache-tomcat-8
                    Chetan Math Newbie

                    Identified and fixed the issue.

                    The problem is in logging and the actually exception never gets logged.

                    Class HumanTaskConfigurator.java

                    protected void addDefaultInterceptor() {

                        // add default interceptor if present

                        try {

                        Class<Interceptor> defaultInterceptorClass = (Class<Interceptor>) Class.forName(DEFAULT_INTERCEPTOR);

                        Constructor<Interceptor> constructor = defaultInterceptorClass.getConstructor(new Class[] {Environment.class});

                       

                        Interceptor defaultInterceptor = constructor.newInstance(this.environment);

                        interceptor(5, defaultInterceptor);

                        } catch (Exception e) {

                        logger.warn("No default interceptor found of type {} might be mssing jbpm-human-task-jpa module on classpath (error {}",

                        DEFAULT_INTERCEPTOR, e.getMessage());

                        }

                        }

                     

                    The execption is consumed and warning message is displayed as below

                    Error printed in tomcat logs  :

                    WARN : No default interceptor found of type org.jbpm.services.task.persistence.TaskTransactionInterceptor might be mssing jbpm-human-task-jpa module on classpath (error null

                     

                    Actual Exception : Caused by: java.lang.ClassCastException: bitronix.tm.BitronixTransactionManager cannot be cast to javax.transaction.UserTransaction


                    Had to ensure that btm.jar and jta.jar are in tomcat's lib folder and

                    are not in my web app's WEB-INF/lib . I had jboss-transaction-api_1.1_spec-1.0.0.Final-sources.jar in my WEB-INF/lib

                    The problem could have been eaisly fixed if the execption was logged correctly