{"id":110,"date":"2009-12-01T09:35:30","date_gmt":"2009-12-01T09:35:30","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=110"},"modified":"2010-02-26T17:21:55","modified_gmt":"2010-02-26T17:21:55","slug":"icefaces-1-8-1-app-fails-to-run-its-own-created-test-page","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=110","title":{"rendered":"ICEfaces 1.8.1 app fails to run default sample page"},"content":{"rendered":"<p>I created a simple test web app using ICEfaces, including the test\/sample page that the plugin creates for you by default. When running the app on Glassfish, the error &#8220;Object doesn&#8217;t support this property or method&#8221; occurs and the page fails to load correctly. The same application works in Tomcat.<\/p>\n<p>The issue\u00a0turns out\u00a0to be due to\u00a0a single extra space in web.xml. The Eclipse code has an extra trailing space in the url pattern for the Persistent Faces Servlet mapping as follows :-<\/p>\n<p>Broken Version with trailing space after the * &#8211; works on Tomcat 6, fails on GlassFish 2.1<\/p>\n<pre>&lt;url-pattern&gt;\/xmlhttp\/* &lt;\/url-pattern&gt;<\/pre>\n<p>Working Version without trailing space &#8211; works on both<\/p>\n<pre>&lt;url-pattern&gt;\/xmlhttp\/*&lt;\/url-pattern&gt;<\/pre>\n<p>The effect of the extra trailing space appears to be that GlassFish 2.1 does not obey the servlet mapping for this url pattern. Tomcat is not tripped up by the trailing space. An extra hazard for the unwary in Eclipse (Galileo) is that if you use the XML editor to edit web.xml, it hides the trailing space if it is present, so you could miss it even if you were aware of the potential issue. The text editor shows the space correctly.<\/p>\n<p>My original post on this in the ICEfaces forums is <a title=\"http:\/\/www.icefaces.org\/JForum\/posts\/list\/13151.page#56078\" href=\"http:\/\/www.icefaces.org\/JForum\/posts\/list\/13151.page#56078\"><strong>here<\/strong><\/a><strong>. <\/strong>This\u00a0problem has been fixed in 1.8.2 &#8211; the\u00a0bug tracker entry for the\u00a0problem is <strong><a title=\"http:\/\/jira.icefaces.org\/browse\/ICE-4693\" href=\"http:\/\/jira.icefaces.org\/browse\/ICE-4693\">here<\/a><\/strong>.\u00a0Note that upgrading to 1.8.2 will not apply the fix to existing projects in Eclipse, only to new ones. For existing projects, you need to remove the extra space in web.xml manually.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I created a simple test web app using ICEfaces, including the test\/sample page that the plugin creates for you by default. When running the app on Glassfish, the error &#8220;Object doesn&#8217;t support this property or method&#8221; occurs and the page fails to load correctly. The same application works in Tomcat. The issue\u00a0turns out\u00a0to be due [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22],"tags":[13,9,23,184,37],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/110"}],"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=110"}],"version-history":[{"count":12,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/110\/revisions"}],"predecessor-version":[{"id":117,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/110\/revisions\/117"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}