Bug 212703 Render the report use genReport error[00]
Description: Render the report document use genReport error[00] Render the report document by genReport, and it will pop up the error message. Failed to load Derby embedded driver: org.apache.derby.jdbc.EmbeddedDriver java.lang.ClassNotFoundException: org/apache/derby/jdbc/EmbeddedDriver at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at org.eclipse.birt.report.data.oda.sampledb.SampleDBJDBCConnectionFactory.getDerbyDriver(SampleDBJDBCConnectionFactory.java:123) at org.eclipse.birt.report.data.oda.sampledb.SampleDBJDBCConnectionFactory.shutdownDerby(SampleDBJDBCConnectionFactory.java:83) at org.eclipse.birt.report.data.oda.sampledb.SampledbPlugin.shutdownDerby(SampledbPlugin.java:183) at org.eclipse.birt.report.data.oda.sampledb.SampledbPlugin.cleanUp(SampledbPlugin.java:95) at org.eclipse.birt.report.data.oda.sampledb.SampledbPlugin.stop(SampledbPlugin.java:85) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$3.run(BundleContextImpl.java:1040) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:1036) at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:457) at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:527) at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1091) at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:673) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:289) at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:259) at org.eclipse.osgi.framework.internal.core.SystemBundle.suspend(SystemBundle.java:188) at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:666) at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:569) at org.eclipse.osgi.framework.internal.core.OSGi.close(OSGi.java:41) at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:398) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.eclipse.birt.core.framework.osgi.OSGILauncher.shutdown(OSGILauncher.java:375) at org.eclipse.birt.core.framework.Platform.shutdown(Platform.java:100) at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.java:172) at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.java:117)
data/org.eclipse.birt.report.data.oda.sampledb/src/org/eclipse/birt/report/data/oda/sampledb/SampleDBJDBCConnectionFactory.java
/*
 *************************************************************************
 * Copyright (c) 2005 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *  
 *************************************************************************
 */
package org.eclipse.birt.report.data.oda.sampledb;
import java.net.URL;
import java.net.URLClassLoader;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.SQLException;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.eclipse.birt.report.data.oda.jdbc.IConnectionFactory;
import org.eclipse.core.runtime.Platform;
import org.osgi.framework.Bundle;
public class SampleDBJDBCConnectionFactory implements IConnectionFactory