如何将JSF v1.2应用程序部署到WebSphere v9.0(Full和Liberty)?

问题描述 投票:1回答:1

WebSphere v9.0.0.2完整配置文件似乎不再提供JSF v1.2支持

问:用JSF v1.2 + facelets编写的“遗留”应用程序怎么样(facelets目前不是JSF标准的一部分),它们可以部署到WAS v9.0还是我们坚持使用WAS v8.5.5?

我没有在文档中找到在WAS v9.0上部署JSF v1.2应用程序的方法,并且我的许多尝试都没有成功(jar jsf-facelets.jar在其他问题中的问题)

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

我们还需要在Liberty v16.0.0.4上部署sucha应用程序......

websphere websphere-liberty jsf-1.2
1个回答
-2
投票

最好的选择是迁移您的应用程序以支持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.
© www.soinside.com 2019 - 2024. All rights reserved.