|
Re: Newby to BIRT [message #490047 is a reply to message #489913] |
Wed, 07 October 2009 05:13 |
|
This error:
DriverClassLoader failed to load class: org.hsqldb.jdbcDriver
indicates that the driver jar is not in the
birt-runtime-2_5_1\ReportEngine\plugins\org.eclipse.birt.rep ort.data.oda.jdbc_2.5.1.v20090821\drivers
directory. Can you copy it there? You can also alter your code to pass in the path like:
config.getAppContext().put("OdaJDBCDriverClassPath", "c:/birt/mysql/mysql-connector-java-5.0.4-bin.jar");
Jason
|
|
|
|
|
|
|
Re: Newby to BIRT [message #677188 is a reply to message #677014] |
Tue, 07 June 2011 16:43 |
|
If you are using the RE API add it when you create the engine config.
eg
EngineConfig config = new EngineConfig();
config.getAppContext()......
If you are using the viewer you can add it to either the beforeFactory
script or the beforeOpen of the datasource. Just put it in like:
reportContext.getAppContext().put("OdaJDBCDriverClassPath",
"C:\\software\\oracle10gExpressEdition\\app\\oracle\\product\
\10.2.0\\server\\jdbc\\lib\\ojdbc14.jar");
Jason
On 6/7/2011 6:28 AM, jeyinul wrote:
> in which program or where i have to add
> "config.getAppContext().put("OdaJDBCDriverClassPath", "
> C:\\software\\oracle10gExpressEdition\\app\\oracle\\product\
> \10.2.0\\server\\jdbc\\lib\\ojdbc14.jar ");"
>
>
> Plz explain
|
|
|
Powered by
FUDForum. Page generated in 0.03768 seconds