You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "complone (GitHub)" <gi...@apache.org> on 2019/08/15 01:06:03 UTC
[GitHub] [dubbo-samples] complone commented on issue #98: With
dubbo-samples-rest ,
see "No Spring WebApplicationInitializer types detected on classpath" when
run tomcat
i think you can see this issue [#95](https://github.com/apache/dubbo/issues/95)
```
public class DubboShutDownListener implements ServletContextListener {
@Override
public void contextDestroyed(ServletContextEvent arg0){
arg0.getServletContext().log("DubboShutDownListener.contextDestroyed called!");
try {
final Class protocolConfig = Class.forName("com.alibaba.dubbo.config.ProtocolConfig");
final Method method = protocolConfig.getMethod("destroyAll");
method.invoke(protocolConfig);
} catch (Exception e){
arg0.getServletContext().log("destory dubbo failed:"+e.getMessage(), e);
}
}
@Override
public void contextInitialized(ServletContextEvent arg0){
//System.out.println("DubboShutDownListener.contextInitialized called!");
}
}
```
[ Full content available at: https://github.com/apache/dubbo-samples/issues/98 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org