You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Tim Mitchell (JIRA)" <ji...@apache.org> on 2010/09/14 12:40:32 UTC

[jira] Created: (ARIES-407) Java2 AccessControlExceptions when using TempBundleDelegatingClassLoader

Java2 AccessControlExceptions when using TempBundleDelegatingClassLoader
------------------------------------------------------------------------

                 Key: ARIES-407
                 URL: https://issues.apache.org/jira/browse/ARIES-407
             Project: Aries
          Issue Type: Bug
          Components: JPA
    Affects Versions: 0.1
            Reporter: Tim Mitchell
             Fix For: 0.1


When running the Apache Aries JPA code with java 2 security turned on, we have found that we get AccessControlExceptions when loading application classes via the TempBundleDelegatingClassLoader class. This is despite the fact that the jpa container jar has full permissions as it is running in the Application Servers runtime.
By putting do Privileged blocks around the bundle.getResource and bundle.getResources, we are able to successfully load the classes.

I've added a patch for the fix. This was generated at the trunk level.

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


[jira] Commented: (ARIES-407) Java2 AccessControlExceptions when using TempBundleDelegatingClassLoader

Posted by "Timothy Ward (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12909226#action_12909226 ] 

Timothy Ward commented on ARIES-407:
------------------------------------

Added patch under 996882

> Java2 AccessControlExceptions when using TempBundleDelegatingClassLoader
> ------------------------------------------------------------------------
>
>                 Key: ARIES-407
>                 URL: https://issues.apache.org/jira/browse/ARIES-407
>             Project: Aries
>          Issue Type: Bug
>          Components: JPA
>    Affects Versions: 0.1
>            Reporter: Tim Mitchell
>             Fix For: 0.3
>
>         Attachments: patch.txt
>
>
> When running the Apache Aries JPA code with java 2 security turned on, we have found that we get AccessControlExceptions when loading application classes via the TempBundleDelegatingClassLoader class. This is despite the fact that the jpa container jar has full permissions as it is running in the Application Servers runtime.
> By putting do Privileged blocks around the bundle.getResource and bundle.getResources, we are able to successfully load the classes.
> I've added a patch for the fix. This was generated at the trunk level.

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


[jira] Updated: (ARIES-407) Java2 AccessControlExceptions when using TempBundleDelegatingClassLoader

Posted by "Timothy Ward (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Ward updated ARIES-407:
-------------------------------

    Fix Version/s: 0.3
                       (was: 0.1)

Fixing in the 0.3 stream

> Java2 AccessControlExceptions when using TempBundleDelegatingClassLoader
> ------------------------------------------------------------------------
>
>                 Key: ARIES-407
>                 URL: https://issues.apache.org/jira/browse/ARIES-407
>             Project: Aries
>          Issue Type: Bug
>          Components: JPA
>    Affects Versions: 0.1
>            Reporter: Tim Mitchell
>             Fix For: 0.3
>
>         Attachments: patch.txt
>
>
> When running the Apache Aries JPA code with java 2 security turned on, we have found that we get AccessControlExceptions when loading application classes via the TempBundleDelegatingClassLoader class. This is despite the fact that the jpa container jar has full permissions as it is running in the Application Servers runtime.
> By putting do Privileged blocks around the bundle.getResource and bundle.getResources, we are able to successfully load the classes.
> I've added a patch for the fix. This was generated at the trunk level.

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


[jira] Updated: (ARIES-407) Java2 AccessControlExceptions when using TempBundleDelegatingClassLoader

Posted by "Tim Mitchell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Mitchell updated ARIES-407:
-------------------------------

    Attachment: patch.txt

> Java2 AccessControlExceptions when using TempBundleDelegatingClassLoader
> ------------------------------------------------------------------------
>
>                 Key: ARIES-407
>                 URL: https://issues.apache.org/jira/browse/ARIES-407
>             Project: Aries
>          Issue Type: Bug
>          Components: JPA
>    Affects Versions: 0.1
>            Reporter: Tim Mitchell
>             Fix For: 0.1
>
>         Attachments: patch.txt
>
>
> When running the Apache Aries JPA code with java 2 security turned on, we have found that we get AccessControlExceptions when loading application classes via the TempBundleDelegatingClassLoader class. This is despite the fact that the jpa container jar has full permissions as it is running in the Application Servers runtime.
> By putting do Privileged blocks around the bundle.getResource and bundle.getResources, we are able to successfully load the classes.
> I've added a patch for the fix. This was generated at the trunk level.

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


[jira] Resolved: (ARIES-407) Java2 AccessControlExceptions when using TempBundleDelegatingClassLoader

Posted by "Timothy Ward (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Ward resolved ARIES-407.
--------------------------------

    Resolution: Fixed

Tim - I have applied your patch, can you verify the new 0.3 stream works for you and close the JIRA?

> Java2 AccessControlExceptions when using TempBundleDelegatingClassLoader
> ------------------------------------------------------------------------
>
>                 Key: ARIES-407
>                 URL: https://issues.apache.org/jira/browse/ARIES-407
>             Project: Aries
>          Issue Type: Bug
>          Components: JPA
>    Affects Versions: 0.1
>            Reporter: Tim Mitchell
>             Fix For: 0.3
>
>         Attachments: patch.txt
>
>
> When running the Apache Aries JPA code with java 2 security turned on, we have found that we get AccessControlExceptions when loading application classes via the TempBundleDelegatingClassLoader class. This is despite the fact that the jpa container jar has full permissions as it is running in the Application Servers runtime.
> By putting do Privileged blocks around the bundle.getResource and bundle.getResources, we are able to successfully load the classes.
> I've added a patch for the fix. This was generated at the trunk level.

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


[jira] Closed: (ARIES-407) Java2 AccessControlExceptions when using TempBundleDelegatingClassLoader

Posted by "Tim Mitchell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Mitchell closed ARIES-407.
------------------------------


This fixes the problem.

> Java2 AccessControlExceptions when using TempBundleDelegatingClassLoader
> ------------------------------------------------------------------------
>
>                 Key: ARIES-407
>                 URL: https://issues.apache.org/jira/browse/ARIES-407
>             Project: Aries
>          Issue Type: Bug
>          Components: JPA
>    Affects Versions: 0.1
>            Reporter: Tim Mitchell
>             Fix For: 0.3
>
>         Attachments: patch.txt
>
>
> When running the Apache Aries JPA code with java 2 security turned on, we have found that we get AccessControlExceptions when loading application classes via the TempBundleDelegatingClassLoader class. This is despite the fact that the jpa container jar has full permissions as it is running in the Application Servers runtime.
> By putting do Privileged blocks around the bundle.getResource and bundle.getResources, we are able to successfully load the classes.
> I've added a patch for the fix. This was generated at the trunk level.

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