The sample webapp is here:
http://search.maven.org/remotecontent?filepath=org/ops4j/pax/exam/samples/pax-exam-sample1-web/3.0.0.M4/pax-exam-sample1-web-3.0.0.M4.war
Sources:
https://github.com/ops4j/org.ops4j.pax.exam2/tree/exam3-milestones/samples
When you copy the Maven WAR to TomEE/webapps, the injection problem is
at first hidden by an exception caused by an empty faces-config.xml (but
this should be legal according to the JSF spec.)
After adding some valid XML to the file, deployment fails with this
exception:
SEVERE: CDI Beans module deployment failed
javax.enterprise.inject.UnsatisfiedResolutionException: Api type
[org.ops4j.pax.exam.sample1.service.LibraryService] is not found with
the qualifiers
Qualifiers: [@javax.enterprise.inject.Default()]
for injection into Field Injection Point, field name : libraryService,
Bean Owner : [LibraryBean, Name:library, WebBeans Type:MANAGED, API
Types:[java.lang.Object,org.ops4j.pax.exam.sample1.web.LibraryBean],
Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named]]
at
org.apache.webbeans.util.InjectionExceptionUtils.throwUnsatisfiedResolutionException(InjectionExceptionUtils.java:77)
Best regards,
Harald
Am 11.10.2012 11:39, schrieb Romain Manni-Bucau:
Hi,
This should work, maybe share your app if you can to let us reproduce it.
- Romain
Le 11 oct. 2012 11:37, "Harald Wellmann" <hwellmann...@gmail.com> a écrit :
Yes, there is.
2012/10/10 Romain Manni-Bucau <rmannibu...@gmail.com>:
Hi,
is there a beans.xml in WEB-INF?