powertac/household-customer — pull request #31 by juricababic (2012-03-14 17:23:20+00:00)
Title: Switching file loading from system loader to thread context class loader.

Following message applies to household customer as well as factored customer plugin.

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).

If there is some other and better solution for this issue, please help.

Thanks,
Jurica