Red Hat Bugzilla – Bug 961470
Regression: CDI portable extensions with missing dependencies fail to deploy
Last modified: 2016-10-31 21:37:00 EDT
Created attachment 745732 [details]
Description of problem:
CDI portable extensions fail to deploy if the extension class is invalid -- has a dependency on a class unavailable to the classloader.
Note: In ER5, the extension would deploy with just a warning from Weld.
Note: This commit https://github.com/weld/core/commit/34bcce3f does not fix the extension deployment error.
The problem seems to be in the AS/Weld integration.
Possible workaround is to catch the LinkageError in org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor, as in https://github.com/rsmeral/jboss-as/commit/014c5bbb.
Version-Release number of selected component (if applicable):
Deploy the attached reproducer.
The deployment fails with an error (LinkageError).
The archive deploys with a warning.
Comment on attachment 745732 [details]
First AS run: ER7
Second run: ER7 patched: https://github.com/rsmeral/jboss-as/commit/014c5bbb
Created attachment 745734 [details]
This one was missed in 6.1.1 planning, thus moving it to 6.2.0.
Verified on 6.2.0.ER1.