This commit is contained in:
Redkale
2017-05-31 21:19:51 +08:00
parent 542bb4353b
commit c88d0b402d
3 changed files with 30 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ public abstract class NodeServer {
this.resourceFactory = application.getResourceFactory().createChild();
this.server = server;
this.logger = Logger.getLogger(this.getClass().getSimpleName());
this.classLoader = new NodeClassLoader(Thread.currentThread().getContextClassLoader());
this.classLoader = new NodeClassLoader((URLClassLoader)Thread.currentThread().getContextClassLoader());
Thread.currentThread().setContextClassLoader(this.classLoader);
}