[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Re: how to use birt.library in a webapp

I have solved the problem. When desinging the report I insert the data source with drag and drop from the Libray Explorer to the report desgin.

In the XML source of the report I got:

<list-property name="libraries">
<structure>
<property name="fileName">WebContent/reports/my.rptlibrary</property>
<property name="namespace">My</property>
</structure>
</list-property>


The property fileName is OK when I work on the local filesystem.
As a webapp the lib is located on the root path directly.

I changed the fileName property to "reports/my.rptlibrary" and it works now.

But is there an other (better) solution?





Juergen Leeb wrote:

Hi Jason,

If you are using the api you can set the resource folder using the EngineConfig class, but if the lib is in the same directory it should be

I tried EngineConfig.setResourcePath("/reports"), already.


finding it. Do you have your jdbc driver for your database in the drivers directory of the jdbc plugin?

The jdbc driver is in

WEB-INF/platform/plugins/org.eclipse.birt.report.data.oda.jdbc_2.3.1.v20080827/drivers

Reports which doesn' t use the library work.







Juergen Leeb wrote:
Hi,

I just implementing a webapp including birt report engine.
In birt I want to use a library (*.rtplibrary). The lib is in the same folder as the report isselves. While generating the report I get the error:


Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc.Missing properties in Connection.open(Properties).

It seems that birt can' t find the lib.
Can anybody tell me how I can say birt who are the libs?
Thanks!