|
|
|
@ -2,6 +2,7 @@ package com.fr.start.server;
|
|
|
|
|
|
|
|
|
|
import com.fr.cbb.websocket.core.WebSocketEndpoint; |
|
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
|
import com.fr.event.EventDispatcher; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.module.Activator; |
|
|
|
|
import com.fr.module.ModuleRole; |
|
|
|
@ -12,6 +13,7 @@ import com.fr.startup.FineWebApplicationInitializer;
|
|
|
|
|
import com.fr.third.guava.collect.Sets; |
|
|
|
|
import com.fr.third.springframework.web.SpringServletContainerInitializer; |
|
|
|
|
import com.fr.third.springframework.web.context.support.AnnotationConfigWebApplicationContext; |
|
|
|
|
import com.fr.web.utils.event.WebEvent; |
|
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
import org.apache.catalina.Context; |
|
|
|
|
import org.apache.catalina.LifecycleException; |
|
|
|
@ -41,6 +43,7 @@ public class FineEmbedServerActivator extends Activator {
|
|
|
|
|
//初始化tomcat
|
|
|
|
|
initTomcat(); |
|
|
|
|
tomcat.start(); |
|
|
|
|
EventDispatcher.asyncFire(WebEvent.WEB_STATUS_CHANGE); |
|
|
|
|
|
|
|
|
|
} catch (LifecycleException e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
@ -56,6 +59,7 @@ public class FineEmbedServerActivator extends Activator {
|
|
|
|
|
stopSpring(); |
|
|
|
|
stopServerActivator(); |
|
|
|
|
stopTomcat(); |
|
|
|
|
EventDispatcher.asyncFire(WebEvent.WEB_STATUS_CHANGE); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
} |
|
|
|
|