Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-979

Java EE 7 samples: UserTransaction not found in JNDI

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • None
    • 2017.2.0
    • None
    • None

    Description

      This is the jta/user-transaction module of the Java EE 7 Samples. The test checks that the UserTransaction object can be @Inject-ed via CDI and looked up from JNDI from java:comp/UserTransaction. Both tests pass on WildFly, but the JNDI one fails with Swarm.

      I don't know where the problem is, but I doubt that Swarm would break JNDI in this way. I would suspect the Swarm Arquillian container, but that's probably just a red herring.

      Steps to reproduce:

      # install Swarm with Arquillian fraction autodetection support
      git clone -b javaee7-samples-testing https://github.com/Ladicek/wildfly-swarm.git
      cd wildfly-swarm
      mvn clean install -DskipTests
      
      # set up the Java EE 7 Samples project
      cd ..
      git clone -b wildfly-swarm https://github.com/Ladicek/javaee7-samples.git
      cd javaee7-samples
      mvn clean install -DskipTests
      
      # run the test
      cd jta/user-transaction
      mvn clean test -fae -Pwildfly-managed-arquillian   # with WildFly
      mvn clean test -fae -Pwildfly-swarm-arquillian     # with Swarm
      

      Attachments

        Issue Links

          Activity

            People

              kfinniga@redhat.com Ken Finnigan
              lthon@redhat.com Ladislav Thon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: