powertac/factored-customer — pull request #4 by juricababic (2012-03-14 17:18:34+00:00)
Title: Loading config file modification

It appears that system class loader in Tomcat/Jetty is not working the way it works in desktop enviroment.

Tomcat in its classpath have only two files, none of them are config files for powertac plugins: bootstrap.jar and tools.jar.

Forcing tomcat/jetty to put config files into system class loader is not an easy task and probably not the best idea.

Proposed solution is to switch from retrieving config files using system class loader to using thread context class loader, as you can see in the source code modification.

I have sucessfully tested this solution with an Eclipse integrated version of Tomcat, a maven deployment of Jetty server, and standard competition run using maven call from bash (server-distribution).

Thanks,
Jurica