Skip to main content



      Home
Home » Archived » BIRT » How to find jars outside birt-runtime-2_2_1_1
How to find jars outside birt-runtime-2_2_1_1 [message #263558] Wed, 19 December 2007 10:54 Go to next message
Eclipse UserFriend
Originally posted by: erikvaningen.gmail.com

Hi all,

We would like to use the Report Engine directly and we use a scripted
dataset. The preview function works fine but the application on Tomcat
is not finding the jars that I need.

Does anyone know how to find the jars outside the Report Engine 2_2_1_1?

Kind Regards,
Erik
Re: How to find jars outside birt-runtime-2_2_1_1 [message #263569 is a reply to message #263558] Wed, 19 December 2007 11:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Erik,

Are you developing your own servlet using the RE API?
If so make sure to set
task.getAppContext().put(EngineConstants.APPCONTEXT_CLASSLOA DER_KEY,
RenderTaskExample.class.getClassLoader());
Where RenderTaskExample is the name of your class.
You can also add stuff to the engine classpath by using:

System.setProperty( EngineConstants.WEBAPP_CLASSPATH_KEY,
"/mydir/myjar1.jar;/mydir/myjar2.jar" );

If you are using the WebViewer these settings are already done. You can
put your classes in the scriptlib directory or the web-inf/lib directory.

Jason



Erik van Ingen wrote:
> Hi all,
>
> We would like to use the Report Engine directly and we use a scripted
> dataset. The preview function works fine but the application on Tomcat
> is not finding the jars that I need.
>
> Does anyone know how to find the jars outside the Report Engine 2_2_1_1?
>
> Kind Regards,
> Erik
Re: How to find jars outside birt-runtime-2_2_1_1 [message #263624 is a reply to message #263569] Thu, 20 December 2007 03:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: erikvaningen.gmail.com

Jason,

Thanks!

System.setProperty() works fine.

However I would prefer to use
task.getAppContext().put(EngineConstants.APPCONTEXT_CLASSLOA DER_KEY,
RenderTaskExample.class.getClassLoader());
and this is still not working in my configuration. It does not have any
effect

Is there something particular to pay attention when using
EngineConstants.APPCONTEXT_CLASSLOADER_KEY?


Kind Regards,
Erik







Jason Weathersby wrote:
> Erik,
>
> Are you developing your own servlet using the RE API?
> If so make sure to set
> task.getAppContext().put(EngineConstants.APPCONTEXT_CLASSLOA DER_KEY,
> RenderTaskExample.class.getClassLoader());
> Where RenderTaskExample is the name of your class.
> You can also add stuff to the engine classpath by using:
>
> System.setProperty( EngineConstants.WEBAPP_CLASSPATH_KEY,
> "/mydir/myjar1.jar;/mydir/myjar2.jar" );
>
> If you are using the WebViewer these settings are already done. You can
> put your classes in the scriptlib directory or the web-inf/lib directory.
>
> Jason
>
>
>
> Erik van Ingen wrote:
>> Hi all,
>>
>> We would like to use the Report Engine directly and we use a scripted
>> dataset. The preview function works fine but the application on Tomcat
>> is not finding the jars that I need.
>>
>> Does anyone know how to find the jars outside the Report Engine 2_2_1_1?
>>
>> Kind Regards,
>> Erik
Re: How to find jars outside birt-runtime-2_2_1_1 [message #263640 is a reply to message #263624] Thu, 20 December 2007 10:19 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Erik,

Are the classes you need in the classpath of the classloader that loaded
your class? I assume you did change the RenderTaskExample name.

Jason

Erik van Ingen wrote:
> Jason,
>
> Thanks!
>
> System.setProperty() works fine.
>
> However I would prefer to use
> task.getAppContext().put(EngineConstants.APPCONTEXT_CLASSLOA DER_KEY,
> RenderTaskExample.class.getClassLoader());
> and this is still not working in my configuration. It does not have any
> effect
>
> Is there something particular to pay attention when using
> EngineConstants.APPCONTEXT_CLASSLOADER_KEY?
>
>
> Kind Regards,
> Erik
>
>
>
>
>
>
>
> Jason Weathersby wrote:
>> Erik,
>>
>> Are you developing your own servlet using the RE API?
>> If so make sure to set
>> task.getAppContext().put(EngineConstants.APPCONTEXT_CLASSLOA DER_KEY,
>> RenderTaskExample.class.getClassLoader());
>> Where RenderTaskExample is the name of your class.
>> You can also add stuff to the engine classpath by using:
>>
>> System.setProperty( EngineConstants.WEBAPP_CLASSPATH_KEY,
>> "/mydir/myjar1.jar;/mydir/myjar2.jar" );
>>
>> If you are using the WebViewer these settings are already done. You
>> can put your classes in the scriptlib directory or the web-inf/lib
>> directory.
>>
>> Jason
>>
>>
>>
>> Erik van Ingen wrote:
>>> Hi all,
>>>
>>> We would like to use the Report Engine directly and we use a scripted
>>> dataset. The preview function works fine but the application on
>>> Tomcat is not finding the jars that I need.
>>>
>>> Does anyone know how to find the jars outside the Report Engine 2_2_1_1?
>>>
>>> Kind Regards,
>>> Erik
Previous Topic:TOC with WordEmitter
Next Topic:Viewer Application Context Object error with PDF's, Excel
Goto Forum:
  


Current Time: Sat May 10 05:43:51 EDT 2025

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

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

Back to the top