How to force WebSphere AS 8 to use a specific JSF implementation?

前端 未结 2 1178
北荒
北荒 2021-01-14 01:34

I have an old enterprise application that was developed using WAS 6.1, now my company is trying to perform the implementation of that application in WAS 8. But I am having t

相关标签:
2条回答
  • 2021-01-14 02:12

    Make sure that you are using PARENT_LAST classloading.

    Otherwise it will load its own JSF 2.0 libs first and your class doesn't match the interface. You should check though if you could update to MyFaces 2.0.

    0 讨论(0)
  • 2021-01-14 02:17

    Quoting from WAS 8 infocenter, Configuring JavaServer Faces implementation

    If you want to use a third-party JSF implementation that is not shipped with the product, then:

    • Keep the configuration set to MyFaces.
    • Add the third-party listener to the web.xml file that is required.
    • Add the third-party implementation Java archive (JAR) files to the application as an isolated shared library and associate it with your application.

    On the above referenced page you may find details on Creating shared libraries and Associating shared libraries with applications or modules.

    0 讨论(0)
提交回复
热议问题