Browse Source

jfinal 2.3 ^_^

James 9 years ago
parent
commit
c2e95781d4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/com/jfinal/server/JettyServer.java

+ 3 - 3
src/com/jfinal/server/JettyServer.java

@@ -129,12 +129,12 @@ class JettyServer implements IServer {
 		return;
 		return;
 	}
 	}
 	
 	
-	@SuppressWarnings("resource")
 	private void changeClassLoader(WebAppContext webApp) {
 	private void changeClassLoader(WebAppContext webApp) {
 		try {
 		try {
 			String classPath = getClassPath();
 			String classPath = getClassPath();
-			JFinalClassLoader wacl = new JFinalClassLoader(webApp, classPath);
-			wacl.addClassPath(classPath);
+			JFinalClassLoader jfcl = new JFinalClassLoader(webApp, classPath);
+			jfcl.addClassPath(classPath);
+			webApp.setClassLoader(jfcl);
 		} catch (IOException e) {
 		} catch (IOException e) {
 			LogKit.error(e.getMessage(), e);
 			LogKit.error(e.getMessage(), e);
 		}
 		}