0

We are currently migrating from jsf impl 2.2.4 to 2.2.15 (lastest to date).

With jsf 2.2.11, everything works fine, but when upgrading to jsf 2.2.12, our js and css files located in an external jar are not served anymore.

Strange thing is that the external jar is present in the lib folder.

In the browser debug console, we have this log :

GET http://localhost:8181/javax.faces.resource/tools.js.xhtml?ln=common/javascript net::ERR_ABORTED

This tool.js file is present in the folder META-INF/resources/common/javascript as shown above :enter image description here

This js file is included in the facelet page with this code line :

<h:outputScript library="common/javascript" name="tools.js"/>

As everything was running fine with jsf 2.2.11. Is there some specific changes we need to do in order to make it work ?

Kukeltje
  • 12,223
  • 4
  • 24
  • 47
gfyhser
  • 164
  • 1
  • 1
  • 11
  • Off-topic (I hope) beter to change `` to `` and does it work when not using richfaces? – Kukeltje Dec 28 '17 at 15:44
  • As incredible as it is, the error was located on the library="common/javascript" name="tools.js" ! I changed as you said and it is working now. Do you have any idea why library="common/javascript" name="tools.js" was wrong ? – gfyhser Dec 28 '17 at 16:08
  • See. https://stackoverflow.com/questions/11988415/what-is-the-jsf-resource-library-for-and-how-should-it-be-used and now I read the comments on that Q/A I saw I had the same issue. – Kukeltje Dec 28 '17 at 16:12

0 Answers0