|
Re: extra driver??? [message #501763 is a reply to message #501668] |
Thu, 03 December 2009 17:22 |
|
Nicola,
Is this in deployed environment or the designer?
Jason
nicola wrote:
> Hi,
> launching my report with birt viewer 2.5.1 I get this exception, but the
> report is correctley displayed.
>
> 2009-12-03 11:59:34,262 ERROR [STDERR] 3-dic-2009 11.59.34
> org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager loadExtraDriver
> GRAVE: DriverClassLoader failed to load class: org.postgresql.Driver
>
> I would like to understand better this error.
>
> Thank you,
> Nicola
|
|
|
|
Re: extra driver??? [message #502544 is a reply to message #502444] |
Tue, 08 December 2009 18:35 |
|
Nico,
Do you have the postgresql driver in more than one place in the Viewer's
classpath?
Jason
nicola wrote:
> Hi,
> It's the deployed environment (birt viewer 2.5.1).
>
> Bye,
> Nico
>
>
> Jason Weathersby ha scritto:
>
>> Is this in deployed environment or the designer?
>>
>> Jason
>>
>> nicola wrote:
>>> Hi,
>>> launching my report with birt viewer 2.5.1 I get this exception, but the
>>> report is correctley displayed.
>>>
>>> 2009-12-03 11:59:34,262 ERROR [STDERR] 3-dic-2009 11.59.34
>>> org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager loadExtraDriver
>>> GRAVE: DriverClassLoader failed to load class: org.postgresql.Driver
>>>
>>> I would like to understand better this error.
>>>
>>> Thank you,
>>> Nicola
|
|
|
|
|
Re: extra driver??? [message #516433 is a reply to message #516406] |
Tue, 23 February 2010 22:00 |
|
BIRT uses OSGi and each plugin has its own classpath. The report engine
sets the parent classloader to that of the web app when deploying the
WebViewer. If you have the driver in the appserver there is an
appcontext setting to point to the driver in the app server instead of
the one in the jdbc plugin.
You can put this in script (beforeOpen of the datasource)
reportContext.getAppContext().put("OdaJDBCDriverClassPath",
"C:/apps/apache-tomcat-5.5.20/webapps/2.3rc1/WEB-INF/lib");
to try it.
Jason
BarryF wrote:
> I to am experiencing a similar exception, except with a IBM DB2 driver.
> The report seems to be generated anyway but I would like to understand
> this better. Why can this happen yet a report still be generated? Is
> there retry logic that uses alternate classpaths?
>
> In my case this does not happen on every report, but approx 20% of the
> time which is strange to me. How can this happen some of the time? I am
> seeing this in the BIRT ReportViewer servlet server console log output.
>
> Prior posts question the existence of multiple driver classes on the
> classpath. Why would that cause a problem? Are there multiple
> classloaders used that somehow get different classpaths. For this to be
> the cause, some classpaths would not have the driver at all.
> Thanks in advance for any insight into this.
>
|
|
|
Powered by
FUDForum. Page generated in 0.03643 seconds