Is CDI even supposed to work in the AS7-branch? I used the sandbox/as7_support/tags/AS7-Beta03 but then I noticed that sandbox has a cdi_support branch, those are not merged, are they?
CDI support branch in sandbox is a prototype of CDI support in portlets. It only covers portlets not any bridge technologies. It also is primarily an exploration of what GateIn services to make available for injection, and how to target specific gatein kernel containers.
It has not yet been integrated into trunk, and hasn't been brought up to date with the trunk for quite a while.
So in short, currently GateIn doesn't provide CDI injection in portlets. And JBoss Portlet Bridge doesn't have any special support for CDI either ATM (meaning it does not provide any custom CDI extension, or API of injectable types to support generic Portlet environment, and specific GateIn environment).
But, if a .war contains beans.xml, AS7 Weld subsystem should kick in and do its thing. Are you sure your beans.xml is in the right place? Otherwise maybe JPB inadvertently somehow breaks the default functioning of CDI ?
Pretty sure beans.xml is in the right place (and the log shows Weld service being started which probably wouldn't happen without the beans.xml)
Try debug it to see what's going on
Yes but between the deployers in AS7, gatein code and bridge code there are lots of places where stuff can (and won't) happen...
Hopefully next week I'll be more focused on PBR 3.x and will be able to verify whether this works or not!