You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <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

complone commented on issue #98:  With dubbo-samples-rest , see "No Spring WebApplicationInitializer types detected on classpath" when run tomcat 
URL: https://github.com/apache/dubbo-samples/issues/98#issuecomment-521475771
 
 
   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!");
       }
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org