How to find jars outside birt-runtime-2_2_1_1 [message #263558] |
Wed, 19 December 2007 10:54  |
Eclipse User |
|
|
|
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 #263640 is a reply to message #263624] |
Thu, 20 December 2007 10:19  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03539 seconds