Skip to content

Commit

Permalink
No needed classpath override
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsoro committed Dec 4, 2018
1 parent 6166f67 commit 01fb28e
Showing 1 changed file with 0 additions and 7 deletions.
Expand Up @@ -153,13 +153,6 @@ public static void main(final String[] args) throws Exception {
try (final URLClassLoader loader = setupClasspath()) {
setupHome(args);

if (loader != null) {
Thread.currentThread().setContextClassLoader(loader);
if (loader != ClassLoader.getSystemClassLoader()) {
System.setProperty("openejb.classloader.first.disallow-system-loading", "true");
}
}

final Class<?> clazz = (loader == null ? Bootstrap.class.getClassLoader() : loader).loadClass(OPENEJB_CLI_MAIN_CLASS_NAME);

final Object main = clazz.getConstructor().newInstance();
Expand Down

0 comments on commit 01fb28e

Please sign in to comment.