问题
i need to change the default jsf impl provided with glassfish 3.0.1 The one provided is version 2.0.2 but i need something higher like 2.1.x because i use liferay portal 6.0.6 and it throws exception while trying to cast ResourceResponseImpl to HttpServletResponse. I got a tip that if i change the jsf impl to 2.1.x it should work. Anyway, i just want to make sure i do it right.. Should i change only the jsf-impl and jsf-api jars or do something else as well. There is two jars that i am not sure if i should change, that is jsftemplating and jsf-connector..
Thanks
回答1:
You can package the desired jsf implementation with your application. You need to add the following to lines to your glassfish-web.xml:
<class-loader delegate="false" />
<property name="useBundledJsf" value="true" />
You can alternativly update the jsf implementation shipped with glassfish. You need to delete (or backup somewhere) the files jsf-api.jar and jsf-impl.jar from glassfish3\glassfish\modules\
and place the new jsf implementation, e.g. the latest binary version from javaserverfaces.java.net there.
来源:https://stackoverflow.com/questions/14849553/glassfish-change-default-jsf-impl