You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bval.apache.org by "Albert Lee (Updated) (JIRA)" <ji...@apache.org> on 2012/02/01 20:12:58 UTC
[jira] [Updated] (BVAL-100) Java2 Security AccessControlException
after moving to use common-lang3
[ https://issues.apache.org/jira/browse/BVAL-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Albert Lee updated BVAL-100:
----------------------------
Attachment: BVAL-100.patch
> Java2 Security AccessControlException after moving to use common-lang3
> ----------------------------------------------------------------------
>
> Key: BVAL-100
> URL: https://issues.apache.org/jira/browse/BVAL-100
> Project: BeanValidation
> Issue Type: Bug
> Components: jsr303
> Affects Versions: 0.4-incubating
> Reporter: Albert Lee
> Priority: Minor
> Labels: security
> Fix For: 0.4-incubating
>
> Attachments: BVAL-100.patch
>
>
> Encountered the following exception when Java 2 security is enabled in an application server. This is caused after switching the use common-lang from 2.4 to 3.1 pacakge.
> java.security.AccessControlException: Access denied (java.lang.RuntimePermission getClassLoader)
> at java.security.AccessController.checkPermission(AccessController.java:108)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
> at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:208)
> at java.lang.Thread.getContextClassLoader(Thread.java:470)
> at org.apache.commons.lang3.StringUtils.<clinit>(StringUtils.java:717)
> at java.lang.J9VMInternals.initializeImpl(Native Method)
> at java.lang.J9VMInternals.initialize(J9VMInternals.java:228)
> at org.apache.commons.lang3.ClassUtils.toCanonicalName(ClassUtils.java:923)
> at org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:792)
> at org.apache.bval.jsr303.resolver.DefaultTraversableResolver.initJpa(DefaultTraversableResolver.java:78)
> at org.apache.bval.jsr303.resolver.DefaultTraversableResolver.<init>(DefaultTraversableResolver.java:50)
> at org.apache.bval.jsr303.ConfigurationImpl.<init>(ConfigurationImpl.java:76)
> at org.apache.bval.jsr303.ApacheValidationProvider.createGenericConfiguration(ApacheValidationProvider.java:66)
> at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:173)
> at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:50)
> at com.ibm.websphere.beanvalidation.fat.app.utilities.BeanHelper.resolveValidatorfactory(BeanHelper.java:80)
--
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