Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » How can I change BIRT runtime classpath?
How can I change BIRT runtime classpath? [message #538366] Mon, 07 June 2010 13:26 Go to next message
Csaba  is currently offline Csaba Friend
Messages: 24
Registered: July 2009
Junior Member
Hello Guys,

I have static report design files with references to Java event handler classes.

I run these reports with my code using BIRT RE API.

Since BIRT cannot see my Java event-handlers, I have to add them before generation as follows:
engineConfig.getAppContext().put(EngineConstants.WEBAPP_CLAS SPATH_KEY, "_a jar file or individual classes_");

How can I set this BIRT classpath more times? My experience is that a resetting/an overwrite is not considered. I need to

change/set it every time I want to generate a new report.


Many thanks in advance!
Csaba
Re: How can I change BIRT runtime classpath? [message #538440 is a reply to message #538366] Mon, 07 June 2010 16:03 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Csaba,

I do not think this is possible currently. Once the classpath has been
modified on the engine config, I do not believe it can be changed to
remove cp entries. It may be worth trying it on the task,

task.getAppContext().put..

but I do not think this will work.

Jason

n 6/7/2010 9:26 AM, Csaba wrote:
> Hello Guys,
>
> I have static report design files with references to Java event handler
> classes.
>
> I run these reports with my code using BIRT RE API.
>
> Since BIRT cannot see my Java event-handlers, I have to add them before
> generation as follows:
> engineConfig.getAppContext().put(EngineConstants.WEBAPP_CLAS SPATH_KEY,
> "_a jar file or individual classes_");
>
> How can I set this BIRT classpath more times? My experience is that a
> resetting/an overwrite is not considered. I need to
> change/set it every time I want to generate a new report.
>
>
> Many thanks in advance!
> Csaba
Re: How can I change BIRT runtime classpath? [message #539012 is a reply to message #538440] Wed, 09 June 2010 10:41 Go to previous messageGo to next message
Csaba  is currently offline Csaba Friend
Messages: 24
Registered: July 2009
Junior Member
Jason,

I need to set/change BIRT runtime classpath dynamically.

Is there some workaround solution for this?

Stopping and restarting BIRT framework again and again is a quite ugly and bad solution...and I think, we cannot afford it.

Thanks,
Csaba
Re: How can I change BIRT runtime classpath? [message #539077 is a reply to message #539012] Wed, 09 June 2010 14:40 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

One way to do this is to put your jars in the resource folder (set the
resource folder on the EngineConfig), then add the jar to the resources
tab in the report design. For example if I have two jars each with its
own implementation of the text report item event handler, I could add
jar1 to report1 in the resources tab and jar2 to report2. Then specify
the proper package.classname for the event handler in the report. Set
the resource folder in the engine config and run either report and the
proper jar should be picked up. I just tested this in the designer and
it worked fine.

Jason

On 6/9/2010 6:41 AM, Csaba wrote:
> Jason,
>
> I need to set/change BIRT runtime classpath dynamically.
>
> Is there some workaround solution for this?
>
> Stopping and restarting BIRT framework again and again is a quite ugly
> and bad solution...and I think, we cannot afford it.
>
> Thanks,
> Csaba
Previous Topic:Passing "Null Value" to report using url
Next Topic:Saving my aggregates
Goto Forum:
  


Current Time: Fri Apr 26 05:56:40 GMT 2024

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

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

Back to the top