{"id":42,"date":"2008-02-16T15:58:00","date_gmt":"2008-02-16T15:58:00","guid":{"rendered":"http:\/\/www.mohanjith.net\/wordpress\/?p=42"},"modified":"2008-02-16T15:58:00","modified_gmt":"2008-02-16T15:58:00","slug":"ja-sig-cas-services-registry","status":"publish","type":"post","link":"https:\/\/mohanjith.net\/blog\/2008\/02\/ja-sig-cas-services-registry.html","title":{"rendered":"JA-SIG CAS services registry persistence"},"content":{"rendered":"<p>I was pulling my hair trying to get JA-SIG CAS to work with persistet service registry. By default CAS comes with a in-memory services registry, this is not at all acceptable in production, so I went about following the instructions in <a href=\"http:\/\/www.ja-sig.org\/wiki\/display\/CASUM\/Configuring\">http:\/\/www.ja-sig.org\/wiki\/display\/CASUM\/Configuring<\/a> under ServicesRegistry and Database Connection. I didn&#8217;t pay much attention to &#8220;Package your webapp and go for a try&#8221;, instead I chose to put in the necessary jars into the lib\/ directory manually.<\/p>\n<p>Eventhough I got all the necessary jars in place I was being confronted to a &#8220;java.lang.NoClassDefFoundError: org\/hibernate\/ejb\/HibernatePersistence&#8221;. I double checked still no avail. I tried Googling, but didn&#8217;t lead me to anything very useful.<\/p>\n<p>All the problems went away once I made the changes to the CAS distribution and recompiled. WOW, that was a ride of the life time. It was weird that JDBC authentication handler worked alright by placing the jars in place manually but services registry wouldn&#8217;t work the same way.<\/p>\n<p>I guess this post will help someone who runs into the same problem.<\/p>\n<div id=\"fb-like\" style=\"\"><iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https:\/\/mohanjith.net\/blog\/2008\/02\/ja-sig-cas-services-registry.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 was pulling my hair trying to get JA-SIG CAS to work with persistet service registry. By default CAS comes with a in-memory services registry, this is not at all acceptable in production, so I went about following the instructions in http:\/\/www.ja-sig.org\/wiki\/display\/CASUM\/Configuring under ServicesRegistry and Database Connection. I didn&#8217;t pay much attention to &#8220;Package your &#8230; <a title=\"JA-SIG CAS services registry persistence\" class=\"read-more\" href=\"https:\/\/mohanjith.net\/blog\/2008\/02\/ja-sig-cas-services-registry.html\" aria-label=\"More on JA-SIG CAS services registry persistence\">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,104,105],"tags":[418,416,417],"class_list":["post-42","post","type-post","status-publish","format-standard","hentry","category-cas","category-ja-sig","category-java","tag-cas","tag-ja-sig","tag-java"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5lUHm-G","jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/posts\/42","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=42"}],"version-history":[{"count":0,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"wp:attachment":[{"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}