Hi Janak
Thank you very much for the quick solution! I just had to set Thread.currentThread().setContextClassLoader(...) and then it worked. I cannot completly understand why I had to add this since before 6.1 it was not necessary.
Here my code:
ClassLoader cl = new URLClassLoader(.......);
// Contains ulc-standalone-client.jar
// ulc-base-client.jar
// ulc-servlet-client.jar
// ulc-base-trusted.jar
String mainClass = "com.ulcjava.environment.standalone.client.DefaultStandaloneLauncher";
Thread.currentThread().setContextClassLoader(cl);
Class mainClazz = Class.forName(mainClass, true, cl);
Method mainMethod = mainClazz.getMethod("main", new Class[] {args.getClass()});
String[] ulcArgs = new String[] { //
"url-string=" + emaBase + "/standalone", //
"keep-alive-interval=120", //
};
mainMethod.invoke(null, new Object[] {ulcArgs});
As you can see, the DefaultStandaloneLauncher is loaded with the URLClassLoader so I would assume everything else will also use that one...
(The above code is started without any ULC stuff on the initial CLASSPATH).
Thanks & Regards
Eru
PS: I did not receive a direct eMail from you, just found it on the list.
