Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Language keys in plugin.xml are not found when plugin is installed
Language keys in plugin.xml are not found when plugin is installed [message #531528] Wed, 05 May 2010 10:49 Go to next message
Ed is currently offline EdFriend
Messages: 13
Registered: March 2010
Junior Member
Hi,

I am creating an ODA Driver plugin and a UI plugin for the BIRT extension to eclipse.

My plugins both work as expected when eclipse starts up another eclipse application where I can then test the plugins I am developing. However, when I install my plugins into an Eclipse application and then start it from a Windows shortcut, the plugins work but and language keys specified in the plugin.xml files are not found.

Hence, for example, in my plugin.xml file for the ODA Driver plugin I set the attributes 'id' to '%oda.data.source.id' and the data source 'defaultDisplayName' to '%data.source.name'.
I then, in a file 'language.properties', have defined the values for both of these keys (where the keys don't have the preceeding % character).

Since 'language' is not the default name for the properties file I went into the manifest for both plugins and changed the 'Bundle-Localization' attribute to 'language'. The language file is located in the root directory of both of my plugins.

The properties file is definitely found, since I use the two language files to store other strings used by the plugins, looked up using a java ResourceBundle. The strings are always found whether the plugins are run from Eclipse application loading another, or when properly installed in the dropins/plugins directory of an Eclipse application.

When running the plugins that have been installed into the dropins/plugins directory of an Eclipse application, the wizard for creating my ODA data source names is as '%data.source.name' and saves the data source in the rptdesign (XML) file with an ID of '%oda.data.source.id'.

Why are the installed plugins not finding language keys reference in the plugin.xml files? There are not errors in the logs and the language.properties files are clearly accessible...

Thanks in advance.

UPDATE:

I have now managed to successfully add the Driver plugin to my web application that is integrated with BIRT. I have created a servlet that renders a report design file. For it to sucessfully render a report design file using my custom ODA data source I need to modify the rptdesign xml file so that the data source ID is no longer '%oda.data.source.id; but the value that is found in my language.properties. Which implies, once my plugin is deployed it is working...just not when installed at a plugin in Eclipse!

I have also found this bug report though not sur eif it is relevant:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=198866


[Updated on: Wed, 05 May 2010 12:42]

Report message to a moderator

Re: Language keys in plugin.xml are not found when plugin is installed [message #533355 is a reply to message #531528] Thu, 13 May 2010 13:50 Go to previous messageGo to next message
Ed is currently offline EdFriend
Messages: 13
Registered: March 2010
Junior Member
anyone??
Re: Language keys in plugin.xml are not found when plugin is installed [message #660946 is a reply to message #531528] Tue, 22 March 2011 13:07 Go to previous message
march11  is currently offline march11 Friend
Messages: 1
Registered: March 2011
Junior Member
Did you find out how to fix it?
I have two oda drivers (runtime and design). I am trying to run a report from my java application and I am getting the following error. It works fine when I run the report in the BIRT Report Design.

SEVERE: Cannot find or process the ODA data source extension configuration.
java.lang.IllegalArgumentException: Cannot find the ODA dataSource extension (myCustomOdaRuntime).

I appreciate any help
Previous Topic:Navigator's Item Background Color
Next Topic:execute the 'Build site' of site.xml via command line
Goto Forum:
  


Current Time: Tue Apr 16 10:59:33 GMT 2024

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

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

Back to the top