应用服务器中的 JSF 2 问题? [英] JSF 2 Issues in Application Servers?
问题描述
我熟悉在Websphere 7中使用JSF 2时的类加载问题.我想知道在其他全栈应用服务器上是否也有类似的问题.JBoss 5+、WebLogi 10+ 等呢?JSF 2 是否存在任何已知问题?如果存在,需要做什么才能让 JSF 2 在这些服务器上运行?
I am familiar with the classloading trouble when using JSF 2 in Websphere 7. I'd like to know if there are similar problems on other fullstack application servers. What about JBoss 5+, WebLogi 10+, etc? Are there any known issues with JSF 2 and if so, what needs to be done to get JSF 2 running on these servers?
谢谢
推荐答案
在 WebSphere 5.x 到当前 8.x 上,您需要将 WAR 和 EAR 类加载器设置为 PARENT_LAST
每当您想在 /WEB-INF/lib
中捆绑和使用您自己的 JSF 实现时,都可以使用 WAS 管理控制台.
On WebSphere 5.x up to with the current 8.x you need to set the WAR and EAR classloader to PARENT_LAST
in the WAS admin console whenever you want to bundle and use your own JSF impl in /WEB-INF/lib
.
在 JBoss 4.x 到当前 6.x 上,将以下上下文参数添加到 /WEB-INF/web.xml
就足以抑制 JBoss 的内置 JSF 部署程序.>
On JBoss 4.x up to with the current 6.x it's sufficient to add the following context param to /WEB-INF/web.xml
to suppress JBoss' builtin JSF deployer.
<context-param>
<param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
<param-value>true</param-value>
</context-param>
在 Glassfish 2.x 到当前 3.x 上,您需要将以下条目添加到 /WEB-INF/sun-web.xml
(带有 Glassfish 插件的 Eclipse 应自动生成模板文件(如果您创建一个目标运行时设置为 Glassfish 的 Web 项目).
On Glassfish 2.x up to with the current 3.x you need to add the following entries to the /WEB-INF/sun-web.xml
(Eclipse with Glassfish plugin should autogenerate the template file if you create a web project with target runtime set to Glassfish).
<class-loader delegate="false" />
<property name="useBundledJsf" value="true" />
关于Weblogic,抱歉我不知道,我从来没有用过.
On Weblogic, sorry I have no idea, I have never used it.
这篇关于应用服务器中的 JSF 2 问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!