[jboss-jira] [JBoss JIRA] (JGRP-2399) Problem with loading resources from the bundle root (/) in OSGI environment

Orlin Stalyanov (Jira) issues at jboss.org
Wed Nov 13 11:53:00 EST 2019


    [ https://issues.jboss.org/browse/JGRP-2399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13812228#comment-13812228 ] 

Orlin Stalyanov commented on JGRP-2399:
---------------------------------------

[~belaban] I have added a pull request for the 3.6 branch here (https://github.com/belaban/JGroups/pull/446/files)

> Problem with loading resources from the bundle root (/)  in OSGI environment
> ----------------------------------------------------------------------------
>
>                 Key: JGRP-2399
>                 URL: https://issues.jboss.org/browse/JGRP-2399
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 3.6.19
>         Environment: Reproducible both on linux(centos 7.3) and windows 10, my project is using org.eclipse.equinox 3.6.0.v20100503, oracle jdk 1.8.0.212
>            Reporter: Orlin Stalyanov
>            Assignee: Bela Ban
>            Priority: Major
>
> {color:#0747A6}Util.java:108 
> resource_bundle=ResourceBundle.getBundle("jg-messages",Locale.getDefault(),Util.class.getClassLoader());{color}
> is crashing with:
> ...
> {color:#0747A6}Caused by: java.util.MissingResourceException: Can't find bundle for base name jg-messages, locale en_US
> 	at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1581)
> 	at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1396)
> 	at java.util.ResourceBundle.getBundle(ResourceBundle.java:1091)
> 	at org.jgroups.util.Util.<clinit>(Util.java:108)
> 	... 162 more{color}
> found some relevant info here : https://stackoverflow.com/questions/7564370/importing-resources-from-osgi-bundle
> seems like OSGI doesn't really like resources residing in the bundle root ...



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list