Bug 1124391

Summary: BPM Suite on Tomcat7 returns http 409 error on complete task when using rest call
Product: [Retired] JBoss BPMS Platform 6 Reporter: Amana <ajuricic>
Component: DocumentationAssignee: Vikram Goyal <vigoyal>
Status: CLOSED DUPLICATE QA Contact: Marek Baluch <mbaluch>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.2CC: brms-docs, mwinkler
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Build Name: 22689, Installation Guide-6.0-1 Build Date: 30-06-2014 16:10:03 Topic ID: 22560-642515 [Latest]
Last Closed: 2014-07-31 04:31:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Amana 2014-07-29 12:05:57 UTC
Title: Setting up transaction manager for Red Hat JBoss Web Server 2.0 (Tomcat 7)

Describe the issue:

The following error is experiencied when using rest call (i.e.:   http://localhost:8080/business-central/rest/task/99/complete) to complete a human task BRMS 6.0.2 running on Tomcat7:

    WARN  Exception thrown when processing request [/task/1/complete]; responding with status 409
    org.kie.remote.services.rest.exception.RestOperationException: User '[UserImpl:'user1']' was unable to execution operation 'Complete' on task id 1 due to a no 'current status' match...

The same test case works if BRMS 6 is running on EAP 6. The problem is gone if the following setting is used in setenv.sh:

  -Djbpm.tsr.jndi.lookup=java:comp/env/TransactionSynchronizationRegistry

This setting needs to be included in step 8 in documentation. It is already described in the existing README.txt file in business-central.war (jboss-bpms-6.0.2.GA-redhat-5-deployable-generic/jboss-bpms-manager/business-central.war/README.txt).

Suggestions for improvement:

Add setting in step 8: -Djbpm.tsr.jndi.lookup=java:comp/env/TransactionSynchronizationRegistry

Comment 6 Vikram Goyal 2014-07-31 04:29:43 UTC
@Marek - sure here it is [1].

I understand that Ivo added that note for the inclusion in the Installation Guide but I don't think it got picked up. If a product bug requires a change in documentation it is best to create a cloned bug with its component set to Documentation otherwise it is hard for us to track the work.

I have now created a separate bug for tracking this work [2].

[1] https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_BPM_Suite/6.0/html-single/Installation_Guide/index.html#Setting_up_transaction_manager

[2] https://bugzilla.redhat.com/show_bug.cgi?id=1125107