Issue Details (XML | Word | Printable)

Key: GLASSFISH-20442
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: mtaube
Reporter: mtaube
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

restore BeanValidatorNamingProxy to nucleus

Created: 30/Apr/13 04:07 PM   Updated: 30/Apr/13 04:28 PM   Resolved: 30/Apr/13 04:28 PM
Component/s: bean-validator
Affects Version/s: 4.0_b86_RC2
Fix Version/s: 4.0_b87_RC3

Time Tracking:
Not Specified

Tags: 4_0-approved
Participants: mtaube

 Description  « Hide

BeanValidatorNamingProxy was recently removed from nucleus, favoring an alternate implementation (in weld-integration) that integrates with CDI (since the Validator/ValidatorFactory needs to be retrieved from CDI when available). This is problematic in appclient distribution where the weld-integration module is not present.

The solution is to restore BeanValidatorNamingProxy and delegate to the weld-integration if available (implemented with @Inject @Optional @Named(...)).. This way, CDI will be interrogated for Validator objects if CDI is available, but the object will be returned either way.

mtaube added a comment - 30/Apr/13 04:10 PM

This bug is causing the following CTS failure: com/sun/ts/tests/ejb30/misc/jndi/earjar/ Client_beanValidator

mtaube added a comment - 30/Apr/13 04:13 PM

What is the impact on the customer of the bug?
appclients cannot look up Validator/ValidatorFactory from jndi

How likely is it that a customer will see the bug and how serious is the bug?

Is it a regression?

Does it meet other bug fix criteria (security, performance, etc.)?

What CTS failures are caused by this bug?
com/sun/ts/tests/ejb30/misc/jndi/earjar/ Client_beanValidator

What is the cost/risk of fixing the bug?

How risky is the fix? How much work is the fix? Is the fix complicated?
Low – restores previous behavior and adds a delegation model

Is there an impact on documentation or message strings?

Which tests should QA (re)run to verify the fix did not destabilize GlassFish?
EJB, EJB cts, bean-validation CTS

Which is the targeted build of 4.0 for this fix?

If this an integration of a new version of a component from another project,
what are the changes that are being brought in? This might be list of
Jira issues from that project or a list of revision messages.

mtaube added a comment - 30/Apr/13 04:27 PM

Sending appserver/web/weld-integration/src/main/java/org/glassfish/weld/
Adding nucleus/core/kernel/src/main/java/org/glassfish/kernel/bean_validator/
Transmitting file data ..
Committed revision 61753.