Browse files

Merge branch 'fix-classloading' into jars

  • Loading branch information...
2 parents a224186 + 9134048 commit 38d082ac9fc880dfd2743622843d18d37196eab8 @jonnyzzz jonnyzzz committed Mar 13, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/KaraExec/src/server/AppLoader.kt
View
4 src/KaraExec/src/server/AppLoader.kt
@@ -64,7 +64,9 @@ class AppLoader(val appConfig : AppConfig) : FileWatchListener {
synchronized(appLock) {
// load the application class
- classLoader = URLClassLoader(buildClasspath())
+ val cp = buildClasspath()
+ logger.debug("Application classpath: " + cp)
+ classLoader = URLClassLoader(cp, javaClass.getClassLoader())
val appClassObject = classLoader?.loadClass("${appConfig.appPackage}.Application")
if (appClassObject == null)
throw RuntimeException("Expected class ${appConfig.appPackage}.Application to be defined")

0 comments on commit 38d082a

Please sign in to comment.