tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michiel Graat <>
Subject RE: ClassNotFoundExceptions on more than two Arquillian tests
Date Fri, 20 Sep 2013 11:48:34 GMT
Hi John,

Yes I was but I checked again to be certain. As I said: running a single or two testclasses
works fine, more than two results in problems. If hsqldb was not included running a single
or two testclasses would also not work.

Kind regards,


-----Original Message-----
From: John D. Ament [] 
Sent: donderdag 19 september 2013 17:19
Subject: Re: ClassNotFoundExceptions on more than two Arquillian tests


Just wondering, are you including hsqldb in your war file?


On Thu, Sep 19, 2013 at 11:10 AM, Michiel Graat <> wrote:
> Hi guys,
> I have been trying to use Arquillian/TomEE but I have run into a strange problem. Whenever
I try to run more than two arquillian testclasses in one testrun I get ClassNotFoundExceptions
for the org.hsqldb.jdbc.Util class. If I run the testclasses separately or two at a time everything
works fine.
> I use arquillian 1.1.1.Final with TestNG, arquillian-tomee-remote 1.5.2 for webprofile
and shrinkwrap 2.0.0. My deployment method looks like this:
> @Deployment
> public static WebArchive createDeployment() { File[] deps =
> Maven.resolver()
> .loadPomFromFile("pom.xml")
> .importRuntimeAndTestDependencies()
> .resolve().withTransitivity().asFile();
> return ShrinkWrap.create(WebArchive.class, "dbs.war")
>         .addPackages(true, "")
>         .addAsManifestResource("META-INF/test-persistence.xml", "persistence.xml")
>         .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
>         .addAsLibraries(deps)
>         .addAsResource("", 
> ""); }
> I remember seeing HSQLDB lock errors when trying to run more than two testclasses but
I cannot seem to reproduce them anymore.
> You can find a log of a failed run here (split into 3 parts, because its > 1 MB total,
lots of repetition of stacktraces though), in it I try to run three tests:
> (part 1)
> (part 2)
> (part 3)
> A successful run (two tests) can be found here:
> This problem has kept me occupied for days now but I cannot seem to find the cause or
a solution. Do you guys have any idea?
> Kind regards,
> Michiel

View raw message