webtier@glassfish.java.net

Re: [webtier] GF 2.1 not honoring useBundledJsf?

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Wed, 25 Nov 2009 14:27:51 -0800

On 11/25/09 14:20, Jeffrey Blattman wrote:
> also, why doesn't delegate=false cause it to pick up the bundled JSF?

Because the delegate flag does not affect resolution of any
classes in packages starting with javax.*, meaning those classes will
always be resolved by delegation, irrespective of the delegate flag.

However, using a bundled JSF version requires that javax.faces
symbols be resolved locally. By setting "useMyFaces" or "useBundledJsf"
to true you instruct the classloader to search for any javax.faces
classes in the local JAR files first.

Jan

>
> On 11/25/09 2:18 PM, Jeffrey Blattman wrote:
>> okay, how do i get it to use by bundled JSF version then?
>>
>> On 11/25/09 2:09 PM, Jan Luehe wrote:
>>> On 11/25/09 14:01, Jeffrey Blattman wrote:
>>>> i have a WAR w/ JSF 1.2_13 bundled. i have the sun-web.xml below
>>>> included. in the startup logs, i see,
>>>>
>>>>
>>>> /[#|2009-11-25T12:30:49.562-0800|WARNING|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=17;_ThreadName=Timer-13;useBundledJsf;true;_RequestID=f3da814e-6050-49bc-a17b-d30abb6dcc4f;|WEB0110:
>>>> Ignoring invalid property [useBundledJsf] = [true]|#]/
>>>
>>> GF v2.1 supports only "useMyFaces". Support for the more general
>>> "useBundledJsf"
>>> was only added to GF v2.1.1 (and GF v3).
>>>
>>> Jan
>>>
>>>
>>>>
>>>> and then,
>>>>
>>>> /[#|2009-11-25T12:30:52.328-0800|INFO|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=17;_ThreadName=Timer-13;/opensso;|Initializing
>>>> Sun's JavaServer Faces implementation (*1.2_04-b20-p03*) for
>>>> context '/opensso'|#]
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <!DOCTYPE sun-web-app PUBLIC
>>>> "-//Sun Microsystems, Inc.//DTD GlassFish
>>>> Application Server 3.0 Servlet 3.0//EN"
>>>> "http://www.sun.com/software/appserver/dtds/sun-web-app_3_0-0.dtd">
>>>>
>>>> <sun-web-app>
>>>> <class-loader delegate="false"/>
>>>> <property name="useBundledJsf" value="true"/>
>>>> </sun-web-app>/
>>>>
>>>> --
>>>
>>
>> --
>
> --