Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/330.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何在Tomcat上正确关闭JAX-WS-Spring应用程序?_Java_Spring_Tomcat_Jax Ws - Fatal编程技术网

Java 如何在Tomcat上正确关闭JAX-WS-Spring应用程序?

Java 如何在Tomcat上正确关闭JAX-WS-Spring应用程序?,java,spring,tomcat,jax-ws,Java,Spring,Tomcat,Jax Ws,启动应用程序并立即关闭Tomcat后,我收到Tomcat的以下两个警告: Mrz 11, 2013 11:25:06 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks Schwerwiegend: The web application [] created a ThreadLocal with key of type [com.sun.xml.ws.api.server.ThreadLocal

启动应用程序并立即关闭Tomcat后,我收到Tomcat的以下两个警告:

Mrz 11, 2013 11:25:06 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
Schwerwiegend: The web application [] created a ThreadLocal with key of type [com.sun.xml.ws.api.server.ThreadLocalContainerResolver$1] (value [com.sun.xml.ws.api.server.ThreadLocalContainerResolver$1@9be26c]) and a value of type [com.sun.xml.ws.api.server.Container.NoneContainer] (value [com.sun.xml.ws.api.server.Container$NoneContainer@4c563]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Mrz 11, 2013 11:25:06 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
Schwerwiegend: The web application [] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@13af0d9]) and a value of type [java.util.WeakHashMap] (value [{class javax.xml.bind.annotation.adapters.CollapsedStringAdapter=java.lang.ref.WeakReference@9a5a11, class com.sun.xml.ws.runtime.config.TubelineDefinition=java.lang.ref.WeakReference@18f22cf, class javax.xml.bind.annotation.W3CDomHandler=java.lang.ref.WeakReference@368055, class java.util.ArrayList=java.lang.ref.WeakReference@2350a9, class com.sun.xml.ws.runtime.config.TubeFactoryConfig=java.lang.ref.WeakReference@84a0f6, class com.sun.xml.ws.runtime.config.TubeFactoryList=java.lang.ref.WeakReference@1638d4f, class com.sun.xml.ws.runtime.config.MetroConfig=java.lang.ref.WeakReference@d259f1, class com.sun.xml.ws.runtime.config.Tubelines=java.lang.ref.WeakReference@f12fa}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

Tomcat拒绝关机并挂起。我正在使用com.sun.xml.ws.transport.http.servlet.WSSpringServlet。如何正确关闭此Web应用程序?

您可以转到tomcat应用程序管理器,找到应用程序并首先停止应用程序。然后关闭tomcat服务器。

这不是重点:从管理器中停止应用程序将导致服务器挂起,因为仍有线程本地分配。我需要一个WSSpringServlet的关闭钩子。我也遇到了同样的问题!你找到解决方案了吗?@user3146733不幸的是没有。我写了一个ShutdowListener,它会杀死剩下的线程。谢谢!你在这封信上写了什么?你把这位听众叫到哪里去了?我在论坛里找到了类似的帖子,并将在这里分享。希望仍能有所帮助。大家可以来这里,请订阅和+1的问题,所以它得到一些爱。