You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jarek Gawor (JIRA)" <ji...@apache.org> on 2010/12/28 07:02:45 UTC

[jira] Created: (GERONIMO-5744) bundle urls and 3rd party libraries

bundle urls and 3rd party libraries
-----------------------------------

                 Key: GERONIMO-5744
                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: deployment
    Affects Versions: 3.0-M2
            Reporter: Jarek Gawor


Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.

One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).



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


[jira] Updated: (GERONIMO-5744) bundle urls and 3rd party libraries

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

Jarek Gawor updated GERONIMO-5744:
----------------------------------

    Attachment:     (was: GERONIMO-5744.patch)

> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (GERONIMO-5744) bundle urls and 3rd party libraries

Posted by "Forrest Xia (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Forrest Xia resolved GERONIMO-5744.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0-beta-2
                   3.0
    
> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0
>            Reporter: Jarek Gawor
>             Fix For: 3.0, 3.0-beta-2
>
>         Attachments: GERONIMO-5744.patch
>
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

--
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

        

[jira] [Commented] (GERONIMO-5744) bundle urls and 3rd party libraries

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-5744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053634#comment-13053634 ] 

Jarek Gawor commented on GERONIMO-5744:
---------------------------------------

I committed the patch with some additional changes / simplifications to trunk in revision 1138728. By default the Equinox-specific classloader is not enabled. It can be enabled by setting the "org.apache.geronimo.equinox.useURLClassLoader" system property to "true". We can change this default in the future after a bit more testing.



> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>         Attachments: GERONIMO-5744.patch
>
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-5744) bundle urls and 3rd party libraries

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

Jarek Gawor updated GERONIMO-5744:
----------------------------------

    Attachment: GERONIMO-5744.patch

Updated the patch with additional changes to geronimo-kernel module.


> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>         Attachments: GERONIMO-5744.patch
>
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-5744) bundle urls and 3rd party libraries

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

Jarek Gawor updated GERONIMO-5744:
----------------------------------

    Attachment: GERONIMO-5744.patch

Another fix. Override ClassLoader.findResources() instead of getResources() as JVMs call different methods to search for resources.


> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>         Attachments: GERONIMO-5744.patch
>
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-5744) bundle urls and 3rd party libraries

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

Jarek Gawor updated GERONIMO-5744:
----------------------------------

    Attachment:     (was: GERONIMO-5744.patch)

> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-5744) bundle urls and 3rd party libraries

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

Jarek Gawor updated GERONIMO-5744:
----------------------------------

    Attachment: GERONIMO-5744.patch

A new version of the patch.


> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>         Attachments: GERONIMO-5744.patch
>
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-5744) bundle urls and 3rd party libraries

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

Jarek Gawor updated GERONIMO-5744:
----------------------------------

    Attachment:     (was: GERONIMO-5744.patch)

> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>         Attachments: GERONIMO-5744.patch
>
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-5744) bundle urls and 3rd party libraries

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

Jarek Gawor updated GERONIMO-5744:
----------------------------------

    Attachment: GERONIMO-5744.patch

Proposed patch for this issue. The patch uses Equinox's classloader hook to return a custom classloader that 1) uses Equinox's URLConversion service to translate "bundle" urls into "jar" urls, 2) extends URLClassLoader class - therefore allows applications that assume TCCL to be a URLClassLoader to still run ok (potentially) and 3) supports searching for META-INF/ resources in statically wired bundles.


> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>         Attachments: GERONIMO-5744.patch
>
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

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


[jira] Updated: (GERONIMO-5744) bundle urls and 3rd party libraries

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

Jarek Gawor updated GERONIMO-5744:
----------------------------------

    Attachment:     (was: GERONIMO-5744.patch)

> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>         Attachments: GERONIMO-5744.patch
>
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (GERONIMO-5744) bundle urls and 3rd party libraries

Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-5744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13094372#comment-13094372 ] 

Shawn Jiang commented on GERONIMO-5744:
---------------------------------------

Since more an more 3rd app need to set this properties to work correctly.   We need to set default "org.apache.geronimo.equinox.useURLClassLoader" system property to "true".  

the first step would to do a TCK with this option on.

> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0
>            Reporter: Jarek Gawor
>         Attachments: GERONIMO-5744.patch
>
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-5744) bundle urls and 3rd party libraries

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

Jarek Gawor updated GERONIMO-5744:
----------------------------------

    Attachment:     (was: GERONIMO-5744.patch)

> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (GERONIMO-5744) bundle urls and 3rd party libraries

Posted by "Forrest Xia (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-5744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183165#comment-13183165 ] 

Forrest Xia commented on GERONIMO-5744:
---------------------------------------

Can we close this jira?
                
> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0
>            Reporter: Jarek Gawor
>         Attachments: GERONIMO-5744.patch
>
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

--
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

        

[jira] Updated: (GERONIMO-5744) bundle urls and 3rd party libraries

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

Jarek Gawor updated GERONIMO-5744:
----------------------------------

    Attachment: GERONIMO-5744.patch

Minor fix (wrong protection domain passed to the classloader).


> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>         Attachments: GERONIMO-5744.patch
>
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-5744) bundle urls and 3rd party libraries

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

Jarek Gawor updated GERONIMO-5744:
----------------------------------

    Attachment:     (was: GERONIMO-5744.patch)

> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-5744) bundle urls and 3rd party libraries

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

Jarek Gawor updated GERONIMO-5744:
----------------------------------

    Attachment: GERONIMO-5744.patch

> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>         Attachments: GERONIMO-5744.patch
>
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-5744) bundle urls and 3rd party libraries

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

Jarek Gawor updated GERONIMO-5744:
----------------------------------

    Attachment: GERONIMO-5744.patch

Latest patch with additional improvements so that the user can override the searchWiredBundles and convertResourceUrl default settings using system properties. For now used the same property names as in XBEAN-164. 


> bundle urls and 3rd party libraries
> -----------------------------------
>
>                 Key: GERONIMO-5744
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5744
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0-M2
>            Reporter: Jarek Gawor
>         Attachments: GERONIMO-5744.patch
>
>
> Resource lookup in Geronimo 3.0 returns "bundle" type of urls. However, a lot of Geronimo code and a number of third party libraries assumes that urls returned by resource lookup return "jar" or "file" type of urls. Because of this difference a lot of applications might not work properly on Geronimo 3.0. The Geronimo specific code has mostly been updated to use OSGi-friendly ways to look for resources. However, we can't expect every 3rd party library to be updated to be OSGi friendly. So we might need a solution that can return "jar" or "file" urls that works with most libraries.
> One possible solution is to use the BundleResourceClassLoader in the xbean-bundleutils project (currently used in the OpenJPA plugin). That solution could be enhanced with Equinox-specific extension (URLConverter service) that can convert "bundle" urls directly into "jar" or "file" urls (using the jars in its bundle cache).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira