{"id":46,"date":"2008-02-22T21:32:00","date_gmt":"2008-02-22T21:32:00","guid":{"rendered":"http:\/\/www.mohanjith.net\/wordpress\/?p=46"},"modified":"2008-02-22T21:32:00","modified_gmt":"2008-02-22T21:32:00","slug":"cas-jdbc-service-registry-trouble","status":"publish","type":"post","link":"https:\/\/mohanjith.net\/blog\/2008\/02\/cas-jdbc-service-registry-trouble.html","title":{"rendered":"CAS JDBC Service registry trouble"},"content":{"rendered":"<p>I had a interesting time trying to figure out why the <a href=\"http:\/\/www.ja-sig.org\/products\/cas\/\">JA-SIG CAS<\/a> service registry status was being reset when ever I restarted CAS. After much frustration I figured out the problem was in the schema that hibernate has automatically created.<\/p>\n<p>I&#8217;ll explain my setup, I was using MySQL for storing the service registry data via <a href=\"http:\/\/www.springframework.org\/\">Spring<\/a> entity manager and <a href=\"http:\/\/www.hibernate.org\/\">Hibernate<\/a>.<\/p>\n<p>Hibernate was creating <code>BIT(1)<\/code> for boolean atributes instead of <code>TINYINT(1)<\/code>. Because of this MySQL was not returning anything meaningful for the status. I have now changed the schema, and removed\/commented the propery <code>hibernate.hbm2ddl.auto<\/code> in the enitity manager bean. It seem to work perfectly.<\/p>\n<p>Hope someone in a similar situation will find this information useful.i<\/p>\n<div id=\"fb-like\" style=\"\"><iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https:\/\/mohanjith.net\/blog\/2008\/02\/cas-jdbc-service-registry-trouble.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; width:300px; height:30px\"><\/iframe><\/div>","protected":false},"excerpt":{"rendered":"<p>I had a interesting time trying to figure out why the JA-SIG CAS service registry status was being reset when ever I restarted CAS. After much frustration I figured out the problem was in the schema that hibernate has automatically created. I&#8217;ll explain my setup, I was using MySQL for storing the service registry data &#8230; <a title=\"CAS JDBC Service registry trouble\" class=\"read-more\" href=\"https:\/\/mohanjith.net\/blog\/2008\/02\/cas-jdbc-service-registry-trouble.html\" aria-label=\"More on CAS JDBC Service registry trouble\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[106,109,104,108],"tags":[418,421,416,420],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-cas","category-hibernate","category-ja-sig","category-spring","tag-cas","tag-hibernate","tag-ja-sig","tag-spring"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5lUHm-K","jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":0,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"wp:attachment":[{"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}