2017-01-30 56 views
1

的WebSphere v9.0.0.2完整的个人资料不提供了JSF v1.2支持似乎如何将JSF v1.2应用程序部署到WebSphere v9.0(Full和Liberty)?

问:关于被写在JSF v1.2 + facelets“传统”的应用程序是什么(小面不是JSF标准的一部分,在这个时候) ,他们可以部署到WAS v9.0还是我们坚持WAS v8.5.5?

我没有在doc找到一种方式来上部署JSF 1.2应用程序是9.0和我多次尝试均告失败(问题罐子jsf-facelets.jar除其他问题)

问:有没有在WAS v9.0上部署此类应用程序的解决方法?

我们还需要对Liberty v16.0.0.4部署苏哈应用程序...

回答

-1

最好的选择将是应用程序迁移到支持JSF 2.2,这应该不是非常困难。有一些IBM文档here用于将您的应用程序从JSF 1.2迁移到JSF 2.0。但是,由于您的应用程序已经使用Facelets,因此您应该可以通过配置更改来迁移您的应用程序; this answer中的说明可能会更有帮助。

也可以将WebSphere配置为使用第三方JSF提供程序 - 在这种情况下,您可以为您的应用程序提供您自己的JSF 1.2版本。该文件是here

说明提供自定义JSF实现:

Add the third-party listener to the web.xml file. 
Add the third-party JSF implementation Java™ archive (JAR) files and its required dependant JAR files to the application as an isolated shared library and associate it with your application: 
    Move the JSF JAR files and all third-party libraries referenced by the JSF JAR files and UI component plug-ins (for example, PrimeFaces) to a directory outside of the application. 
    Create the isolated shared library. See topic Creating shared libraries for information about how to create the shared library. 
    Ensure that the classloader is set to PARENT_FIRST, the default value. To view the current configuration in the administrative console panel, click Applications > Application Types > WebSphere enterprise applications > application_name > Class loading and update detection. 
+0

这将是“非常困难” ......我们使用JSF 1.2+小面,预JSF2.0 + RichFaces的V3是与JSF 2.x +不兼容。我们较新的应用程序使用JSF 2.2 + primefaces ..另外,您提供的链接解释了如何在WAS v9.0中部署自定义JSF 2.x实现,而不是部署自定义jSF 1.2实现 – titou10

+0

我链接到的文档用于部署自定义实现中没有提到仅限于JSF 2.x;部署JSF 1.2应该可以正常工作。我会用这些步骤更新答案。 – wtlucy

相关问题