Skip to main content



      Home
Home » Archived » BIRT » IScriptedDataSetEventHandler and classpath
IScriptedDataSetEventHandler and classpath [message #255906] Fri, 21 September 2007 05:55 Go to next message
Eclipse UserFriend
Hi,

Is there a way of making an IScriptedDataSetEventHandler implementation
class visible to BIRT from a different plug-in. I have an RCP application
which has a scripted data set event handler which I need to make available
to the BIRT report designer in preview mode.

I have tried exporting the package with the relevant class in my plug-in but
when attempting to preview the report I get:

Error.ScriptClassNotFoundError ( 1 time(s) )
detail : org.eclipse.birt.report.engine.api.EngineException: Class
com.test.ui.rpt.birt.ReportDataSetListener not found
at
org.eclipse.birt.report.engine.script.internal.ScriptExecuto r.getInstance(ScriptExecutor.java:107)

Regards
Jos
Re: IScriptedDataSetEventHandler and classpath [message #255919 is a reply to message #255906] Fri, 21 September 2007 12:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Jose,

Take a look at this article
http://www.eclipsezone.com/articles/eclipse-vms/

Here is a message that Darek posted on this NG.


This article DID HELPED A LOT!!!


I don't know if this is a "proper" solution, but when I added a:


Eclipse-BuddyPolicy: registered

to /META-INF/MANIFEST.MF in org.eclipse.birt.report.engine_x.y.z.jar and
then:


Eclipse-RegisterBuddy: org.eclipse.birt.report.engine

to my plug-ins manifest it worked!!! No more ClassNotFoundException at
all!!! Without even setting anything by System.setProperty(*, *);




Jason


Jose Hernandez wrote:
> Hi,
>
> Is there a way of making an IScriptedDataSetEventHandler implementation
> class visible to BIRT from a different plug-in. I have an RCP application
> which has a scripted data set event handler which I need to make available
> to the BIRT report designer in preview mode.
>
> I have tried exporting the package with the relevant class in my plug-in but
> when attempting to preview the report I get:
>
> Error.ScriptClassNotFoundError ( 1 time(s) )
> detail : org.eclipse.birt.report.engine.api.EngineException: Class
> com.test.ui.rpt.birt.ReportDataSetListener not found
> at
> org.eclipse.birt.report.engine.script.internal.ScriptExecuto r.getInstance(ScriptExecutor.java:107)
>
> Regards
> José
>
>
Re: IScriptedDataSetEventHandler and classpath [message #255990 is a reply to message #255919] Mon, 24 September 2007 02:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: firstname.lastname.napa.fi

On Fri, 21 Sep 2007 19:18:41 +0300, Jason Weathersby =

<jasonweathersby@alltel.net> wrote:

> to /META-INF/MANIFEST.MF in org.eclipse.birt.report.engine_x.y.z.jar a=
nd

I did the same to org.eclipse.birt.report.viewer, but that was to mak=
e =

javasript able to access classes inside the drivers.


Wouldn't it be a good idea to have "Eclipse-BuddyPolicy: registered" =
in =

these two plugins? Then it would not be necessary to tweak birt =

installation to get classloading working properly.

I have already requested this for org.eclipse.birt.report.viewer in t=
his =

bug report:

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


It might also be a good idea to have a page about classloading issues=
=

and solutions in the faq/wiki/wherever - these seem to come up in the =

newsgroup a lot.



-Antti-
Re: IScriptedDataSetEventHandler and classpath [message #256021 is a reply to message #255990] Mon, 24 September 2007 11:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Antti,

good points.

Jason

Antti Karanta wrote:
>
> On Fri, 21 Sep 2007 19:18:41 +0300, Jason Weathersby
> <jasonweathersby@alltel.net> wrote:
>
>> to /META-INF/MANIFEST.MF in org.eclipse.birt.report.engine_x.y.z.jar and
>
> I did the same to org.eclipse.birt.report.viewer, but that was to make
> javasript able to access classes inside the drivers.
>
>
> Wouldn't it be a good idea to have "Eclipse-BuddyPolicy: registered"
> in these two plugins? Then it would not be necessary to tweak birt
> installation to get classloading working properly.
>
> I have already requested this for org.eclipse.birt.report.viewer in
> this bug report:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=202049
>
>
> It might also be a good idea to have a page about classloading issues
> and solutions in the faq/wiki/wherever - these seem to come up in the
> newsgroup a lot.
>
>
>
> -Antti-
Re: IScriptedDataSetEventHandler and classpath [message #256175 is a reply to message #256021] Tue, 25 September 2007 16:19 Go to previous message
Eclipse UserFriend
I was hoping for a solution that did not involve modifying the BIRT
installation but the workaround you have provided is simple and really
useful nevertheless.

Thank you both for your replies.
Jose

"Jason Weathersby" <jasonweathersby@alltel.net> wrote in message
news:fd8mos$q3j$1@build.eclipse.org...
> Antti,
>
> good points.
>
> Jason
>
> Antti Karanta wrote:
>>
>> On Fri, 21 Sep 2007 19:18:41 +0300, Jason Weathersby
>> <jasonweathersby@alltel.net> wrote:
>>
>>> to /META-INF/MANIFEST.MF in org.eclipse.birt.report.engine_x.y.z.jar and
>>
>> I did the same to org.eclipse.birt.report.viewer, but that was to make
>> javasript able to access classes inside the drivers.
>>
>>
>> Wouldn't it be a good idea to have "Eclipse-BuddyPolicy: registered" in
>> these two plugins? Then it would not be necessary to tweak birt
>> installation to get classloading working properly.
>>
>> I have already requested this for org.eclipse.birt.report.viewer in
>> this bug report:
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=202049
>>
>>
>> It might also be a good idea to have a page about classloading issues
>> and solutions in the faq/wiki/wherever - these seem to come up in the
>> newsgroup a lot.
>>
>>
>>
>> -Antti-
Previous Topic:[2.2 RC0] Change value of header after page break
Next Topic:expand and collapse
Goto Forum:
  


Current Time: Tue Jul 22 06:39:15 EDT 2025

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

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

Back to the top