Bug 961470 - Regression: CDI portable extensions with missing dependencies fail to deploy
Summary: Regression: CDI portable extensions with missing dependencies fail to deploy
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: CDI/Weld
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER1
: EAP 6.2.0
Assignee: Stuart Douglas
QA Contact: Ron Šmeral
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-09 16:50 UTC by Ron Šmeral
Modified: 2016-11-01 01:37 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-12-15 16:20:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Server log (52.07 KB, text/x-log)
2013-05-09 16:50 UTC, Ron Šmeral
no flags Details
Reproducer (2.68 KB, application/x-java-archive)
2013-05-09 16:55 UTC, Ron Šmeral
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 960002 0 unspecified CLOSED Regression: Nested class within an invalid class causes deployment failure 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker WFLY-1328 0 Major Resolved Regression: CDI portable extensions with missing dependencies fail to deploy 2014-05-09 15:09:51 UTC

Internal Links: 960002

Description Ron Šmeral 2013-05-09 16:50:36 UTC
Created attachment 745732 [details]
Server log

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):
6.1.0.ER6

How reproducible:
Deploy the attached reproducer.
  
Actual results:
The deployment fails with an error (LinkageError).

Expected results:
The archive deploys with a warning.

Comment 1 Ron Šmeral 2013-05-09 16:51:28 UTC
Comment on attachment 745732 [details]
Server log

First AS run: ER7
Second run: ER7 patched: https://github.com/rsmeral/jboss-as/commit/014c5bbb

Comment 2 Ron Šmeral 2013-05-09 16:55:50 UTC
Created attachment 745734 [details]
Reproducer

Comment 5 Stuart Douglas 2013-05-10 01:52:12 UTC
Pull Request:

https://github.com/jbossas/jboss-eap/pull/147

Upstream PR:

https://github.com/wildfly/wildfly/pull/4489

Comment 9 Ivo Studensky 2013-08-15 08:38:37 UTC
This one was missed in 6.1.1 planning, thus moving it to 6.2.0.

Comment 10 Ron Šmeral 2013-09-11 10:27:40 UTC
Verified on 6.2.0.ER1.


Note You need to log in before you can comment on or make changes to this bug.