Q:

ReferenceError: jQuery is not defined after upgrading to JSF2.2 and RF4.5

After upgrading a Java application from JSF 1.2 to JSF 2.2 and Richfaces 3.3.3.Final to Richfaces 4.5 and Facelets 1.1.14 to 1.1.15 I cannot load JQuery in my XHTML page.  The function below is not executed and the HTML page does not size the border as indicated.
It throws an error as follows, visible in Firebug when calling this:
<script type="text/javascript">
    function resizeWrapper() {
        // maximum width of bd: subtract 20 for wrapper padding, 4 for bd border, 20 for bd padding
        var width = jQuery(window).width() - 44;

        // round down to nearest 100, adding 24 for bd box
        jQuery('#wrapper').width(Math.max(width - width % 100, 900) + 24);
    }

    jQuery(document).ready(resizeWrapper);
    jQuery(window).resize(resizeWrapper);
</script>

ReferenceError: jQuery is not defined --> jQuery(document).ready(resizeWrapper);

This was working previously so I know it has something to do with the upgrade.  I was using this previously in the xhtml body (at the top):
<a4j:loadScript src="resource://jquery.js"/>
I've made updates to the faces-config and web.xml to support the upgrade and resolved errors related to outdated configuration.
Any suggestions would be greatly appreciated.
Thanks.

A:

Found the cause.  It was due to a typo I introduced to the web.xml.  After this was corrected I no longer had the issue.  So if you're experiencing an error similar to the above when upgrading from JSF 1.2 to JSF 2.2, be sure to check you don't introduce new issues when updating the web.xml file :)

