{"id":232,"date":"2008-05-28T01:11:22","date_gmt":"2008-05-28T07:11:22","guid":{"rendered":"http:\/\/www.ourada.org\/blog\/?p=232"},"modified":"2008-05-28T01:11:22","modified_gmt":"2008-05-28T07:11:22","slug":"unexpected-classloader-weirdness","status":"publish","type":"post","link":"https:\/\/www.ourada.org\/blog\/archives\/232","title":{"rendered":"Unexpected classloader weirdness"},"content":{"rendered":"<p>Did you know that in Tomcat 6, you apparently&#8230; well, I can&#8217;t quite say what the cause is, but here&#8217;s what happened:<\/p>\n<ul>\n<li>I have a webapp that&#8217;s using a library that might be doing some slightly tricky classloader things<\/li>\n<li>If I access that app through the AJP connector, it fails to find a class that&#8217;s definitely there in my WEB-INF\/classes and world-readable<\/li>\n<li>If I access that app (from the same URL and in the same state) through the HTTP connector, it finds the class<\/li>\n<\/ul>\n<p>It must be something to do with classloaders, but I can&#8217;t say that I understand any reason why that would happen. Of course, I haven&#8217;t investigated it, either, because I&#8217;m more interested in getting the thing to work right now than in figuring out what this weirdness is about.<\/p>\n<p>Instead of using mod_jk and JkMount, I&#8217;m using mod_proxy_http and ProxyPass. Works well enough for my purposes and avoids whatever this problem is. Maybe sometime I&#8217;ll be inspired to dig deeper, because ya know this would turn out to be one of those &#8220;wow, I can&#8217;t believe these things would all interact in such an unexpected way&#8221; things.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did you know that in Tomcat 6, you apparently&#8230; well, I can&#8217;t quite say what the cause is, but here&#8217;s what happened: I have a webapp that&#8217;s using a library that might be doing some slightly tricky classloader things If I access that app through the AJP connector, it fails to find a class that&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-232","post","type-post","status-publish","format-standard","hentry","category-general","author-admin"],"_links":{"self":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/posts\/232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/comments?post=232"}],"version-history":[{"count":0,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/posts\/232\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/media?parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/categories?post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/tags?post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}