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

Bela Ban (Jira) issues at jboss.org
Tue Nov 12 06:57:01 EST 2019


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

Bela Ban commented on JGRP-2399:
--------------------------------

I'm not an osgi person; if you want this fixed, please submit a pull request or post this to the mailing list, so some expert can chime in...

> 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