JDBC bundle uses local ClassLoader as bean ClassLoader for "sql-error-codes.xml" parsing (SPR-7497)
This commit is contained in:
parent
5ddf8245dd
commit
82bcef037d
|
|
@ -97,10 +97,11 @@ public class SQLErrorCodesFactory {
|
||||||
* @see #loadResource(String)
|
* @see #loadResource(String)
|
||||||
*/
|
*/
|
||||||
protected SQLErrorCodesFactory() {
|
protected SQLErrorCodesFactory() {
|
||||||
Map<String, SQLErrorCodes> errorCodes = null;
|
Map<String, SQLErrorCodes> errorCodes;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
DefaultListableBeanFactory lbf = new DefaultListableBeanFactory();
|
DefaultListableBeanFactory lbf = new DefaultListableBeanFactory();
|
||||||
|
lbf.setBeanClassLoader(getClass().getClassLoader());
|
||||||
XmlBeanDefinitionReader bdr = new XmlBeanDefinitionReader(lbf);
|
XmlBeanDefinitionReader bdr = new XmlBeanDefinitionReader(lbf);
|
||||||
|
|
||||||
// Load default SQL error codes.
|
// Load default SQL error codes.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue