mirror of https://github.com/apache/openjpa.git
OPENJPA-1764 protect against java.lang.NoClassDefFoundError when being used in an app server but as app managed and the JVM exits quickly from under us
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1030183 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aa9573698b
commit
3b3063899b
|
@ -76,7 +76,9 @@ extends SimpleDriverDataSource implements Configurable, Closeable {
|
|||
((org.apache.commons.dbcp.BasicDataSource)_dbcpClass.cast(_ds)).close();
|
||||
}
|
||||
}
|
||||
} catch (ClassCastException cce) {
|
||||
} catch (Exception e) {
|
||||
// no-op
|
||||
} catch (Throwable t) {
|
||||
// no-op
|
||||
} finally {
|
||||
_ds = null;
|
||||
|
|
Loading…
Reference in New Issue