Hi Romain, I havre tried with remote adapter and excluding arquillian-transaction-jta dependency and next exception is thrown:
java.lang.NullPointerException at org.jboss.arquillian.transaction.impl.lifecycle.TransactionHandler.testRequiresRollbackDueToFailure(TransactionHandler.java:150) at org.jboss.arquillian.transaction.impl.lifecycle.TransactionHandler.rollbackRequired(TransactionHandler.java:140) on the other way if I remove the openejb-transaction-provider (and of course add the arquillian transaction), I get next exception: java.lang.NoClassDefFoundError: org/apache/openejb/arquillian/transaction/OpenEJBTransactionProvider at org.apache.tomee.arquillian.remote.RemoteTomEEEJBEnricherArchiveAppender.createAuxiliaryArchive(RemoteTomEEEJBEnricherArchiveAppender.java:33) at org.jboss.arquillian.container.test.impl.client.deployment.DeploymentGenerator.loadAuxiliaryArchives(DeploymentGenerator.java:209) I am going to start a downgrade of APE to see if there is one version which works. Anyway any thoughts on that? 2014-10-01 12:38 GMT+02:00 Alex Soto <[email protected]>: > No idea I am going to try it, I have read some old posts but APE and TomEE > embedded, now let me finish another example using (cukesInSpace) and then I > will run. > > 2014-10-01 12:34 GMT+02:00 Romain Manni-Bucau <[email protected]>: > >> Hi >> >> you can exclude openejb-transaction-provider or exclude (better) >> arquillian-transaction-jta. >> >> It didn't work in embedded mode with version 1.0.0.Alpha3 cause >> embedded mode is not supported AFAIK, that's why you have to use the >> workaround I mentionned in several threads/posts. Do you think it is >> fixed in alpha7. >> >> >> Romain Manni-Bucau >> Twitter: @rmannibucau >> Blog: http://rmannibucau.wordpress.com/ >> LinkedIn: http://fr.linkedin.com/in/rmannibucau >> Github: https://github.com/rmannibucau >> >> >> 2014-10-01 11:29 GMT+02:00 Alex Soto <[email protected]>: >> > Hi guys, >> > >> > I am developing an example of Arquillian Persistence Extension (Alpha7) >> > with Apache TomEE 1.7.1. >> > >> > First I have tried to run the example using Apache TomEE embedded >> adapter. >> > AndI have found that the dataset was not populated to database. BEfore >> > trying to know if the problem could be at TomEE or Arquillian or in >> both,I >> > have tried the same example but using TomEE Remote adapter. In that >> case, >> > next exception is thrown: >> > >> > Multiple service implementations found for interface >> > org.jboss.arquillian.transaction.spi.provider.TransactionProvider. >> > org.jboss.arquillian.transaction.jta.provider.JtaTransactionProvider, >> > org.apache.openejb.arquillian.transaction.OpenEJBTransactionProvider >> > >> > Yes I know the cause (message is quite informative), and probably this >> is >> > exactly the same why embedded tomee does not work. >> > >> > Do you have any advice to fix this problem in a clear way? >> > >> > Side note: APE Alpha7 added as a project arquillian transaction so maybe >> > for this reason the problem has not been appeared since now. >> > >> > Alex. >> > >> > -- >> > +----------------------------------------------------------+ >> > Alex Soto Bueno - Computer Engineer >> > www.lordofthejars.com >> > +----------------------------------------------------------+ >> > > > > -- > +----------------------------------------------------------+ > Alex Soto Bueno - Computer Engineer > www.lordofthejars.com > +----------------------------------------------------------+ > -- +----------------------------------------------------------+ Alex Soto Bueno - Computer Engineer www.lordofthejars.com +----------------------------------------------------------+
