Guillaume Nodet commented on Bug WELD-1309

I have experimented with adding the classloaders of the required bundle to discover extensions, but that's really not sufficient.
The problem I faced was that CDI classes are not discovered either, so I modified the BundleBeanDeploymentArchiveFactory to also find beans inside required bundles. It seems to work, though I end up with warnings such as:

2013-01-23 12:23:12,001 | WARN  | l Console Thread | ServicePublisher                 | mpl.integration.ServicePublisher   96 | 57 - org.jboss.weld.osgi.core.extension - 1.2.0.SNAPSHOT | Class file org.apache.deltaspike.example.echo.EchoService is inaccessible

That's because the ServicePublisher only use the bundle to load bean classes. Not sure if that's really a problem.
I've started a discussion on the dev thread.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira