return DriverManager.getConnection(url);
}
String password = getPassword();
return DriverManager.getConnection(url, user, password);
} catch (ServerConfigurationException ex) {
throw new ServerDbException("The Jitterbit server configuration is incorrect: " + ex.getMessage(), ex);
} catch (ClassNotFoundException ex) {
throw new ServerDbException("The driver could not be found. "
+ "Make sure the driver is on the classpath: " + ex.getMessage(), ex);
} catch (NoClassDefFoundError ex) {
throw new ServerDbException("The driver was found, but one of its required components could not be " +
"accessed correctly. Make sure all required driver libraries (JAR files) are installed " +
"correctly. The reported error message was: " + ex.toString(), ex);
} catch (ServerDbException ex) {
throw new ServerDbException("An error occurred while accessing the Jitterbit backend database: "
+ ex.getMessage(), ex);
}
}