Hi Marek,
I merged your modifications and now the test work with weld-embeded-ee container. With the
JBoss-as6-managed container I have the following issue :
[WARNING] Could not transfer metadata org.jvnet.staxex:stax-ex/maven-metadata.xml from/to
BTW why did you chose a Jboss managed container versus à Jboss embedded ?
Thanks,
Antoine
Le 30 mai 2011 à 16:03, Marek Schmidt a écrit :
----- Original Message -----
> From: "Antoine Sabot-Durand" <antoine(a)sabot-durand.net>
> To: seam-dev(a)lists.jboss.org
> Sent: Sunday, May 29, 2011 7:17:01 PM
> Subject: [seam-dev] Arquillian : Help needed
> Hi team,
>
> I'm a bit lost with Arquillian. I created a first test in Seam-social
> impl project. It took me one day to correctly set up my pom to have it
> running in a weld embedded container (yes I RTFM) and now I have issue
> with injection (ambiguous injection) with a bean redefined by Seam
> Config. I push my code to github (head of develop branch) and the test
> class is org.jboss.seam.social.test.TwitterTest
> I launch it by a simple mvn test.
>
> Thanks for any help or clue, if you need more information tell me.
Hi Antoine,
I have tried to make the test work on both the weld-embedded and jboss managed profiles,
take a look at
https://github.com/maschmid/social/commit/17cbe1fe2d0f0539a3e275c3eb81893...
I *think* the primary problem is that Seam config doesn't pick up the beans.xml in
the .jar archive in that configuration, so I changed it to WebArchive and added the seam
config jar to it which seems to help.
The other stuff there is to make the test work on jboss managed, where it needs to
include the dependencies... It is probably not necessary to do for the weld-embedded
profile, as the dependencies are in the classpath when the test runs, but that won't
work anywhere else...
I also include all the classes from the relevant seam social packages as it seemed some
were still missing to make it deployable but it was hard to tell exactly which, so
don't merge it just now, as it's ugly, I'll try to investigate further...
hope that helps
Marek
--
Marek Schmidt
Seam QE
>
> regards,
>
> Antoine
>
>
>
>
>
>
>
>
>
> _______________________________________________
> seam-dev mailing list
> seam-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/seam-dev