应用服务器中的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?
Thx
推荐答案
在WebSphere 5.x上,直到最新的8.x,您都需要在WAS管理控制台中将WAR和EAR类加载器设置为PARENT_LAST
.想要捆绑并在/WEB-INF/lib
中使用您自己的JSF impl.
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的Web项目创建,则带有Glassfish插件的Eclipse应该自动生成模板文件. ).
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屋!