right should be fixed on trunk (just fixed) *Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau*
2012/11/9 Baker, Trevor <[email protected]> > Ah. Yes. Thanks. I knew I was missing something. > > I did change it up from a JavaArchive to a WebArchive. The CDI injection > works when the beans.xml exists as WEB-INF/beans.xml but does not as > WEB-INF/classes/META-INF/beans.xml. > > Trev > > -----Original Message----- > From: Romain Manni-Bucau [mailto:[email protected]] > Sent: Wednesday, November 07, 2012 11:18 PM > To: OpenEJB Users > Subject: Re: cdi-basic-arquillian > > Hi, > > yeah, you forgot the little "active me cdi please" detail: > META-INF/beans.xml. That's why you don't get any managed bean. > > Not sure you are familiar with arquillian so saying it: it is done using > addAsManifestResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml")) > > *Romain Manni-Bucau* > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > *Blog: **http://rmannibucau.wordpress.com/*< > http://rmannibucau.wordpress.com/> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > *Github: https://github.com/rmannibucau* > > > > > 2012/11/8 Baker, Trevor <[email protected]> > > > Hi,**** > > > > ** ** > > > > I was trying to convert the cdi-basic example to use Arquillian. I ran > > into a problem because Faculty cannot be injected into Course unless > > Faculty is a @ManagedBean (or @Stateless). However, in the original > > cdi-basic example Faculty isn't a @ManagedBean and the test runs > > green.*** > > * > > > > ** ** > > > > Wondering if I'm missing some config or something else.**** > > > > ** ** > > > > I've attached the cdi-basic-arquillian example.**** > > > > ** ** > > > > Thanks,**** > > > > Trev**** > > >
