mirror of https://github.com/apache/openjpa.git
OPENJPA-401 Swapped the order of the class loaders since the previous fix for OPENJPA-401 was causing intermittent failures in loading metadata when the mappingtool task was being run.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@599178 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
30024007cd
commit
5472692b41
|
@ -188,9 +188,9 @@ public class MappingToolTask
|
|||
flags.sqlWriter = Files.getWriter(sqlFile, loader);
|
||||
|
||||
MultiLoaderClassResolver resolver = new MultiLoaderClassResolver();
|
||||
resolver.addClassLoader(loader);
|
||||
resolver.addClassLoader((ClassLoader) AccessController.doPrivileged(
|
||||
J2DoPrivHelper.getClassLoaderAction(MappingTool.class)));
|
||||
resolver.addClassLoader(loader);
|
||||
JDBCConfiguration conf = (JDBCConfiguration) getConfiguration();
|
||||
conf.setClassResolver(resolver);
|
||||
|
||||
|
|
Loading…
Reference in New Issue