fix classloader error when starting AKKA as a library in jetty (fixes http://www.assembla.com/spaces/akka/tickets/129 )

This commit is contained in:
Eckart Hertzler 2010-03-08 15:31:36 +01:00
parent 198dfc4398
commit f94dc3f12e

View file

@ -30,7 +30,7 @@ trait BootableActorLoaderService extends Bootable with Logging {
}
val toDeploy = for (f <- DEPLOY_DIR.listFiles().toArray.toList.asInstanceOf[List[File]]) yield f.toURL
log.info("Deploying applications from [%s]: [%s]", DEPLOY, toDeploy.toArray.toList)
new URLClassLoader(toDeploy.toArray, ClassLoader.getSystemClassLoader)
new URLClassLoader(toDeploy.toArray, getClass.getClassLoader)
} else getClass.getClassLoader)
}
@ -43,4 +43,4 @@ trait BootableActorLoaderService extends Bootable with Logging {
}
abstract override def onUnload = ActorRegistry.shutdownAll
}
}