Friday, April 8, 2016

Switching JSF Implementations In Rational Software Application Designer

While testing our webpages after upgrading Rational Software Application Designer and Websphere Application Server a few problems cropped up such as broken link navigation. After comparing webpages from a WAS 8.5 localhost server and a WAS 7.0 dev server I noticed that they were generating html and java script code differently. I suspected that they were using different JSF implementations and after taking a look at each JSP and JSF options I discovered that the WAS 8.5 server was running DEFAULT (MyFaces2.0) and the WAS 7.0 server was running SunRI1.2. It was probably basing the default on our web.xml which is troubling because it means we might be attempting to run two different JSF implementations for our application. But that is an issue to be resolved another day.

Anyway, in order to fix this I used this IBM article that details instructions on how to change JSF implementations in RSAD: http://www-01.ibm.com/support/docview.wss?uid=swg21385515. The basic gist is that you need to double click your server to go to Overview and check the option "Run server with resources on Server". Then go to Enterprise Applications>"EAR project">"JSP and JSF options" and set your JSF implementation which in our case was SunRI1.2. Afterwards there will be some degree of cleaning out builds and caches. If you see issues I recommend clearing out C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\''WAS profile"\temp\"node name"\"server name"\"EAR project".

No comments: