BIRT报表Cannot open the connection for the driver:org.eclipse.birt.report.data.oda.jdbc.dbprofile

新人学习BIRT报表,部署自己报表出现问题。
网页提示
+ An exception occurred during processing. Please see the following message for details:
Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc.dbprofile.
org.eclipse.datatools.connectivity.oda.OdaException ;
java.lang.NullPointerException (Element ID:163)
官网下载WebViewerExample工程能正常运行,自己的工程用classic Models Inc的数据源的报表也没问题。但是连接本地数据库(sqlserver)的报表就出现这样的错。创建数据源的时候测试过,连接是成功的。web-inf/lib也是有对应sqljdbc4.jar的。
而且myeclipse的控制台并不报错。只是前端提示如上。好头疼,求高手帮忙。
<ex-property>
<name>org.eclipse.datatools.connectivity.driverDefinitionID</name>
<value>DriverDefn.org.eclipse.datatools.enablement.msft.sqlserver.2008.driverTemplate.Microsoft SQL Server 2008 JDBC Driver</value>
</ex-property>
删了就行 。f**k。找了我将近一个星期。下源码。debug。一步步看。。原来是myeclipse自动生成的xml代码多了这么一串。。

第1个回答  2014-11-12
<ex-property>
<name>org.eclipse.datatools.connectivity.driverDefinitionID</name>
<value>DriverDefn.org.eclipse.datatools.enablement.msft.sqlserver.2008.driverTemplate.Microsoft SQL Server 2008 JDBC Driver</value>
</ex-property>
删了就行 。

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网