Arquillian DBunit Transaction











up vote
0
down vote

favorite












I am doing POC with TomEE microprofile and Arquillian DBunit. I referred the program from https://github.com/apache/tomee/blob/master/examples/arquillian-jpa/src/test/java/org/superbiz/arquillian/test/persistence/PersistenceTest.java



But I am using different class and different methods in my POC. I am getting



org.apache.openejb.OpenEJBRuntimeException: java.lang.IllegalStateException: No transaction associated with current thread
Caused by: java.lang.IllegalStateException: No transaction associated with current thread


Juit



@RunWith(Arquillian.class)
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class UserServiceTest {

@ArquillianResource
private URI baseURI;

@PersistenceContext(unitName = "MICRO_DS")
private EntityManager em;

@Resource(name = "movieDatabase")
DataSource dataSource;

@Deployment()
public static WebArchive createDeployment() throws IOException {
PomEquippedResolveStage pomEquippedResolveStage = Maven.resolver().loadPomFromFile("pom.xml");

File hibernateLibs = pomEquippedResolveStage.resolve(
"org.hibernate:hibernate-entitymanager"

).withTransitivity().asFile();

final WebArchive webArchive = ShrinkWrap.create(WebArchive.class, "test.war")
.addPackages(true,"ch.qos.logback")
.addPackage(UserResource.class.getPackage())
.addPackage(UserDE.class.getPackage())
.addPackage(User.class.getPackage())
.addPackage(UserDao.class.getPackage())
.addPackage(Utils.class.getPackage())
.addPackage(BusinessException.class.getPackage())
.addClass(DataHelper.class)

.addAsLibraries(hibernateLibs)
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")

.addAsResource("logback.xml","logback.xml")
.addAsResource("datasets/users.json");

System.out.println(webArchive.toString(true));
return webArchive;
}

@Test
@Transactional(TransactionMode.COMMIT)
@UsingDataSet("datasets/users.json")
public void test3FindAll() {
System.out.println("##########################################");
assertEquals(2, em.createQuery("select count(e) from UserDE e", Number.class).getSingleResult().intValue());
}


Persistence.xml



<persistence-unit name="MICRO_DS" transaction-type="JTA">
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<jta-data-source>movieDatabase</jta-data-source>
<class>com.walmart.move.nim.micro.entity.UserDE</class>
<properties>
<property name="hibernate.connection.url" value="jdbc:hsqldb:mem:test"/>
<property name="hibernate.connection.username" value="sa"/>
<property name="hibernate.connection.password" value=""/>
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
<property name="jdbc.driverClassName" value="org.hsqldb.jdbc.JDBCDriver"/>
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.format_sql" value="true"/>
<property name="hibernate.enable_lazy_load_no_trans" value="true"/>
</properties>

</persistence-unit>


Arquillian.xml



<arquillian xmlns="http://jboss.org/schema/arquillian"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://jboss.org/schema/arquillian
http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

<extension qualifier="persistence">
<property name="defaultDataSource">java:comp/env/movieDatabase</property>
</extension>

<container qualifier="tomee" default="true">
<configuration>
<property name="debug">false</property>
<property name="httpPort">-1</property>
<property name="ajpPort">-1</property>
<property name="stopPort">-1</property>
<property name="classifier">microprofile</property>
<property name="conf">src/test/conf</property>
<property name="dir">target/tomee</property>
<property name="appWorkingDir">target/workdir</property>
<property name="cleanOnStartUp">true</property>
<property name="properties">
app.version=900
a.c=cat
</property>
</configuration>
</container>
</arquillian>


Dependency



    <version.arquillian>1.1.10.Final</version.arquillian>
<version.shrinkwrap.resolvers>3.1.3</version.shrinkwrap.resolvers>
<version.arquillian.persistence>1.0.0.Alpha7</version.arquillian.persistence>

<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-depchain</artifactId>
<version>${version.shrinkwrap.resolvers}</version>
<scope>test</scope>
<type>pom</type>
</dependency>

<dependency>
<groupId>org.jboss.arquillian.config</groupId>
<artifactId>arquillian-config-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.extension</groupId>
<artifactId>arquillian-persistence-dbunit</artifactId>
<version>${version.arquillian.persistence}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>arquillian-transaction-jta</artifactId>
<groupId>org.jboss.arquillian.extension</groupId>
</exclusion>
<exclusion>
<artifactId>commons-logging</artifactId>
<groupId>commons-logging</groupId>
</exclusion>
<exclusion>
<artifactId>log4j</artifactId>
<groupId>log4j</groupId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>arquillian-tomee-remote</artifactId>
<version>${tomee.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>commons-logging</artifactId>
<groupId>commons-logging</groupId>
</exclusion>
</exclusions>
</dependency>









share|improve this question




























    up vote
    0
    down vote

    favorite












    I am doing POC with TomEE microprofile and Arquillian DBunit. I referred the program from https://github.com/apache/tomee/blob/master/examples/arquillian-jpa/src/test/java/org/superbiz/arquillian/test/persistence/PersistenceTest.java



    But I am using different class and different methods in my POC. I am getting



    org.apache.openejb.OpenEJBRuntimeException: java.lang.IllegalStateException: No transaction associated with current thread
    Caused by: java.lang.IllegalStateException: No transaction associated with current thread


    Juit



    @RunWith(Arquillian.class)
    @FixMethodOrder(MethodSorters.NAME_ASCENDING)
    public class UserServiceTest {

    @ArquillianResource
    private URI baseURI;

    @PersistenceContext(unitName = "MICRO_DS")
    private EntityManager em;

    @Resource(name = "movieDatabase")
    DataSource dataSource;

    @Deployment()
    public static WebArchive createDeployment() throws IOException {
    PomEquippedResolveStage pomEquippedResolveStage = Maven.resolver().loadPomFromFile("pom.xml");

    File hibernateLibs = pomEquippedResolveStage.resolve(
    "org.hibernate:hibernate-entitymanager"

    ).withTransitivity().asFile();

    final WebArchive webArchive = ShrinkWrap.create(WebArchive.class, "test.war")
    .addPackages(true,"ch.qos.logback")
    .addPackage(UserResource.class.getPackage())
    .addPackage(UserDE.class.getPackage())
    .addPackage(User.class.getPackage())
    .addPackage(UserDao.class.getPackage())
    .addPackage(Utils.class.getPackage())
    .addPackage(BusinessException.class.getPackage())
    .addClass(DataHelper.class)

    .addAsLibraries(hibernateLibs)
    .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
    .addAsResource("test-persistence.xml", "META-INF/persistence.xml")

    .addAsResource("logback.xml","logback.xml")
    .addAsResource("datasets/users.json");

    System.out.println(webArchive.toString(true));
    return webArchive;
    }

    @Test
    @Transactional(TransactionMode.COMMIT)
    @UsingDataSet("datasets/users.json")
    public void test3FindAll() {
    System.out.println("##########################################");
    assertEquals(2, em.createQuery("select count(e) from UserDE e", Number.class).getSingleResult().intValue());
    }


    Persistence.xml



    <persistence-unit name="MICRO_DS" transaction-type="JTA">
    <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
    <jta-data-source>movieDatabase</jta-data-source>
    <class>com.walmart.move.nim.micro.entity.UserDE</class>
    <properties>
    <property name="hibernate.connection.url" value="jdbc:hsqldb:mem:test"/>
    <property name="hibernate.connection.username" value="sa"/>
    <property name="hibernate.connection.password" value=""/>
    <property name="hibernate.hbm2ddl.auto" value="create-drop" />
    <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
    <property name="jdbc.driverClassName" value="org.hsqldb.jdbc.JDBCDriver"/>
    <property name="hibernate.show_sql" value="true"/>
    <property name="hibernate.format_sql" value="true"/>
    <property name="hibernate.enable_lazy_load_no_trans" value="true"/>
    </properties>

    </persistence-unit>


    Arquillian.xml



    <arquillian xmlns="http://jboss.org/schema/arquillian"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
    http://jboss.org/schema/arquillian
    http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

    <extension qualifier="persistence">
    <property name="defaultDataSource">java:comp/env/movieDatabase</property>
    </extension>

    <container qualifier="tomee" default="true">
    <configuration>
    <property name="debug">false</property>
    <property name="httpPort">-1</property>
    <property name="ajpPort">-1</property>
    <property name="stopPort">-1</property>
    <property name="classifier">microprofile</property>
    <property name="conf">src/test/conf</property>
    <property name="dir">target/tomee</property>
    <property name="appWorkingDir">target/workdir</property>
    <property name="cleanOnStartUp">true</property>
    <property name="properties">
    app.version=900
    a.c=cat
    </property>
    </configuration>
    </container>
    </arquillian>


    Dependency



        <version.arquillian>1.1.10.Final</version.arquillian>
    <version.shrinkwrap.resolvers>3.1.3</version.shrinkwrap.resolvers>
    <version.arquillian.persistence>1.0.0.Alpha7</version.arquillian.persistence>

    <dependency>
    <groupId>org.jboss.arquillian.junit</groupId>
    <artifactId>arquillian-junit-container</artifactId>
    <scope>test</scope>
    </dependency>

    <dependency>
    <groupId>org.jboss.shrinkwrap.resolver</groupId>
    <artifactId>shrinkwrap-resolver-depchain</artifactId>
    <version>${version.shrinkwrap.resolvers}</version>
    <scope>test</scope>
    <type>pom</type>
    </dependency>

    <dependency>
    <groupId>org.jboss.arquillian.config</groupId>
    <artifactId>arquillian-config-api</artifactId>
    <scope>test</scope>
    </dependency>
    <dependency>
    <groupId>org.jboss.arquillian.extension</groupId>
    <artifactId>arquillian-persistence-dbunit</artifactId>
    <version>${version.arquillian.persistence}</version>
    <scope>test</scope>
    <exclusions>
    <exclusion>
    <artifactId>arquillian-transaction-jta</artifactId>
    <groupId>org.jboss.arquillian.extension</groupId>
    </exclusion>
    <exclusion>
    <artifactId>commons-logging</artifactId>
    <groupId>commons-logging</groupId>
    </exclusion>
    <exclusion>
    <artifactId>log4j</artifactId>
    <groupId>log4j</groupId>
    </exclusion>
    </exclusions>
    </dependency>

    <dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.12</version>
    <scope>test</scope>
    </dependency>

    <dependency>
    <groupId>org.apache.tomee</groupId>
    <artifactId>arquillian-tomee-remote</artifactId>
    <version>${tomee.version}</version>
    <scope>test</scope>
    <exclusions>
    <exclusion>
    <artifactId>commons-logging</artifactId>
    <groupId>commons-logging</groupId>
    </exclusion>
    </exclusions>
    </dependency>









    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am doing POC with TomEE microprofile and Arquillian DBunit. I referred the program from https://github.com/apache/tomee/blob/master/examples/arquillian-jpa/src/test/java/org/superbiz/arquillian/test/persistence/PersistenceTest.java



      But I am using different class and different methods in my POC. I am getting



      org.apache.openejb.OpenEJBRuntimeException: java.lang.IllegalStateException: No transaction associated with current thread
      Caused by: java.lang.IllegalStateException: No transaction associated with current thread


      Juit



      @RunWith(Arquillian.class)
      @FixMethodOrder(MethodSorters.NAME_ASCENDING)
      public class UserServiceTest {

      @ArquillianResource
      private URI baseURI;

      @PersistenceContext(unitName = "MICRO_DS")
      private EntityManager em;

      @Resource(name = "movieDatabase")
      DataSource dataSource;

      @Deployment()
      public static WebArchive createDeployment() throws IOException {
      PomEquippedResolveStage pomEquippedResolveStage = Maven.resolver().loadPomFromFile("pom.xml");

      File hibernateLibs = pomEquippedResolveStage.resolve(
      "org.hibernate:hibernate-entitymanager"

      ).withTransitivity().asFile();

      final WebArchive webArchive = ShrinkWrap.create(WebArchive.class, "test.war")
      .addPackages(true,"ch.qos.logback")
      .addPackage(UserResource.class.getPackage())
      .addPackage(UserDE.class.getPackage())
      .addPackage(User.class.getPackage())
      .addPackage(UserDao.class.getPackage())
      .addPackage(Utils.class.getPackage())
      .addPackage(BusinessException.class.getPackage())
      .addClass(DataHelper.class)

      .addAsLibraries(hibernateLibs)
      .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
      .addAsResource("test-persistence.xml", "META-INF/persistence.xml")

      .addAsResource("logback.xml","logback.xml")
      .addAsResource("datasets/users.json");

      System.out.println(webArchive.toString(true));
      return webArchive;
      }

      @Test
      @Transactional(TransactionMode.COMMIT)
      @UsingDataSet("datasets/users.json")
      public void test3FindAll() {
      System.out.println("##########################################");
      assertEquals(2, em.createQuery("select count(e) from UserDE e", Number.class).getSingleResult().intValue());
      }


      Persistence.xml



      <persistence-unit name="MICRO_DS" transaction-type="JTA">
      <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
      <jta-data-source>movieDatabase</jta-data-source>
      <class>com.walmart.move.nim.micro.entity.UserDE</class>
      <properties>
      <property name="hibernate.connection.url" value="jdbc:hsqldb:mem:test"/>
      <property name="hibernate.connection.username" value="sa"/>
      <property name="hibernate.connection.password" value=""/>
      <property name="hibernate.hbm2ddl.auto" value="create-drop" />
      <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
      <property name="jdbc.driverClassName" value="org.hsqldb.jdbc.JDBCDriver"/>
      <property name="hibernate.show_sql" value="true"/>
      <property name="hibernate.format_sql" value="true"/>
      <property name="hibernate.enable_lazy_load_no_trans" value="true"/>
      </properties>

      </persistence-unit>


      Arquillian.xml



      <arquillian xmlns="http://jboss.org/schema/arquillian"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="
      http://jboss.org/schema/arquillian
      http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

      <extension qualifier="persistence">
      <property name="defaultDataSource">java:comp/env/movieDatabase</property>
      </extension>

      <container qualifier="tomee" default="true">
      <configuration>
      <property name="debug">false</property>
      <property name="httpPort">-1</property>
      <property name="ajpPort">-1</property>
      <property name="stopPort">-1</property>
      <property name="classifier">microprofile</property>
      <property name="conf">src/test/conf</property>
      <property name="dir">target/tomee</property>
      <property name="appWorkingDir">target/workdir</property>
      <property name="cleanOnStartUp">true</property>
      <property name="properties">
      app.version=900
      a.c=cat
      </property>
      </configuration>
      </container>
      </arquillian>


      Dependency



          <version.arquillian>1.1.10.Final</version.arquillian>
      <version.shrinkwrap.resolvers>3.1.3</version.shrinkwrap.resolvers>
      <version.arquillian.persistence>1.0.0.Alpha7</version.arquillian.persistence>

      <dependency>
      <groupId>org.jboss.arquillian.junit</groupId>
      <artifactId>arquillian-junit-container</artifactId>
      <scope>test</scope>
      </dependency>

      <dependency>
      <groupId>org.jboss.shrinkwrap.resolver</groupId>
      <artifactId>shrinkwrap-resolver-depchain</artifactId>
      <version>${version.shrinkwrap.resolvers}</version>
      <scope>test</scope>
      <type>pom</type>
      </dependency>

      <dependency>
      <groupId>org.jboss.arquillian.config</groupId>
      <artifactId>arquillian-config-api</artifactId>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>org.jboss.arquillian.extension</groupId>
      <artifactId>arquillian-persistence-dbunit</artifactId>
      <version>${version.arquillian.persistence}</version>
      <scope>test</scope>
      <exclusions>
      <exclusion>
      <artifactId>arquillian-transaction-jta</artifactId>
      <groupId>org.jboss.arquillian.extension</groupId>
      </exclusion>
      <exclusion>
      <artifactId>commons-logging</artifactId>
      <groupId>commons-logging</groupId>
      </exclusion>
      <exclusion>
      <artifactId>log4j</artifactId>
      <groupId>log4j</groupId>
      </exclusion>
      </exclusions>
      </dependency>

      <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
      </dependency>

      <dependency>
      <groupId>org.apache.tomee</groupId>
      <artifactId>arquillian-tomee-remote</artifactId>
      <version>${tomee.version}</version>
      <scope>test</scope>
      <exclusions>
      <exclusion>
      <artifactId>commons-logging</artifactId>
      <groupId>commons-logging</groupId>
      </exclusion>
      </exclusions>
      </dependency>









      share|improve this question















      I am doing POC with TomEE microprofile and Arquillian DBunit. I referred the program from https://github.com/apache/tomee/blob/master/examples/arquillian-jpa/src/test/java/org/superbiz/arquillian/test/persistence/PersistenceTest.java



      But I am using different class and different methods in my POC. I am getting



      org.apache.openejb.OpenEJBRuntimeException: java.lang.IllegalStateException: No transaction associated with current thread
      Caused by: java.lang.IllegalStateException: No transaction associated with current thread


      Juit



      @RunWith(Arquillian.class)
      @FixMethodOrder(MethodSorters.NAME_ASCENDING)
      public class UserServiceTest {

      @ArquillianResource
      private URI baseURI;

      @PersistenceContext(unitName = "MICRO_DS")
      private EntityManager em;

      @Resource(name = "movieDatabase")
      DataSource dataSource;

      @Deployment()
      public static WebArchive createDeployment() throws IOException {
      PomEquippedResolveStage pomEquippedResolveStage = Maven.resolver().loadPomFromFile("pom.xml");

      File hibernateLibs = pomEquippedResolveStage.resolve(
      "org.hibernate:hibernate-entitymanager"

      ).withTransitivity().asFile();

      final WebArchive webArchive = ShrinkWrap.create(WebArchive.class, "test.war")
      .addPackages(true,"ch.qos.logback")
      .addPackage(UserResource.class.getPackage())
      .addPackage(UserDE.class.getPackage())
      .addPackage(User.class.getPackage())
      .addPackage(UserDao.class.getPackage())
      .addPackage(Utils.class.getPackage())
      .addPackage(BusinessException.class.getPackage())
      .addClass(DataHelper.class)

      .addAsLibraries(hibernateLibs)
      .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
      .addAsResource("test-persistence.xml", "META-INF/persistence.xml")

      .addAsResource("logback.xml","logback.xml")
      .addAsResource("datasets/users.json");

      System.out.println(webArchive.toString(true));
      return webArchive;
      }

      @Test
      @Transactional(TransactionMode.COMMIT)
      @UsingDataSet("datasets/users.json")
      public void test3FindAll() {
      System.out.println("##########################################");
      assertEquals(2, em.createQuery("select count(e) from UserDE e", Number.class).getSingleResult().intValue());
      }


      Persistence.xml



      <persistence-unit name="MICRO_DS" transaction-type="JTA">
      <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
      <jta-data-source>movieDatabase</jta-data-source>
      <class>com.walmart.move.nim.micro.entity.UserDE</class>
      <properties>
      <property name="hibernate.connection.url" value="jdbc:hsqldb:mem:test"/>
      <property name="hibernate.connection.username" value="sa"/>
      <property name="hibernate.connection.password" value=""/>
      <property name="hibernate.hbm2ddl.auto" value="create-drop" />
      <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
      <property name="jdbc.driverClassName" value="org.hsqldb.jdbc.JDBCDriver"/>
      <property name="hibernate.show_sql" value="true"/>
      <property name="hibernate.format_sql" value="true"/>
      <property name="hibernate.enable_lazy_load_no_trans" value="true"/>
      </properties>

      </persistence-unit>


      Arquillian.xml



      <arquillian xmlns="http://jboss.org/schema/arquillian"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="
      http://jboss.org/schema/arquillian
      http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

      <extension qualifier="persistence">
      <property name="defaultDataSource">java:comp/env/movieDatabase</property>
      </extension>

      <container qualifier="tomee" default="true">
      <configuration>
      <property name="debug">false</property>
      <property name="httpPort">-1</property>
      <property name="ajpPort">-1</property>
      <property name="stopPort">-1</property>
      <property name="classifier">microprofile</property>
      <property name="conf">src/test/conf</property>
      <property name="dir">target/tomee</property>
      <property name="appWorkingDir">target/workdir</property>
      <property name="cleanOnStartUp">true</property>
      <property name="properties">
      app.version=900
      a.c=cat
      </property>
      </configuration>
      </container>
      </arquillian>


      Dependency



          <version.arquillian>1.1.10.Final</version.arquillian>
      <version.shrinkwrap.resolvers>3.1.3</version.shrinkwrap.resolvers>
      <version.arquillian.persistence>1.0.0.Alpha7</version.arquillian.persistence>

      <dependency>
      <groupId>org.jboss.arquillian.junit</groupId>
      <artifactId>arquillian-junit-container</artifactId>
      <scope>test</scope>
      </dependency>

      <dependency>
      <groupId>org.jboss.shrinkwrap.resolver</groupId>
      <artifactId>shrinkwrap-resolver-depchain</artifactId>
      <version>${version.shrinkwrap.resolvers}</version>
      <scope>test</scope>
      <type>pom</type>
      </dependency>

      <dependency>
      <groupId>org.jboss.arquillian.config</groupId>
      <artifactId>arquillian-config-api</artifactId>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>org.jboss.arquillian.extension</groupId>
      <artifactId>arquillian-persistence-dbunit</artifactId>
      <version>${version.arquillian.persistence}</version>
      <scope>test</scope>
      <exclusions>
      <exclusion>
      <artifactId>arquillian-transaction-jta</artifactId>
      <groupId>org.jboss.arquillian.extension</groupId>
      </exclusion>
      <exclusion>
      <artifactId>commons-logging</artifactId>
      <groupId>commons-logging</groupId>
      </exclusion>
      <exclusion>
      <artifactId>log4j</artifactId>
      <groupId>log4j</groupId>
      </exclusion>
      </exclusions>
      </dependency>

      <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
      </dependency>

      <dependency>
      <groupId>org.apache.tomee</groupId>
      <artifactId>arquillian-tomee-remote</artifactId>
      <version>${tomee.version}</version>
      <scope>test</scope>
      <exclusions>
      <exclusion>
      <artifactId>commons-logging</artifactId>
      <groupId>commons-logging</groupId>
      </exclusion>
      </exclusions>
      </dependency>






      java-ee transactions jboss-arquillian tomee dbunit






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited yesterday

























      asked yesterday









      Gnana

      5132625




      5132625





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53399928%2farquillian-dbunit-transaction%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53399928%2farquillian-dbunit-transaction%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Berounka

          Sphinx de Gizeh

          Different font size/position of beamer's navigation symbols template's content depending on regular/plain...