[seam-issues] [JBoss JIRA] Updated: (SEAMVALIDATE-18) ValidationExtension conflicts with Weld built-in Validator
Jan Groth (JIRA)
jira-events at lists.jboss.org
Sun Apr 24 11:30:18 EDT 2011
[ https://issues.jboss.org/browse/SEAMVALIDATE-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Groth updated SEAMVALIDATE-18:
----------------------------------
Description:
Beeing on a project with the full Seam 3 stack, using:
{code}
@Inject
private Validator validator;
{code}
results in a deployment exception:
{{WELD-001318 Cannot resolve an ambiguous dependency between}}
org.jboss.seam.validation.ValidationExtension$2 at 38f8cf74,
Built-in Bean [javax.validator.Validator] with qualifiers [@Default]
I suspect the following code from ValidationExtension.java to be unaware of the Weld built-in component "javax.validator.Validator":
{code}
// do nothing, if Validator already exists
if (!bm.getBeans(Validator.class).isEmpty()) {
return;
}
{code}
If the code is executed it works fine, but it seems as if the Weld-Component is installed _after_ ValidationExtension registers its validator...
was:
Beeing on a project with the full Seam 3 stack, using:
{code}
@Inject
private Validator validator;
{code}
results in a deployment exception:
{{WELD-001318 Cannot resolve an ambiguous dependency between}}
org.jboss.seam.validation.ValidationExtension$2 at 38f8cf74,
Built-in Bean [javax.validator.Validator] with qualifiers [@Default]
I suspect the following code from ValidationException.java to be unaware of the Weld built-in component "javax.validator.Validator":
{code}
// do nothing, if Validator already exists
if (!bm.getBeans(Validator.class).isEmpty()) {
return;
}
{code}
If the code is executed it works fine, but it seems as if the Weld-Component is installed _after_ ValidationExtension registers its validator...
> ValidationExtension conflicts with Weld built-in Validator
> ----------------------------------------------------------
>
> Key: SEAMVALIDATE-18
> URL: https://issues.jboss.org/browse/SEAMVALIDATE-18
> Project: Seam Validation
> Issue Type: Bug
> Reporter: Jan Groth
> Assignee: Gunnar Morling
>
> Beeing on a project with the full Seam 3 stack, using:
> {code}
> @Inject
> private Validator validator;
> {code}
> results in a deployment exception:
> {{WELD-001318 Cannot resolve an ambiguous dependency between}}
> org.jboss.seam.validation.ValidationExtension$2 at 38f8cf74,
> Built-in Bean [javax.validator.Validator] with qualifiers [@Default]
> I suspect the following code from ValidationExtension.java to be unaware of the Weld built-in component "javax.validator.Validator":
> {code}
> // do nothing, if Validator already exists
> if (!bm.getBeans(Validator.class).isEmpty()) {
> return;
> }
> {code}
> If the code is executed it works fine, but it seems as if the Weld-Component is installed _after_ ValidationExtension registers its validator...
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list