glassfish更改默认的jsf impl [英] glassfish change default jsf impl
问题描述
我需要更改glassfish 3.0.1提供的默认jsf impl
提供的是2.0.2版本,但我需要更高版本的2.1.x,因为我使用liferay portal 6.0.6并引发异常同时尝试将ResourceResponseImpl投射到HttpServletResponse。我得到了一个提示,如果我将jsf impl更改为2.1.x,它应该可以工作。无论如何,我只是想确保我做对了..我应该只更改jsf-impl和jsf-api罐子或做其他事情。有两个罐子,我不知道我是否应该改变,这是jsftemplating和jsf连接器。
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
推荐答案
你可以用你的应用程序打包所需的jsf实现。您需要将以下代码添加到您的glassfish-web.xml文件中:
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" />
您可以另外更新glassfish附带的jsf实现。您需要从 glassfish3 \glassfish\modules\
中删除(或备份某处)文件jsf-api.jar和jsf-impl.jar,并将新的jsf实施,例如这里是 javaserverfaces.java.net 的最新二进制版本。
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.
这篇关于glassfish更改默认的jsf impl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!