gpt4 book ai didi

jsf - 与 WebSphere 8.5 上较新版本的 MyFaces 共享库

转载 作者:行者123 更新时间:2023-12-05 05:27:18 26 4
gpt4 key购买 nike

我正在将应用程序从 WebSphere 7.0 迁移到 WebSphere 8.5。 WebSphere 8.5 使用比我们使用的 (2.0.7) 更旧的 MyFaces (2.0.2) 版本,因此我尝试以与 WAS 7.0 下相同的方式配置较新版本,即使用共享库.

我已经使用以下 jar 配置了共享库:

myfaces-api-2.0.7.jar
myfaces-impl-2.0.7.jar
commons-logging-1.1.1.jar
commons-digester-1.8.jar
commons-collections-3.2.jar
commons-codec-1.3.jar

我已经选中了选项Use an isolated class loader for this shared library。我遇到了错误:

com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E:[Servlet Error]-[Faces Servlet]: java.lang.IllegalStateException: NoFactories configured for this Application. This happens if thefaces-initialization does not work at all - make sure that youproperly include all configuration settings necessary for a basicfaces application and that all the necessary libs are included. Alsocheck the logging output of your web application and your containerfor any exceptions! If you did that and find nothing, the mistakemight be due to the fact that you use some special web-containerswhich do not support registering context-listeners via TLD files and acontext listener is not setup in your web.xml. A typical config lookslike this;

<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>

at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:196) atjavax.faces.webapp.FacesServlet.init(FacesServlet.java:112) atcom.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:337)

相同的配置适用于 WAS 7.0,除了在共享库中配置了一个额外的 jar:

C:\IBM\SDP\runtimes\base_v7\optionalLibraries\IBM\JSFProviders\WebSphere-MyFaces20-annotation-provider.jar

这里有什么问题?我是否需要指定一些东西来代替 WebSphere-MyFaces20-annotation-provider.jar?我找不到为 WAS 8.5 配置此类共享库的任何示例。只有 that for WAS 7.0 ,我已在 WAS 7.0 上成功使用。

最佳答案

WASdev 论坛中有一些相关讨论,但显然还没有实际答案。

https://www.ibm.com/developerworks/community/forums/html/topic?id=d2261080-de03-4aef-97ce-b60c5b8a517b&ps=25

关于jsf - 与 WebSphere 8.5 上较新版本的 MyFaces 共享库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20193774/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com