[jira] Created: (HIVEMIND-207) ClassFactoryClassLoader conceals loader resources

View: New views
2 Messages — Rating Filter:   Alert me  

[jira] Created: (HIVEMIND-207) ClassFactoryClassLoader conceals loader resources

by JIRA hivemind-dev@jakarta.apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ClassFactoryClassLoader conceals loader resources
-------------------------------------------------

                 Key: HIVEMIND-207
                 URL: https://issues.apache.org/jira/browse/HIVEMIND-207
             Project: HiveMind
          Issue Type: Bug
          Components: framework
    Affects Versions: 1.1.1
            Reporter: Tim Eck


Apologies up front if I'm being dense, or missed a FAQ someplace....

My example is in the context of tapestry 4, but the issue is in hivemind I believe. When a tapestry page gets enhanced and defined by the ClassFactoryClassLoader, one loses the ability to obtain classloader resources. For example, if you call getClass().getClassLoader().getResource(...), you will always get null back even for resources that are present in the web app classloader.

Unless I'm mistaken, the reason for this is that ClassFactoryClassLoader doesn't not override findResource() and delegate to it's internal list of loaders.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVEMIND-207) ClassFactoryClassLoader conceals loader resources

by JIRA hivemind-dev@jakarta.apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Tim Eck updated HIVEMIND-207:
-----------------------------

    Attachment: patch.txt

A patch with the suggested fix

> ClassFactoryClassLoader conceals loader resources
> -------------------------------------------------
>
>                 Key: HIVEMIND-207
>                 URL: https://issues.apache.org/jira/browse/HIVEMIND-207
>             Project: HiveMind
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: 1.1.1
>            Reporter: Tim Eck
>         Attachments: patch.txt
>
>
> Apologies up front if I'm being dense, or missed a FAQ someplace....
> My example is in the context of tapestry 4, but the issue is in hivemind I believe. When a tapestry page gets enhanced and defined by the ClassFactoryClassLoader, one loses the ability to obtain classloader resources. For example, if you call getClass().getClassLoader().getResource(...), you will always get null back even for resources that are present in the web app classloader.
> Unless I'm mistaken, the reason for this is that ClassFactoryClassLoader doesn't not override findResource() and delegate to it's internal list of loaders.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.