-
1. Re: @Inject problem
aslak Aug 21, 2013 5:58 AM (in response to arnd)try using .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") instead
META-INF/ vs WEB-INF/
-
2. Re: @Inject problem
arnd Aug 21, 2013 8:08 AM (in response to aslak)Hi Asiak, i get the same behvior. Arnd
-
3. Re: @Inject problem
malk182 Aug 21, 2013 9:56 AM (in response to arnd)Only class add in addClass will be build and deployed.
Maybe the com.zimory.connect.accounting.dataservice.impl.TestBeanIT.bean need to be added.
-
4. Re: @Inject problem
arnd Aug 22, 2013 5:10 AM (in response to malk182)hi,
forget about this package. I have a test "TestBeanIT" which needs the a TestBean to be injected with the name "bean". As you see i have added TestBean.class. In my mind, this should allow the test to run properly. There is no other class to be added to the archive. If needed please redo this simple test on your machine. It really simple.
Arnd
-
5. Re: @Inject problem
aslak Aug 27, 2013 7:46 AM (in response to arnd)You're correct. This is a bug in the integration somewhere between CDI, EJB and WebServices. See same behavior on JBoss AS 7, JBoss EAP 6.1 and WildFly 8 Alpha4.
Reported the following: