On Wed, Oct 7, 2009 at 5:52 PM, <glassfish_at_javadesktop.org> wrote:
> the https://glassfish.dev.java.net/issues/show_bug.cgi?id=6577 says it's
> ported to glassfish v2.1
>
> useBundledJsf should be used in conjunction with classloader's delegate set
> to false. explanation of delegate mode is given at
> http://docs.sun.com/app/docs/doc/820-4496/beagb?a=view
>
> with this setup you force server to load your jsf implementation from
> applications WEB-INF/lib folder. errors with xerces and/or other libs are to
> be expected. to resolve it you need to put correct version (the one that jsf
> libs, you put in application WEB-INF/lib, were compiled with).
>
> in my case, I was overriding some jsf classes, setup sun-web.xml with given
> example, put following jars in WEB-INF/lib (besides the ones that were
> already there) and it worked with glassfish 2.1
>
> activation.jar
> jaas.jar
> jaxen-1.1-beta-7.jar
> jdbc2_0-stdext.jar
> jstl.jar
> jta.jar
> standard.jar
> xalan.jar
> xerces-2.6.2.jar
> xml-apis.jar
>
> You could try putting xerces-2.6.2.jar to WEB-INF/lib inside your app. If
> another exception arises, see if you should put another jar (with given
> classes).
>
Well, that issue says it was ported to the 2.1 branch. I have no idea which
release of 2.1 it's in. It's certainly not in the version I'm using
(release 2.1-b60e).
At this stage, I'm probably better of taking 2.1.1, which will have an
updated JSF plus other fixes. It's just not working in the 2.1 release I'm
using now.
Thanks,
Ed