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,

Michiel

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

Michiel,

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

John

On Thu, Sep 19, 2013 at 11:10 AM, Michiel Graat <[email protected]> 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, "foo.bar.dbs")
>         .addAsManifestResource("META-INF/test-persistence.xml", 
> "persistence.xml")
>         .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
>         .addAsLibraries(deps)
>         .addAsResource("messages_nl.properties", 
> "messages_nl.properties"); }
>
> 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:
>
> http://pastebin.com/KvQtJ6LH (part 1)
> http://pastebin.com/Ww6rSDGw (part 2)
> http://pastebin.com/6YpdKXq4 (part 3)
>
> A successful run (two tests) can be found here:
>
> http://pastebin.com/2HBnAKPw
>
> 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

Reply via email to