Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » extra driver???
extra driver??? [message #501668] Thu, 03 December 2009 11:19 Go to next message
Nicola is currently offline NicolaFriend
Messages: 184
Registered: July 2009
Senior Member
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 #501763 is a reply to message #501668] Thu, 03 December 2009 17:22 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 #502444 is a reply to message #501763] Tue, 08 December 2009 10:01 Go to previous messageGo to next message
Nicola is currently offline NicolaFriend
Messages: 184
Registered: July 2009
Senior Member
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 #502544 is a reply to message #502444] Tue, 08 December 2009 18:35 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 #502701 is a reply to message #502544] Wed, 09 December 2009 13:43 Go to previous messageGo to next message
Nicola is currently offline NicolaFriend
Messages: 184
Registered: July 2009
Senior Member
Hi Jason,
I looked for my driver; I have it only in ${jboss}/server/default/lib
and not in Birt platform path.

Now I add it and watch if the message disappears.
thank you,
Nicola

Jason Weathersby ha scritto:
> Do you have the postgresql driver in more than one place in the Viewer's
> classpath?
>
> Jason
Re: extra driver??? [message #516406 is a reply to message #501668] Tue, 23 February 2010 20:42 Go to previous messageGo to next message
BarryF is currently offline BarryFFriend
Messages: 2
Registered: February 2010
Location: Austin, TX
Junior Member
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.

Re: extra driver??? [message #516433 is a reply to message #516406] Tue, 23 February 2010 22:00 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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.
>
Previous Topic:JDBC connection properties
Next Topic:Possible to export crosstab data?
Goto Forum:
  


Current Time: Mon Sep 23 05:26:11 GMT 2024

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

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

Back to the top