Javasettings loadpath only working in first context/app

I tried with javaloader. I get exactly the same results. 1st site/context works fine. second doesn’t.

I also removed

 THIS.javaSettings = {
    	loadPaths = ["/global/lib/sides/sides-1.0.17.jar"]
    };

from the application.cfc since it seems redundant as createObject contains the path to the jar. Same result.

The only way I got it to work is dropping the jar in /lucee/lib
and removing the paths in the createObjects. Not ideal. this means I can’t update lucee without updating the codebase at the same time and anytime we need ot modify the jar I have to update all our servers lucee/lib.

Like I said. Code worked fine in 6.0.3.1.

Could this be a similar issue as Lucee 5 class loading issues with Thread.currentThread().getContextClassLoader().getResourceAsStream()