webtier@glassfish.java.net

Re: [webtier] JSF 2.0 and Websphere Application Server 7 bug report

From: Jason Lee <jasondlee_at_sun.com>
Date: Mon, 01 Mar 2010 16:59:19 -0600

I just committed this change. Please test again with the nightlies and
verify that your issue has been resolved.

Thanks, again, for the investigation work. :)

On 3/1/10 10:51 AM, webtier_at_javadesktop.org wrote:
> Hello,
>
> Following my last post, I investigated the bug mentionned in http://forums.java.net/jive/thread.jspa?threadID=75112&tstart=0
> I was going to submit the bug and a fix, but couldn't find the place to do that (http://bugreport.sun.com/bugreport/submit_intro.do is limited to JSF 1.1). So here it is.
>
> The bug comes from the library not being found while using the IBM JVM version bundled with WAS 7 (mandatory). This JVM doesn't behave exactly like others. In that case a call to ClassLoader.getResource(resource) while looking for a library, i.e. a directory, fails because of not including the trailing slash '/', returning null.
>
> To fix that, I've created and tested successfully the following patch to com.sun.faces.application.resource.ClasspathResourceHelper:
>
> 135c135
> < basePath = getBaseResourcePath() + '/' + libraryName;
> ---
>
>> basePath = getBaseResourcePath() + '/' + libraryName + '/';
>>
> 141c141
> < + libraryName;
> ---
>
>> + libraryName + '/';
>>
> All it does is adding the missing trailing slash for the library.
> This corrects the bug appearing with jsf.js and the one I mentionned with missing components, i.e. the false JSF1064 error.
>
> The tests i ran didn't show any other problem with this patch on Glassfish, while correcting the problems on WAS 7.
>
> I really hope this can go in mojarra 2.0.3, as this bug is critical to our business.
>
> Olivier COUPELON
> [Message sent by forum member 'coupelon' (olivier.coupelon_at_wanadoo.fr)]
>
> http://forums.java.net/jive/thread.jspa?messageID=389446
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>


-- 
Jason Lee
Senior Member of Technical Staff
GlassFish Administration Console
Oracle Corporation
Phone x31197/+1 405-343-1964
Email jasondlee_at_sun.com
Blog http://blogs.steeplesoft.com