report extension plugin not showing up in web deployment [message #222973] |
Wed, 07 March 2007 18:21  |
Eclipse User |
|
|
|
Hello,
I've created a custom report item extension and have got it working
correctly in the BIRT report designer (I can render HTML and PDFs), but when
I copy my plugin into the "plugins" folder for my web deployment it isn't
rendering (everything else does).
Do I need to do something special to make the BIRT runtime aware of my
custom plugin?
Thanks,
Travis
|
|
|
|
Re: report extension plugin not showing up in web deployment [message #223658 is a reply to message #223570] |
Fri, 09 March 2007 11:12   |
Eclipse User |
|
|
|
Thanks for the reply. I did try that, but I discovered that the problem was
due to the fact that the BIRT Runtime distribution does not contain the BIRT
UI plugins. My plugin was dependent on plugins that are only required by the
BIRT Report Designer, so I guess OSGI decided not to load my extension when
it discovered that some of its dependencies were not met. No error messages
were output!!! This is a problem that I have had previously with Eclipse
plugin development.
My solution was to split my report item extension plugin into two plugins.
One for Report Runtime rendering and the other for the Report Designer. This
is the same strategy used by the Chart plugin.
The book "Integrating and Extending BIRT" has a
org.eclipse.birt.sample.reportitem.rotatedlabel plugin that I was using as a
basis to learn from. Unfortunately the book doesn't mention that the BIRT
Runtime distribution would not be compatable with the way they structured
their plugin.
My plugin seems to work without being added to config.ini. I thought that it
should, because the Chart plugin is not added to config.ini.
-Travis
"Jaroslav Sedlacek" <jaroslav.sedlacek@changingworlds.com> wrote in message
news:esr6k4$g0f$1@utils.eclipse.org...
> Hi,
>
> I had the same problem some time ago. Web Viewer is using OSGI
> framework, you need to modify config.ini file in platform/configuration.
> Add your plugin to osgi.bundles - let's say your plugin name is
> com.whatever.extension_1.0.0.jar, you need to add
> com.whatever.extension:start.
>
> Regards,
> Jaroslav
>
> Travis Haagen wrote:
> > Hello,
> >
> > I've created a custom report item extension and have got it working
> > correctly in the BIRT report designer (I can render HTML and PDFs), but
when
> > I copy my plugin into the "plugins" folder for my web deployment it
isn't
> > rendering (everything else does).
> >
> > Do I need to do something special to make the BIRT runtime aware of my
> > custom plugin?
> >
> > Thanks,
> >
> > Travis
> >
> >
|
|
|
Re: report extension plugin not showing up in web deployment [message #239845 is a reply to message #223658] |
Thu, 24 May 2007 16:50  |
Eclipse User |
|
|
|
I am having the same problems Travis described, I even started from the
same example using the same book.
That aside, I thought a quick fix would be to add the missing gui jars
to the runtime. Do I need to add these jars to the config file, also
what is the pluginname@num syntax denote? Is it the order the plugins
are initialized?
Does anyone have a reference for the editing the config file?
Thanks,
Lester
Travis Haagen wrote:
> Thanks for the reply. I did try that, but I discovered that the problem was
> due to the fact that the BIRT Runtime distribution does not contain the BIRT
> UI plugins. My plugin was dependent on plugins that are only required by the
> BIRT Report Designer, so I guess OSGI decided not to load my extension when
> it discovered that some of its dependencies were not met. No error messages
> were output!!! This is a problem that I have had previously with Eclipse
> plugin development.
>
> My solution was to split my report item extension plugin into two plugins.
> One for Report Runtime rendering and the other for the Report Designer. This
> is the same strategy used by the Chart plugin.
>
> The book "Integrating and Extending BIRT" has a
> org.eclipse.birt.sample.reportitem.rotatedlabel plugin that I was using as a
> basis to learn from. Unfortunately the book doesn't mention that the BIRT
> Runtime distribution would not be compatable with the way they structured
> their plugin.
>
> My plugin seems to work without being added to config.ini. I thought that it
> should, because the Chart plugin is not added to config.ini.
>
> -Travis
>
>
> "Jaroslav Sedlacek" <jaroslav.sedlacek@changingworlds.com> wrote in message
> news:esr6k4$g0f$1@utils.eclipse.org...
>> Hi,
>>
>> I had the same problem some time ago. Web Viewer is using OSGI
>> framework, you need to modify config.ini file in platform/configuration.
>> Add your plugin to osgi.bundles - let's say your plugin name is
>> com.whatever.extension_1.0.0.jar, you need to add
>> com.whatever.extension:start.
>>
>> Regards,
>> Jaroslav
>>
>> Travis Haagen wrote:
>>> Hello,
>>>
>>> I've created a custom report item extension and have got it working
>>> correctly in the BIRT report designer (I can render HTML and PDFs), but
> when
>>> I copy my plugin into the "plugins" folder for my web deployment it
> isn't
>>> rendering (everything else does).
>>>
>>> Do I need to do something special to make the BIRT runtime aware of my
>>> custom plugin?
>>>
>>> Thanks,
>>>
>>> Travis
>>>
>>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06620 seconds