You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by hwaastad <he...@waastad.org> on 2014/09/04 11:31:53 UTC

Arquillian persistence and tomee embedded

Hi,
I've startet to see if I can get arquillian/persistence and tomee embedded
up and running for my tests, 
Iv'e got it runnig, but datasets are not being loaded.
I've seen a couple of remarks on the list earlier, but I have'nt gotten any
wiser....

https://github.com/hwaastad/ArquillianTomeePersistence.git

I guess there is something obvious missing, but right now I'm out of ideas.

This kind of testing is, btw, something that might be interesting for tomee
examples.

Very greateful if someone has an idea or two :-)

br hw



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Arquillian-persistence-and-tomee-embedded-tp4671595.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Arquillian persistence and tomee embedded

Posted by hwaastad <he...@waastad.org>.
Cool,
I'll have a look:-)

br hw



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Arquillian-persistence-and-tomee-embedded-tp4671595p4674649.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Arquillian persistence and tomee embedded

Posted by Alex Soto <as...@gmail.com>.
I have got the same for embedded one in github.com/scytl/jpaguide
El dt., 5 de maig, 2015 a les 21.36 hwaastad <he...@waastad.org> va
escriure:

> Hi,
> I'm not trying to TD this one, but I just want to say that I got an
> arquillian/persistence/deltaspike/CMT/JAX-RS/tomee remote testbed running
> in
> this project.
>
> https://github.com/hwaastad/ArquillianTomeePersistence.git
>
> It's a result of reading carefully the arquillian-jpa example and adding
> tuning for ds alternatives. (and using correct junit version)
>
> Hopefully it'll help others using less time to get it working.
>
> br hw
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Arquillian-persistence-and-tomee-embedded-tp4671595p4674647.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Re: Arquillian persistence and tomee embedded

Posted by hwaastad <he...@waastad.org>.
Hi,
I'm not trying to TD this one, but I just want to say that I got an
arquillian/persistence/deltaspike/CMT/JAX-RS/tomee remote testbed running in
this project.

https://github.com/hwaastad/ArquillianTomeePersistence.git

It's a result of reading carefully the arquillian-jpa example and adding
tuning for ds alternatives. (and using correct junit version)

Hopefully it'll help others using less time to get it working.

br hw
 



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Arquillian-persistence-and-tomee-embedded-tp4671595p4674647.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Arquillian persistence and tomee embedded

Posted by hwaastad <he...@waastad.org>.
Hi,
got it. 
Had to exclude config-spi/api from dbunit.

Thanks!

Now I just have to see if this works. I'm not quite sure I have a good
feeling about it :-)

br hw



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Arquillian-persistence-and-tomee-embedded-tp4671595p4671713.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Arquillian persistence and tomee embedded

Posted by Romain Manni-Bucau <rm...@gmail.com>.
check your dependency:tree but you have arquillian config in version
1.1.3.Final instead of 1.1.5.Final


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-10 21:59 GMT+02:00 hwaastad <he...@waastad.org>:
> Hi Romain.
> I tried.
>
> I use arquillian-bom 1.1.5.Final
>
> But I also see that the arquillian-persistence-xx-1.0.0.alpha7 is compiled
> against 1.1.3Final....
>
> Not sure if this is the problem or if it is my arquillian configuration. Im
> using the same configuration as I would do testing "In project" persistence
> testing.
>
> br hw
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Arquillian-persistence-and-tomee-embedded-tp4671595p4671710.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Arquillian persistence and tomee embedded

Posted by hwaastad <he...@waastad.org>.
Hi Romain.
I tried.

I use arquillian-bom 1.1.5.Final

But I also see that the arquillian-persistence-xx-1.0.0.alpha7 is compiled
against 1.1.3Final....

Not sure if this is the problem or if it is my arquillian configuration. Im
using the same configuration as I would do testing "In project" persistence
testing.

br hw



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Arquillian-persistence-and-tomee-embedded-tp4671595p4671710.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Arquillian persistence and tomee embedded

Posted by Romain Manni-Bucau <rm...@gmail.com>.
hi

you have to align versions, here arquillian should be too old

