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:
parent
198dfc4398
commit
f94dc3f12e
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue