{"id":2054,"date":"2015-07-29T15:53:09","date_gmt":"2015-07-29T06:53:09","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=2054"},"modified":"2015-07-29T15:53:09","modified_gmt":"2015-07-29T06:53:09","slug":"classnotfoundexception-cause-and-solution","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2015\/07\/29\/classnotfoundexception-cause-and-solution\/","title":{"rendered":"ClassNotFoundException cause and solution."},"content":{"rendered":"<p>The cause of ClassNotFoundException is simpler compared to NoClassDefFoundError.<\/p>\n<p>This error occurs when you use Class.forName().<\/p>\n<p>In most cases, the argument string has some spelling error.<br \/>\nEven if you don&#8217;t use Class.forName(),Many framework uses this method.<br \/>\nTake tomcat config-files for example,<br \/>\nIf you write wrong class name in web.xml, Tomcat will throw ClassNotFoundException in initialize process.<\/p>\n<p>To solve this exception, you must check that class name, then correct it or check if that class is in the classpath.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The cause of ClassNotFoundException is s &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2015\/07\/29\/classnotfoundexception-cause-and-solution\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[214,10],"tags":[390,405],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2054"}],"collection":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/comments?post=2054"}],"version-history":[{"count":1,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2054\/revisions"}],"predecessor-version":[{"id":2055,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2054\/revisions\/2055"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=2054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=2054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=2054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}