I often use maven dependencyconvergence rule of enforcer plugin to get
rid of these issues


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-10 21:33 GMT+02:00 hwaastad <he...@waastad.org>:
> Hi,
> a followup on persistence testing.
>
> Running micro deployment is OK using tomee remote.
>
> My next question is:
> Is it possible to do this kind of testing using a war artifact?
>
> eks deployment:
>
> File[] libs =
> Maven.resolver().resolve("org.eclipse.persistence:eclipselink:2.5.2").withTransitivity().asFile();
>         return
> Maven.resolver().loadPomFromFile("pom.xml").resolve("org.waastad:Service:war:1.0.0-SNAPSHOT").withoutTransitivity().asSingle(WebArchive.class)
>                 .addAsLibraries(libs);
>
> right now the error is:
>
> java.lang.NoSuchMethodError:
> org.jboss.arquillian.config.descriptor.api.EngineDef.getDeploymentExportExploded()Ljava/lang/Boolean;
>         at
> org.jboss.arquillian.container.impl.client.deployment.ArchiveDeploymentExporter.callback(ArchiveDeploymentExporter.java:59)
>
> I can off cource make a method adding values to the hsql mem db, I just want
> to see my options :-)
>
> br hw
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Arquillian-persistence-and-tomee-embedded-tp4671595p4671708.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Arquillian persistence and tomee embedded

Posted by hwaastad <he...@waastad.org>.
Hi,
a followup on persistence testing.

Running micro deployment is OK using tomee remote.

My next question is:
Is it possible to do this kind of testing using a war artifact?

eks deployment:

File[] libs =
Maven.resolver().resolve("org.eclipse.persistence:eclipselink:2.5.2").withTransitivity().asFile();
        return
Maven.resolver().loadPomFromFile("pom.xml").resolve("org.waastad:Service:war:1.0.0-SNAPSHOT").withoutTransitivity().asSingle(WebArchive.class)
                .addAsLibraries(libs);

right now the error is:

java.lang.NoSuchMethodError:
org.jboss.arquillian.config.descriptor.api.EngineDef.getDeploymentExportExploded()Ljava/lang/Boolean;
	at
org.jboss.arquillian.container.impl.client.deployment.ArchiveDeploymentExporter.callback(ArchiveDeploymentExporter.java:59)

I can off cource make a method adding values to the hsql mem db, I just want
to see my options :-)

br hw



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Arquillian-persistence-and-tomee-embedded-tp4671595p4671708.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Arquillian persistence and tomee embedded

Posted by Romain Manni-Bucau <rm...@gmail.com>.
last time I looked it was broken cause of arquillian not tomee. Can
workaround it using servlet protocol (I recommand 2.5) instead of
local one (default)


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-04 21:07 GMT+02:00 hwaastad <he...@waastad.org>:
> Hi,
> I updated my project using tomee-remote.....and added a missing
> arquillian-persistence-dbunit deps.....and voila :-)
>
> Its just a basic implementation, but for those interested at least its a
> basic framework for tomee and arq persistence.
>
>
> btw Romain,
> will you do som magic to get the embedded working aswell?
> Not that important, but performance would benefit.
>
> br hw
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Arquillian-persistence-and-tomee-embedded-tp4671595p4671654.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Arquillian persistence and tomee embedded

Posted by hwaastad <he...@waastad.org>.
Hi,
I updated my project using tomee-remote.....and added a missing
arquillian-persistence-dbunit deps.....and voila :-)

Its just a basic implementation, but for those interested at least its a
basic framework for tomee and arq persistence.


btw Romain, 
will you do som magic to get the embedded working aswell?
Not that important, but performance would benefit.

br hw



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Arquillian-persistence-and-tomee-embedded-tp4671595p4671654.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Arquillian persistence and tomee embedded

Posted by Romain Manni-Bucau <rm...@gmail.com>.
it should yes


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-04 13:45 GMT+02:00 hwaastad <he...@waastad.org>:
> So...it will work using tomee-remote?
>
> br hw
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Arquillian-persistence-and-tomee-embedded-tp4671595p4671604.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Arquillian persistence and tomee embedded

Posted by hwaastad <he...@waastad.org>.
So...it will work using tomee-remote?

br hw



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Arquillian-persistence-and-tomee-embedded-tp4671595p4671604.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Arquillian persistence and tomee embedded

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

IIRC arquillian persistence is broken in embedded mode


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-04 11:31 GMT+02:00 hwaastad <he...@waastad.org>:
> Hi,
> I've startet to see if I can get arquillian/persistence and tomee embedded
> up and running for my tests,
> Iv'e got it runnig, but datasets are not being loaded.
> I've seen a couple of remarks on the list earlier, but I have'nt gotten any
> wiser....
>
> https://github.com/hwaastad/ArquillianTomeePersistence.git
>
> I guess there is something obvious missing, but right now I'm out of ideas.
>
> This kind of testing is, btw, something that might be interesting for tomee
> examples.
>
> Very greateful if someone has an idea or two :-)
>
> br hw
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Arquillian-persistence-and-tomee-embedded-tp4671595.html
> Sent from the TomEE Users mailing list archive at Nabble.com.