{"id":1308,"date":"2015-08-11T10:49:34","date_gmt":"2015-08-11T02:49:34","guid":{"rendered":"http:\/\/www.strongd.net\/?p=1308"},"modified":"2015-08-11T11:05:23","modified_gmt":"2015-08-11T03:05:23","slug":"%e4%bb%8a%e5%a4%a9%e6%8a%8atomcat%e4%bb%8e6-0-18%e5%8d%87%e7%ba%a7%e5%88%b07-0-25%ef%bc%8c%e5%8f%91%e7%8e%b0%e4%ba%86%e4%b8%a4%e4%b8%aa%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=1308","title":{"rendered":"upgrade tomcat6xx to tomcat7xx with 3 problem3"},"content":{"rendered":"<p>\u4eca\u5929\u628atomcat\u4ece6.0.18\u5347\u7ea7\u52307.0.25\uff0c\u53d1\u73b0\u4e86\u4e24\u4e2a\u95ee\u9898<\/p>\n<p>\u95ee\u98981<\/p>\n<p>java.lang.ClassNotFoundException: org.apache.catalina.mbeans.ServerLifecycleListener<\/p>\n<p>\u53d1\u73b0\u5c45\u7136\u627e\u4e0d\u5230\u8fd9\u4e2a\u7c7b\uff0c\u7136\u540e\u628acatatina.jar\u4e0b\u8f7d\u4e0b\u6765\u53cd\u7f16\u8bd1\u4e00\u770bmbenas\u8fd9\u4e2a\u6587\u4ef6\u5939\u5c45\u7136\u662f\u7a7a\u7684<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5<\/p>\n<p>6.0.18\u4ee5\u524d\uff0cconf\/server.xml\u91cc\u9762\u7684\u914d\u7f6e\u6709\u8fd9\u9879<\/p>\n<p>\u6ce8\u91ca\u6389\u5c31\u53ef\u4ee5\u4e86<br \/>\n<!--<Listener className=\"org.apache.catalina.mbeans.ServerLifecycleListener\" \/> --><\/p>\n<p>\u95ee\u98982<\/p>\n<p>\u4e25\u91cd: Begin event threw exception<br \/>\njava.lang.IllegalArgumentException: taglib definition not consistent with specification version<\/p>\n<p>tomcat 6.0.18\u91cc\u9762\u7684web.xml\u91cc\u9762\u7684tab\u914d\u7f6e\u5982\u4e0b<br \/>\nhttp:\/\/java.sun.com\/jstl\/core<br \/>\n\/WEB-INF\/c.tld<\/p>\n<p>tomcat 7.0.25\u91cc\u9762web.xml\u7684tag\u914d\u7f6e\u5e94\u8be5\u5982\u4e0b\u6240\u793a<\/p>\n<p>http:\/\/java.sun.com\/jstl\/core<br \/>\n\/WEB-INF\/c.tld<\/p>\n<p>&nbsp;<\/p>\n<p>\u95ee\u98982<\/p>\n<p>Aug 11, 2015 10:41:11 AM org.apache.jasper.compiler.JDTCompiler$1 findType<br \/>\nSEVERE: Compilation error<br \/>\norg.eclipse.jdt.internal.compiler.classfmt.ClassFormatException<\/p>\n<p>&nbsp;<\/p>\n<p>\u539f\u6765\u662fJDK\u7684\u7248\u672c\u95ee\u9898\uff0c\u7cfb\u7edf\u81ea\u662fOpenJDK 1.8\uff0c<\/p>\n<p>\u8981\u6539\u56deOpenJDK 1.6<\/p>\n<p>yum install java-1.6.0-openjdk<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u628atomcat\u4ece6.0.18\u5347\u7ea7\u52307.0.25\uff0c\u53d1\u73b0\u4e86\u4e24\u4e2a\u95ee\u9898 \u95ee\u98981 java.lang.ClassNotFoundException: org.apache.catalina.mbeans.ServerLifecycleListener \u53d1\u73b0\u5c45\u7136\u627e\u4e0d\u5230\u8fd9\u4e2a\u7c7b\uff0c\u7136\u540e\u628acatatina.jar\u4e0b\u8f7d\u4e0b\u6765\u53cd\u7f16\u8bd1\u4e00\u770bmbenas\u8fd9\u4e2a\u6587\u4ef6\u5939\u5c45\u7136\u662f\u7a7a\u7684 \u89e3\u51b3\u529e\u6cd5 6.0.18\u4ee5\u524d\uff0cconf\/server.xml\u91cc\u9762\u7684\u914d\u7f6e\u6709\u8fd9\u9879 \u6ce8\u91ca\u6389\u5c31\u53ef\u4ee5\u4e86 \u95ee\u98982 \u4e25\u91cd: Begin event threw exception java.lang.IllegalArgumentException: taglib definition not consistent with specification version tomcat 6.0.18\u91cc\u9762\u7684web.xml\u91cc\u9762\u7684tab\u914d\u7f6e\u5982\u4e0b http:\/\/java.sun.com\/jstl\/core \/WEB-INF\/c.tld tomcat 7.0.25\u91cc\u9762web.xml\u7684tag\u914d\u7f6e\u5e94\u8be5\u5982\u4e0b\u6240\u793a http:\/\/java.sun.com\/jstl\/core \/WEB-INF\/c.tld &nbsp; \u95ee\u98982 Aug 11, 2015 10:41:11 AM org.apache.jasper.compiler.JDTCompiler$1 findType SEVERE: Compilation error org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException &nbsp; \u539f\u6765\u662fJDK\u7684\u7248\u672c\u95ee\u9898\uff0c\u7cfb\u7edf\u81ea\u662fOpenJDK 1.8\uff0c \u8981\u6539\u56deOpenJDK 1.6 yum install java-1.6.0-openjdk<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,35],"tags":[],"class_list":["post-1308","post","type-post","status-publish","format-standard","hentry","category-linux","category-35"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1308"}],"version-history":[{"count":3,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1308\/revisions"}],"predecessor-version":[{"id":1311,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1308\/revisions\/1311"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}