【问题标题】:How to deploy JSF v1.2 apps to WebSphere v9.0 (Full and Liberty)?如何将 JSF v1.2 应用程序部署到 WebSphere v9.0(Full 和 Liberty)?
【发布时间】:2017-06-16 02:21:25
【问题描述】:

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上部署这样的应用程序...

【问题讨论】:

    标签: websphere websphere-liberty jsf-1.2


    【解决方案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.
    

    【讨论】:

    • 这将是“非常困难的”...我们使用与 JSF 2.x+ 不兼容的 JSF 1.2+ facelets-pre-jsf2.0+richfaces v3。我们较新的应用程序使用 JSF 2.2 + primefaces。您提供的链接还解释了如何在 WAS v9.0 中部署自定义 JSF 2.x 实现,而不是部署自定义 jSF 1.2 实现
    • 我链接到的用于部署自定义实现的文档没有说明仅限于 JSF 2.x;部署 JSF 1.2 应该可以正常工作。我会用这些步骤更新答案。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-12
    • 2015-12-05
    • 2015-03-17
    • 1970-01-01
    • 2020-07-20
    • 1970-01-01
    相关资源
    最近更新 更多