diff --git a/src/java/cliloader/LoaderCLIMain.java b/src/java/cliloader/LoaderCLIMain.java index 3e595678..a530d1d5 100644 --- a/src/java/cliloader/LoaderCLIMain.java +++ b/src/java/cliloader/LoaderCLIMain.java @@ -713,6 +713,8 @@ public static ArrayList< String > initialize( String[] arguments ) throws IOExce File libDir = getLibDir(); // Default Log4j2 config is in the libn folder System.setProperty("log4j2.configurationFile", new File( libDir, "log4j2.xml" ).toURI().toString() ); + // The OSGI bundle loader is throwing an error so we need to force the default CL context selector + System.setProperty("Log4jContextSelector", "org.apache.logging.log4j.core.selector.ClassLoaderContextSelector" ); props.setProperty( "cfml.cli.lib", libDir.getAbsolutePath() ); File cfmlDir = new File( cli_home.getPath() + "/cfml" ); File cfmlSystemDir = new File( cli_home.getPath() + "/cfml/system" );