|
|
@ -145,28 +145,12 @@ public class TomcatHost { |
|
|
|
return server; |
|
|
|
return server; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//MoMeak:调试用,等ju那边联调好了删
|
|
|
|
|
|
|
|
private void setRootNull(){ |
|
|
|
|
|
|
|
Class<?> clazz = ModuleContext.class; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
Field field = clazz.getDeclaredField("root"); |
|
|
|
|
|
|
|
field.setAccessible(true); |
|
|
|
|
|
|
|
field.set(null,null); |
|
|
|
|
|
|
|
} catch (NoSuchFieldException e) { |
|
|
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
|
|
} catch (IllegalAccessException e) { |
|
|
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Start |
|
|
|
* Start |
|
|
|
* |
|
|
|
* |
|
|
|
* @throws Exception |
|
|
|
* @throws Exception |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void start() throws Exception { |
|
|
|
public void start() throws Exception { |
|
|
|
//MoMeak:调试用
|
|
|
|
|
|
|
|
setRootNull(); |
|
|
|
|
|
|
|
tomcat.start(); |
|
|
|
tomcat.start(); |
|
|
|
for (int i = 0; i < listenerList.size(); i++) { |
|
|
|
for (int i = 0; i < listenerList.size(); i++) { |
|
|
|
TomcatServerListener listener = TomcatHost.this.getLinstener(i); |
|
|
|
TomcatServerListener listener = TomcatHost.this.getLinstener(i); |
|
|
|