{"id":1143,"date":"2017-01-13T11:50:53","date_gmt":"2017-01-13T03:50:53","guid":{"rendered":"http:\/\/blog.amjet.biz\/IT\/?p=1143"},"modified":"2017-01-13T11:51:23","modified_gmt":"2017-01-13T03:51:23","slug":"hibernate-5-project-deploy-%e5%88%b0-glassfish4-server-%e5%95%8f%e9%a1%8c","status":"publish","type":"post","link":"https:\/\/blog.amjet.biz\/IT\/?p=1143","title":{"rendered":"Hibernate 5 project deploy \u5230 glassfish4 server \u554f\u984c"},"content":{"rendered":"<p>\u5728 Glassfish 4.1.1 server \u4e0a\u6703\u51fa\u73fe\u4ee5\u4e0b Exception \u800c\u7121\u6cd5 deploy<\/p>\n<p>Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.jboss.logging.Logger.debugf(Ljava\/lang\/String;I)V<\/p>\n<p>\u4e3b\u8981\u662f Hibernate 5 \u9700\u8981 jboss-logging-3.3.0.Final.jar \u800c glassfish module \u76ee\u9304\u5167\u7684 jboss-logging.jar \u7248\u672c\u6bd4\u8f03\u820a<\/p>\n<p>\u89e3\u6c7a\u7684\u65b9\u6cd5\u662f\u5c07 jboss-logging-3.3.0.Final.jar copy \u5230 glassfish module \u76ee\u9304\u5167\uff0c\u518d\u5c07\u539f\u672c\u7684 jar \u6a94\u6539\u540d\uff0c\u8655\u7406\u597d\u5f8c\u8981 <a href=\"https:\/\/agritsik.wordpress.com\/2015\/08\/26\/how-to-clear-glassfish-cache-helps-to-resolve-deployment-exception-inconsistent-module-state\/\" target=\"_blank\">\u6e05\u9664 glassfish server \u7684 cache<\/a> \uff0c\u518d\u91cd\u65b0\u555f\u52d5 glassfish server \u5373\u53ef<\/p>\n<p>\u53c3\u8003 <a href=\"http:\/\/stackoverflow.com\/questions\/34813782\/hibernate-5-glassfish-4-1-1-java-lang-nosuchmethoderror-org-jboss-logging-lo\" target=\"_blank\">\u7db2\u5740<\/a><\/p>\n<p>[ratings]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Glassfish 4.1.1 server \u4e0a\u6703\u51fa\u73fe\u4ee5\u4e0b Exception \u800c\u7121\u6cd5 deploy Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.jboss.logging.Logger.debugf(Ljava\/lang\/String;I)V \u4e3b\u8981\u662f Hibernate 5 \u9700\u8981 jboss-logging-3.3.0.Final.jar \u800c glassfish module \u76ee\u9304\u5167\u7684 jboss-logging.jar \u7248\u672c\u6bd4\u8f03\u820a \u89e3\u6c7a\u7684\u65b9\u6cd5\u662f\u5c07 jboss-logging-3.3.0.Final.jar copy \u5230 glassfish module \u76ee\u9304\u5167\uff0c\u518d\u5c07\u539f\u672c\u7684 jar \u6a94\u6539\u540d\uff0c\u8655\u7406\u597d\u5f8c\u8981 \u6e05\u9664 glassfish server \u7684 cache \uff0c\u518d\u91cd\u65b0\u555f\u52d5 glassfish server \u5373\u53ef \u53c3\u8003 \u7db2\u5740 [ratings]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[109,133],"class_list":["post-1143","post","type-post","status-publish","format-standard","hentry","category-java","tag-glassfish","tag-java"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/1143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1143"}],"version-history":[{"count":2,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/1143\/revisions"}],"predecessor-version":[{"id":1145,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/1143\/revisions\/1145"}],"wp:attachment":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}