users@glassfish.java.net

Re: Include later version of JSF in my WAR file?

From: Ed Hillmann <ed.hillmann_at_gmail.com>
Date: Wed, 7 Oct 2009 13:18:30 +1000

On Wed, Oct 7, 2009 at 8:24 AM, Ed Hillmann <ed.hillmann_at_gmail.com> wrote:

>
> On Tue, Oct 6, 2009 at 4:59 PM, <glassfish_at_javadesktop.org> wrote:
>
>> you need to add sun-web.xml to your WEB-INF folder inside WAR file.
>> inside sun-web.xml set useBundledJsf to true, like this
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <!--
>> Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved.
>> Use is subject to license terms.
>> -->
>>
>> <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application
>> Server 8.1 Servlet 2.4//EN" "
>> http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
>> <sun-web-app>
>>
>> <class-loader delegate="false"/>
>> <property name="useBundledJsf" value="true"/>
>> </sun-web-app>
>>
>
> Perfect! We've already got a sun-web.xml in our WAR file. So I'll update
> it so I can include the bundled JSF implementation.
>
> OK, this doesn't seem to be working for me. Before I make any changes, I
can see my web application being made available in the server log....

ADM1006:Uploading the file
to:[/tmp/s1astempehillman2server810190864/peweb-7.00.01.01-SNAPSHOT.war]
deployed with moduleid = peweb
Initializing Sun's JavaServer Faces implementation (1.2_04-b22-p05) for
context '/peweb'

When I add the property

<property name="useBundledJsf" value="true"/>

nothing changes. When I change the class-loader's delegate attribute to
false, I start to get Xerces exceptions.

I've looked at the Glassfish doco for the sun-web-app descriptor (
http://docs.sun.com/app/docs/doc/820-4337/beayb?l=en&a=view&q=sun-web-app),
and can find no mention of the useBundledJsf property.

So, again, is this possible? So far it doesn't appear so..

Thanks,
Ed