I didnt run it (hard from my phone ;) but can be a limitation of arquillian
in embedded mode (I hacked it a lot for openejb embedded adapter). I guess
test classloader is not the app one and then tomee uses a wrong context to
do injections.

Embedded tests have a lot of issues cause of start classloader....but it
often passes and they are faster so another trade off to find
Le 29 déc. 2013 00:04, "hasalex" <[email protected]> a écrit :

> This test is failing with tomee-embedded :
>
> https://github.com/hasalex/tomee-sample/blob/QuestionOnML/tomee-sample-war/src/test/java/fr/sewatech/javaee/example/WarInEarTest.java
> .
> The deployment is broken, due to CDI injection
> (UnsatisfiedResolutionException).
> In tomee-remote, the test ends up with success.
>
> Everything is fine if I deploy the war file without its ear envelope.
>
> Bug or something wrong in my test ?
>
> Alexis
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/CDI-injection-problem-for-Arquillian-with-war-within-an-ear-file-tp4666906.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to