bval-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (BVAL-100) Java2 Security AccessControlException after moving to use common-lang3
Date Mon, 12 Mar 2012 20:58:39 GMT

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

Matt Benson resolved BVAL-100.
------------------------------

    Resolution: Fixed

Revision 1239676
                
> Java2 Security AccessControlException after moving to use common-lang3
> ----------------------------------------------------------------------
>
>                 Key: BVAL-100
>                 URL: https://issues.apache.org/jira/browse/BVAL-100
>             Project: BVal
>          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.2.patch, 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

        

Mime
View raw message