You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bval.apache.org by "Jeremy Bauer (JIRA)" <ji...@apache.org> on 2010/12/06 23:56:10 UTC
[jira] Commented: (BVAL-89) Application specific constraints and
artifacts not visible by provider in OSGI-based app server
[ https://issues.apache.org/jira/browse/BVAL-89?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12968465#action_12968465 ]
Jeremy Bauer commented on BVAL-89:
----------------------------------
Committed patch for Albert under r1042833.
> 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: BeanValidation
> Issue Type: Bug
> Components: jsr303
> Affects Versions: 0.2-incubating, 0.3-incubating
> Reporter: Albert Lee
> Fix For: 0.3-incubating
>
> 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.
-
You can reply to this email to add a comment to the issue online.