1
votes

We are trying to improve development of JSF2 (jsf 2.2) applications on WAS 8.5.5. Previously we have been running the apps on full installation of Web Sphere (8.5.5) connected with Eclipse Luna (and RAD) via plugin.

We have set up a couple of Liberty servers (8.5.5.3) on local machines and trying to run JSF application on them. However after setting up the server.xml, we get this error (after all other problems were solved, we can't get past this anymore).

[WARNING ] SRVE0274W: Error while adding servlet mapping for path-->/faces/*, wrapper-->ServletWrapper[Faces_Servlet:[*.xhtml, /faces/*]], application-->xxx-ear.

The same error comes from Eclipse and RAD, so it seems to be problem with Liberty configuration or Liberty it self?

By default the Liberty (8.5.5.3) does not support jsf 2.2, so it used external libraries to provide that.

Btw. If the jsf 2.0 feature is removed from the server.xml, it magically appears back when the server is told to republish it's content. It didn't seem to be connected with the facet value set in eclipse facets.

Any hints what to look for regarding to the error message. Could not find any information about it.

1

1 Answers

0
votes

If you upgrade to the most recent version of WAS Liberty it has a feature for jsf-2.2. If you continue to use 8.5.5.3, which is really old, then if you can get WDT to stop adding the feature by:

  • Right click on the project
  • Selecting properties
  • Expand Liberty Server
  • Select Required Features
  • Find jsf-2.0
  • In the Action column change the value and select Never

enter image description here