bval-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (Assigned) (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (BVAL-89) Application specific constraints and artifacts not visible by provider in OSGI-based app server
Date Sat, 31 Mar 2012 16:52:25 GMT

     [ https://issues.apache.org/jira/browse/BVAL-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matt Benson reassigned BVAL-89:
-------------------------------

    Assignee: Albert Lee

Is this issue resolved?
                
> Application specific constraints and artifacts not visible by provider in OSGI-based
app server
> -----------------------------------------------------------------------------------------------
>
>                 Key: BVAL-89
>                 URL: https://issues.apache.org/jira/browse/BVAL-89
>             Project: BVal
>          Issue Type: Bug
>          Components: jsr303
>    Affects Versions: 0.2-incubating, 0.3-incubating
>            Reporter: Albert Lee
>            Assignee: Albert Lee
>             Fix For: 0.4
>
>         Attachments: BVAL-89.patch
>
>
> When the BVAL provider is run in a OSGI-based appl server, CTS failed with the following
exception:
> javax.validation.ValidationException: Cannot instantiate : class org.apache.bval.jsr303.ApacheValidatorFactory
> 		 at org.apache.bval.util.PrivilegedActions.newException(PrivilegedActions.java:140)
> 		 at org.apache.bval.util.PrivilegedActions.access$000(PrivilegedActions.java:29)
> 		 at org.apache.bval.util.PrivilegedActions$3.run(PrivilegedActions.java:105)
> 		 at java.security.AccessController.doPrivileged(AccessController.java:203)
> 		 at org.apache.bval.util.PrivilegedActions.run(PrivilegedActions.java:159)
> 		 at org.apache.bval.util.PrivilegedActions.newInstance(PrivilegedActions.java:96)
> 		 at org.apache.bval.jsr303.util.SecureActions.newInstance(SecureActions.java:58)
> 		 at org.apache.bval.jsr303.ApacheValidationProvider.buildValidatorFactory(ApacheValidationProvider.java:83)
> 		 at org.apache.bval.jsr303.ConfigurationImpl.buildValidatorFactory(ConfigurationImpl.java:254)
> 		 at org.hibernate.jsr303.tck.util.TestUtil.getValidatorFactoryUnderTest(TestUtil.java:70)
> 		 at org.hibernate.jsr303.tck.util.TestUtil.getValidatorUnderTest(TestUtil.java:58)
> 		 at org.hibernate.jsr303.tck.tests.xmlconfiguration.XmlConfigurationTest.testAnnotationDefinedConstraintApplies(XmlConfigurationTest.java:176)
> 		 at org.jboss.testharness.AbstractTest.run(AbstractTest.java:245)
> 		 at org.jboss.testharness.impl.runner.TestRunner.run(TestRunner.java:61)
> 		 at org.jboss.testharness.impl.runner.servlet.ServletTestRunner.doGet(ServletTestRunner.java:107)
> 		 at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
> 		 at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
>                  ......
> Caused by: java.lang.IllegalArgumentException: interface org.hibernate.jsr303.tck.tests.xmlconfiguration.ConsistentUserInformation
is not visible from class loader
> 		 at org.apache.bval.jsr303.xml.AnnotationProxyBuilder.createAnnotation(AnnotationProxyBuilder.java:167)
> 		 at org.apache.bval.jsr303.xml.ValidationMappingParser.createConstraint(ValidationMappingParser.java:176)
> 		 at org.apache.bval.jsr303.xml.ValidationMappingParser.processClassLevel(ValidationMappingParser.java:149)
> 		 at org.apache.bval.jsr303.xml.ValidationMappingParser.processMappingConfig(ValidationMappingParser.java:95)
> 		 at org.apache.bval.jsr303.ApacheValidatorFactory.configure(ApacheValidatorFactory.java:121)
> 		 at org.apache.bval.jsr303.ApacheValidatorFactory.<init>(ApacheValidatorFactory.java:105)
> 		 ... 64 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message