You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bval.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/08/10 22:16:20 UTC

[jira] [Commented] (BVAL-145) BVal bundle fails to load resources under OSGi

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

ASF GitHub Bot commented on BVAL-145:
-------------------------------------

GitHub user splatch opened a pull request:

    https://github.com/apache/bval/pull/2

    BVAL-145 Lookup resources and classes in all available class loaders.

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/splatch/bval BVAL-145

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/bval/pull/2.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2
    
----
commit 1c08cba46a5ed26ffb9bd9a8492a60964236eb79
Author: Łukasz Dywicki <lu...@code-house.org>
Date:   2016-08-10T22:13:53Z

    BVAL-145 Lookup resources and classes in all available class loaders.

----


> BVal bundle fails to load resources under OSGi
> ----------------------------------------------
>
>                 Key: BVAL-145
>                 URL: https://issues.apache.org/jira/browse/BVAL-145
>             Project: BVal
>          Issue Type: Bug
>          Components: jsr303
>    Affects Versions: 1.1.1
>         Environment: Karaf 4.0.5
>            Reporter: Łukasz Dywicki
>
> Current logic of resource lookups in bval rely on context class loader and when it is not present it fallbacks to classloader which loaded bval. This works perfectly fine for most of cases, but fails under OSGi because TCCL in many cases is set to boot loader which contains no information about running modules. For this reason bval fails to load jsr303 mappings and always returns empty validation result.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)