Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lyo » java.util.MissingResourceException: Can't find bundle for base name oslc4jclient, locale en_IE
java.util.MissingResourceException: Can't find bundle for base name oslc4jclient, locale en_IE [message #1772747] Thu, 14 September 2017 16:31 Go to next message
Romain Barth is currently offline Romain BarthFriend
Messages: 7
Registered: September 2014
Junior Member
Hello,

I have followed the wiki page {https://wiki.eclipse.org/Lyo/BuildClient} and setup the

Eclipse Lyo project in my workspace. I have run the Maven clean install.

I created my own java file to do task in DOORS and RQM.
It works fine in Eclipse.

Now I want to create a runable JAR so I just right click on my java file, export -> JAR...

The JAR file is created by when I run it I have the following ERROR :
SEVERE: Can't find bundle for base name oslc4jclient, locale en_IE
java.util.MissingResourceException: Can't find bundle for base name oslc4jclient, locale en_IE
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at org.eclipse.lyo.client.exception.MessageExtractor.getMessageBundle(MessageExtractor.java:40)
at org.eclipse.lyo.client.exception.MessageExtractor.getString(MessageExtractor.java:46)
at org.eclipse.lyo.client.exception.MessageExtractor.getMessage(MessageExtractor.java:68)
at org.eclipse.lyo.client.exception.MessageExtractor.getMessage(MessageExtractor.java:80)
at org.eclipse.lyo.client.exception.OslcClientApplicationException.<init>(OslcClientApplicationException.java:32)
at org.eclipse.lyo.client.exception.RootServicesException.<init>(RootServicesException.java:28)
at org.eclipse.lyo.client.oslc.jazz.JazzRootServicesHelper.processRootServices(JazzRootServicesHelper.java:200)
at org.eclipse.lyo.client.oslc.jazz.JazzRootServicesHelper.<init>(JazzRootServicesHelper.java:117)
at org.eclipse.lyo.client.oslc.samples.DoorsUpdateRQMLink.main(DoorsUpdateRQMLink.java:137)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)


I never created a JAR, it is my first try.

Can you help me please ?

Regards

Romain
Re: java.util.MissingResourceException: Can't find bundle for base name oslc4jclient, locale en_IE [message #1772790 is a reply to message #1772747] Fri, 15 September 2017 09:02 Go to previous messageGo to next message
Romain Barth is currently offline Romain BarthFriend
Messages: 7
Registered: September 2014
Junior Member
I found a solution

I edited file MessageExtractor.java and replace the line :
private static final String BUNDLE_NAME = "oslc4jclient";
by
private static final String BUNDLE_NAME = "resources/oslc4jclient";

now my JAR works :)
Re: java.util.MissingResourceException: Can't find bundle for base name oslc4jclient, locale en_IE [message #1773961 is a reply to message #1772790] Sat, 07 October 2017 16:43 Go to previous message
Andrii BerezovskyiFriend
Messages: 24
Registered: May 2016
Junior Member
Hello Romain,

Glad you found the solution yourself. Do you have any reason to not just use the officially released Maven library for Lyo Client:

https://www.eclipse.org/lyo/


Best regards,
Andrew
Eclipse Lyo project lead & OSLC Core TC voting member
Previous Topic:Error Marven Install for org.eclipse.lyo.oslc4j.provider.jena
Next Topic:Doors 9.6 OSLC provider access requirements
Goto Forum:
  


Current Time: Thu Apr 25 01:26:29 GMT 2024

Powered by FUDForum. Page generated in 0.03140 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top