glassfish change default jsf impl

半城伤御伤魂 提交于 2019-12-25 01:04:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!