Bug 191404 Connection is still successful after delete drivers[0703]
Description: Create a Sqlserver datasource and dataset, then delete the jtds driver. Click "Test Connection" is still successful, and the dataset still works. Build Version:2.2.0.v20070607-0630 Steps to reproduce: 1. Add a jtds driver, and create a Sqlserver connection and dataset. 2. Go to "Manage JDBC Drivers" dialog, and delete the driver. 3. Click "Test Connection", the connection is successful. 4. Click "Preview Results" in "Edit Data Set" dialog, it works. Expected Result: Delete driver will lose the connection.
data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/JDBCDriverManager.java
DriverManager.getConnection(url, props)) is
	 ��sun.misc.Launcher$AppClassLoader��. As the classes loaded by a child
	 classloader are always not visible to its parent classloader,
	 DriverManager.getConnection(url, props), called by class Connection, actually
	 has no access to driver classes, which are loaded by
	 ��java.net.FactoryURLClassLoader��. The invoking of this method would return a
	 ��no suitable driver�� exception.
	On the other hand, if we use class WrappedDriver to wrap drivers. The DriverExt
	 class is loaded by ��sun.misc.Launcher$AppClassLoader��, which is same as the
	 classloader of Connection class. So DriverExt class is visible to
	 DriverManager.getConnection(url, props). And the invoking of the very method
	 would success.
	private static class Wrappe Driver
	{
		private Driver driver;
		private String driverClass;
		
		WrappedDriver( Driver d, String driverClass )
		{
			logger.entering( WrappedDriver.class.getName(), "WrappedDriver", driverClass );
			this.driver = d;
			this.driverClass = driverClass;
		}
		/*
		 * @see java.sql.Driver#acceptsURL(java.lang.String)
		 */
		public boolean acceptsURL( String u ) throws SQLException
		{
			boolean res = this.driver.acceptsURL( u );
			if ( logger.isLoggable( Level.FINER ))