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

I have an old enterprise application that was developed using WAS 6.1, now my company is trying to implement this application in WAS 8. But I am having problems providing JSF content, there are some links that when I click on the JS Debugger says Uncaught ReferenceError: myfaces is not defined is displayable HTML:

  onclick = "return myfaces.oam.submitForm ('top_nav: frmTopNav', 'top_nav: frmTopNav: lnkCP', null, [['default_sort', 'name']]);"

So, I think this does not do it well due to different versions of JSF between my old application and WAS 8.

Now I decided to get him to download MyFaces 1.1 from Tomahawk 1.1.7 and put them in the WEB-INF / lib folder, and now he says java.lang.IllegalArgumentException - Class org.mything.LocaleViewHandler is no javax.faces.application.ViewHandler

Why can this happen?

Thanks in advance.

+4
source share
2 answers

Quote from the WAS 8 InfoCenter, Configuring JavaServer Faces implementation

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

  • Save the configuration in MyFaces.
  • Add a third-party listener to the web.xml file that is required.
  • Add the third-party Java archive (JAR) files to the file as a stand-alone shared library and link it to your application.

On the page above, you can find detailed information on Creating Shared Libraries and Associating Shared Libraries with Applications or Modules .

+3
source

Make sure you use PARENT_LAST class loading.

Otherwise, it will first load its own JSF 2.0 libraries, and your class will not match the interface. You should check if you can upgrade MyFaces 2.0.

0
source

All Articles