Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
When loding JDBC driver throw: error in opening zip file
Grrrrrrr
The first use of BIRT, the environment and setting up my environment set up as follows:
1.Eclipse osgi do kernel
2.Jetty do server plug-in
3.BIRT as an application ref to the server, configure the following:
EngineConfig config = new EngineConfig();
config.setBIRTHome("D:/birt-runtime-2_3_2/ReportEngine");
try {
Platform.startup(config);
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
birtEngine = factory.createReportEngine(config);
} catch (Exception e) {
e.printStackTrace();
}
However, when running the following error is prompted :
2010-4-29 15:43:16 org.eclipse.birt.core.framework.URLClassLoader createLoader
can't load the class from file:/D:/birt-runtime-2_3_2/ReportEngine/plugins/org.eclipse.birt.report.data.oda.jdbc_2.3.2.r232_v20090212/drivers/ojdbc6.jar
java.util.zip.ZipException: error in opening zip file
.......
2010-4-29 15:43:16 org.eclipse.birt.core.framework.URLClassLoader createLoader
can't load the class from bundleentry://41/drivers/ojdbc6.jar
java.io.IOException: No bundle found for URL: bundleentry://41/drivers/ojdbc6.jar
.......
2010-4-29 15:43:16 org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager loadExtraDriver
DriverClassLoader failed to load class: oracle.jdbc.driver.OracleDriver
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
........
2010-4-29 15:43:16 org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager loadExtraDriver
refreshUrlsWhenFail: true
2010-4-29 15:43:16 org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager loadExtraDriver
driverClassPath: null
2010-4-29 15:43:16 org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager loadExtraDriver
Registered URLs: [file:/D:/birt-runtime-2_3_2/ReportEngine/plugins/org.eclipse.birt.report.data.oda.jdbc_2.3.2.r232_v20090212/drivers/ojdbc6.jar][bundleentry://41/drivers/ojdbc6.jar]
2010-4-29 15:43:16 org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager findDriver
Failed to load JDBC driver class: oracle.jdbc.driver.OracleDriver
2010-4-29 15:43:16 org.eclipse.birt.data.engine.odaconsumer.ConnectionManager openConnection
Cannot open connection.
org.eclipse.birt.report.data.oda.jdbc.JDBCException: Cannot load JDBC Driver class: oracle.jdbc.driver.OracleDriver.
that path created by birt-rcp-report-designer-2_3_2 configuration.
Find more posts tagged with
Comments
thuston
? are you using Java 6 when you run? You might want to try with ojdbc14 or ojdbc5.
Grrrrrrr
Yes, I am using JDK6.