bval-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tulsiram (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BVAL-152) WELD-001409: Ambiguous dependencies for type Validator with qualifiers
Date Wed, 26 Apr 2017 21:31:04 GMT

    [ https://issues.apache.org/jira/browse/BVAL-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15985601#comment-15985601
] 

Tulsiram commented on BVAL-152:
-------------------------------

Hi, Thanks a lot for your response. 

After adding above system property in Glassfish, I am getting below exception saying that
unable to find provider: class org.apache.bval.jsr.ApacheValidationProvider. 

javax.enterprise.web|_ThreadID=1349;_ThreadName=admin-thread-pool(57);_TimeMillis=1491506794200;_LevelValue=1000;|WebModule[/hopsworks$
javax.validation.ValidationException: Unable to find provider: class org.apache.bval.jsr.ApacheValidationProvider
        at javax.validation.Validation$ProviderSpecificBootstrapImpl.configure(Validation.java:224)
        at io.airlift.configuration.ConfigurationFactory.<clinit>(ConfigurationFactory.java:83)
        at io.hops.hopsworks.api.airpal.modules.AirpalModule.provideConfigurationFactory(AirpalModule.java:191)

Have you got this kind of issue ? Please let me know if you have any solution for this issue.


Thanks in advance.

Regards,
TulsiRam

> WELD-001409: Ambiguous dependencies for type Validator with qualifiers
> ----------------------------------------------------------------------
>
>                 Key: BVAL-152
>                 URL: https://issues.apache.org/jira/browse/BVAL-152
>             Project: BVal
>          Issue Type: Bug
>          Components: jsr303, method validation
>            Reporter: Tulsiram
>
> Hi Team,
> We have got below deployment exception on Glassfish Server.
> WELD-001409: Ambiguous dependencies for type Validator with qualifiers @Default
>   at injection point [UnbackedAnnotatedField] 
>   @Inject 
>   private org.hibernate.validator.internal.cdi.interceptor.ValidationInterceptor.validator
>   
>   at org.hibernate.validator.internal.cdi.interceptor.ValidationInterceptor.validator(ValidationInterceptor.java:0)
>   Possible dependencies: 
>   - ValidatorBean [id=org.hibernate.validator.internal.cdi.ValidatorBean_default],
>   - org.apache.bval.cdi.ValidatorBean@35fe0422
> 	at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:363)
> -------------------------------------------------------------------------------------
> In my project, we have used apache Bval api while connecting PrestoDB by using presto-client.
> While deploying we got above Ambiguous dependencies for type Validator exception. We
analyzed and found that the root cause of this issue is two validators are eligible for injection
one is apache bval jar (through application) and another one is bean-validator jar (through
server) in glass fish server. Here, we have used GUICE injection.
> Please help us in resolving this issue if anybody has come across.
> Thanks in advance.
> Regards,
> TulsiRam



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message