Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-3654

quickstart cdi-embedded doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.13.1.Alpha1
    • None
    • None
    • None

      register custom JAX-RS resource (https://github.com/jbosstm/quickstart/blob/master/rts/lra-examples/cdi-embedded/src/main/java/io/narayana/rts/lra/CdiBasedResource.java) together with manually registered JAX-RS   lra-coordinator resource (https://github.com/jbosstm/narayana/blob/master/rts/lra/coordinator/src/main/java/io/narayana/lra/coordinator/api/Coordinator.java#L139-L144 ) is not working.

      quickstart error:

      ```

      ===== testing service
      + curl -4 -X PUT -I http://localhost:8082/cdi
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
        0     0    0     0    0     0      0      0 -::- -::- -::-     0
      HTTP/1.1 404 Not Found
      Narayana-LRA-API-version: 1.0
      content-length: 0

      ++ timeout_adjust 1
      ++ echo 1
      + sleep 1
      ++ curl -4 http://localhost:8082/cdi
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
        0     0    0     0    0     0      0      0 -::- -::- -::-     0
      + '[' '' = '1 completed and 0 compensated' ']'
      + return 1
      + res=1
      + test_recovery
      + echo '===== CdiBasedResource halt the service on pid 548390'
      ===== CdiBasedResource halt the service on pid 548390
      + curl -4 -X PUT -I 'http://localhost:8082/cdi?fault=haltcdiduring'
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
        0     0    0     0    0     0      0      0 -::- -::- -::-     0
      HTTP/1.1 404 Not Found
      Narayana-LRA-API-version: 1.0
      content-length: 0

      ```

      job link: http://narayanaci1.eng.hst.ams2.redhat.com/job/btny-pulls-narayana-quickstart-matrix/jdk=jdk11.latest,label=linux/31/consoleFull

            mstefank Martin Stefanko
            rh-ee-msappegr Marco Sappe Griot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: