使用myeclipse创建的birt 报表文件放在eclipse环境运行

          发现网上使用birt开发的人不是非常多,碰上问题很难解决,本人也是多次尝试后获取的结果(部分参考网上结论), 本人birt序列文章属于个人在研究学习使用birt过程中的笔记,纯属个人记录。

        

           将使用myeclipse创建的报表放在eclipse环境下运行,在访问报表的时候报如下错:

严重: Unable to determine the default workspace location.  Check your OSGi-less platform configuration of the plugin or datatools workspace path.
十一月 13, 2015 10:07:18 上午 org.eclipse.datatools.connectivity.internal.ConnectivityPlugin log
严重: Unable to determine the default workspace location.  Check your OSGi-less platform configuration of the plugin or datatools workspace path.
java.lang.IllegalStateException: Unable to determine the default workspace location.  Check your OSGi-less platform configuration of the plugin or datatools workspace path.
	at org.eclipse.datatools.connectivity.internal.ConnectivityPlugin.getDefaultStateLocation(ConnectivityPlugin.java:156)
	at org.eclipse.datatools.connectivity.internal.ConnectivityPlugin.getWorkspaceFilePath(ConnectivityPlugin.java:179)
	at org.eclipse.datatools.connectivity.drivers.DriverManager.wereDefaultDriversCreated(DriverManager.java:549)
	at org.eclipse.datatools.connectivity.drivers.DriverManager.resetDefaultInstances(DriverManager.java:840)
	at org.eclipse.datatools.connectivity.drivers.DriverManager.<init>(DriverManager.java:125)
	at org.eclipse.datatools.connectivity.drivers.DriverManager.getInstance(DriverManager.java:67)
	at org.eclipse.datatools.connectivity.DriverConnectionBase.getDriverDefinition(DriverConnectionBase.java:136)
	at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.open(JDBCConnection.java:79)
	at org.eclipse.datatools.enablement.internal.oracle.JDBCOracleConnectionFactory.createConnection(JDBCOracleConnectionFactory.java:27)
	at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83)
	at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359)
	at org.eclipse.datatools.connectivity.sqm.internal.core.connection.ConnectionInfoImpl.initializeJDBCConnection(ConnectionInfoImpl.java:705)
	at org.eclipse.datatools.connectivity.sqm.internal.core.connection.ConnectionInfoImpl.<init>(ConnectionInfoImpl.java:690)
	at org.eclipse.datatools.connectivity.sqm.internal.core.connection.ConnectionFactory.createConnection(ConnectionFactory.java:38)
	at org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFactory.createConnection(SQMConnectionFactory.java:45)
	at org.eclipse.datatools.connectivity.sqm.internal.core.connection.ConnectionFactory.createConnection(ConnectionFactory.java:59)
	at org.eclipse.datatools.connectivity.internal.ConnectionFactoryAdapterProvider.createConnection(ConnectionFactoryAdapterProvider.java:114)
	at org.eclipse.datatools.connectivity.internal.ManagedConnection.createConnection(ManagedConnection.java:163)
	at org.eclipse.datatools.connectivity.internal.CreateConnectionJob.run(CreateConnectionJob.java:56)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

 

  找到报表文件中,一下部分(数据库不同详细内容可能也会存在差别):

<ex-property>
                    <name>org.eclipse.datatools.connectivity.driverDefinitionID</name>
                    <value>DriverDefn.org.eclipse.datatools.enablement.oracle.10.driverTemplate.Oracle Thin Driver</value>
                </ex-property>

 

将这个节点内容注释问题解决.

 

 

 

你可能感兴趣的:(eclipse,MyEclipse,birt,birt,报表)