Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Commit

Permalink
Set correct ClassLoader for app initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Gómez Ferro committed Mar 5, 2013
1 parent 4429bef commit f86f31b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ public void run() {
private void startS4App(AppConfig appConfig, Injector parentInjector, ClassLoader modulesLoader) {
try {
App app = loadApp(appConfig, modulesLoader);

// use correct classLoader for running the app initialization
Thread.currentThread().setContextClassLoader(app.getClass().getClassLoader());

app.init();
app.start();

Expand Down

0 comments on commit f86f31b

Please sign in to comment.