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

Richard Zowalla closed TOMEE-1292.
----------------------------------
    Resolution: Won't Fix

Closing: improvement request against an end-of-life TomEE version (1.x/7.x) 
with no activity for years. Please open a new issue if still relevant for 
current versions.

> Support OSGi bundleresource:/ protocol in TomEE
> -----------------------------------------------
>
>                 Key: TOMEE-1292
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1292
>             Project: TomEE
>          Issue Type: Improvement
>    Affects Versions: 1.6.0.2
>         Environment: TomEE in OSGi environments, say, Equinox. 
>            Reporter: Kasun Gajasinghe
>            Priority: Major
>         Attachments: TOMEE-1292.patch
>
>
> Currently, when TomEE scans it's libraries for TLDs etc. via the 
> URLClassLoader, it gets a list of URLs pointing to jar files. To process 
> these TomEE converts these URLs to actual file paths. As seen in this code 
> [1], TomEE only processes URLs that have jar:/ or file:/ protocol. This works 
> fine in a non-OSGi environment.
> But in OSGi environments, they have OSGi bundles instead of jars. So, what 
> the URLClassloader returns is a set of URLs with bundleresource:/ protocol 
> pointing to the bundles. We can in fact get the actual file path from the 
> bundleresource:/ protocol as well.
> So, I'm asking the kind folks at TomEE to consider supporting 
> bundleresource:/ protocol as well. I will provide a patch for this herewith. 
> The patch worked fine in my OSGi enabled runtime based on Equinox.
> Thanks!
> Kasun Gajasinghe



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to