{"id":564,"date":"2009-12-18T12:30:59","date_gmt":"2009-12-18T12:30:59","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=564"},"modified":"2011-11-17T12:23:14","modified_gmt":"2011-11-17T12:23:14","slug":"tomcat-with-jpa-persistence-jar-signing-issue","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=564","title":{"rendered":"Tomcat with JPA Persistence jar signing issue"},"content":{"rendered":"<p>I hit this when deploying\u00a0 an Eclipselink 1.1 web application to Tomcat 6.0.24, when trying to place all the persistence jars in <strong>&lt;Tomcat Home&gt;\\lib<\/strong><\/p>\n<p>The app worked fine when including its own copy of the jars under <strong>WEB-INF\\lib<\/strong>, but moving them to <strong>&lt;Tomcat Home&gt;\\lib <\/strong>gave the following error :-<\/p>\n<p style=\"padding-left: 30px;\">java.lang.SecurityException: class &#8220;javax.persistence.Persistence&#8221;&#8216;s signer information does not match signer information of other classes in the same package<\/p>\n<p>I checked all the other (non eclipselink) libraries present and could not see a clash. <a title=\"http:\/\/dev.eclipse.org\/mhonarc\/lists\/eclipselink-users\/msg02815.html\" href=\"http:\/\/dev.eclipse.org\/mhonarc\/lists\/eclipselink-users\/msg02815.html\"><strong>This post<\/strong><\/a> appears to shed some light, indicating that it is perhaps a mismatch of jar signing in the Eclipsink libraries.<br \/>\nHowever, it is strange that it works fine with the libraries deployed with the application rather than under Tomcat.<\/p>\n<p>As Tomcat does not provide its own JPA support, I decided I was quite happy to deploy the libraries with the web app as that works fine, and to leave the issue unresolved.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I hit this when deploying\u00a0 an Eclipselink 1.1 web application to Tomcat 6.0.24, when trying to place all the persistence jars in &lt;Tomcat Home&gt;\\lib The app worked fine when including its own copy of the jars under WEB-INF\\lib, but moving them to &lt;Tomcat Home&gt;\\lib gave the following error :- java.lang.SecurityException: class &#8220;javax.persistence.Persistence&#8221;&#8216;s signer information does [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[64],"tags":[13,35,182,37],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/564"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=564"}],"version-history":[{"count":2,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/564\/revisions"}],"predecessor-version":[{"id":1560,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/564\/revisions\/1560"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}