{"id":292,"date":"2017-10-14T20:04:47","date_gmt":"2017-10-14T12:04:47","guid":{"rendered":"http:\/\/pony.hk\/?p=292"},"modified":"2017-10-14T23:22:10","modified_gmt":"2017-10-14T15:22:10","slug":"tomcat-7-%e5%90%af%e5%8a%a8%e6%8a%a5%e9%94%99jsr-356-websocket-java-websocket-1-1-support-is-not-available-when-running-on-java-6","status":"publish","type":"post","link":"https:\/\/lnmp.ivan.xin\/?p=292","title":{"rendered":"tomcat 7 \u542f\u52a8\u62a5\u9519JSR 356 WebSocket (Java WebSocket 1.1) support is not available when running on Java 6"},"content":{"rendered":"<p>\u65e5\u5fd7\uff1aINFO: JSR 356 WebSocket (Java WebSocket 1.1) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME\/lib or add the WebSocket JARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE\/conf\/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available.<\/p>\n<p>\u89e3\u51b3\uff1a\u6253\u5f00tomcat\u7684\u914d\u7f6e\u76ee\u5f55\/etc\/tomcat\uff0c\u627e\u5230catalina.properties\u6587\u4ef6\u8fd9\u4e48\u4e00\u884c\uff1a<br \/>\norg.apache.catalina.startup.TldConfig.jarsToSkip=tomcat7-websocket.jar<br \/>\n\u6ce8\u91ca\u6389\u91cd\u542f\u5373\u53ef<br \/>\n\u4f46\u662ftomcat7\u548cjava6\u8fde\u63a5mysql\uff0c\u4e5f\u4f1a\u51fa\u73b0\u4e00\u4e9b\u62a5\u9519\uff0c\u4f8b\u5982\uff1a<\/p>\n<p>SEVERE: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.<\/p>\n<p>SEVERE: The web application [] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.<br \/>\n\u6240\u4ee5\uff0c\u53ef\u4ee5\u7684\u8bdd\uff0ctomcat7\u4e0d\u8981\u548cjava6\u4e00\u8d77\u4f7f\u7528\uff0c\u628ajava6\u6362\u6210java7\u5427\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65e5\u5fd7\uff1aINFO: JSR 356 WebSocket (Java WebSocket 1.1) support...<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22781],"tags":[],"class_list":["post-292","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/posts\/292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=292"}],"version-history":[{"count":0,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/posts\/292\/revisions"}],"wp:attachment":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}