Using
JSF 2, Facelets, NetBeans 7.0, Glassfish 3.2, Mojarra 2.1.0
I get the folllowing Warnings in my server log when changing pages or referencing resources.
Navigation:
WARNING: JSF1015: Request path '/faces/faces/EnrollPage.xhtml' begins with one or more occurrences of the FacesServlet prefix path mapping '/faces'.
I am doing navigation through redirect with the following method:
I've tried leaving off the
"faces/" prefix like the warning suggests, but when I do that, I cannot navigate.
I leave on the prefix and it navigates, but I get the warning message.
Web page resources:
WARNING: JSF1015: Request path '/faces/faces/resources/css/common.css' begins with one or more occurrences of the FacesServlet prefix path mapping '/faces'.
WARNING: JSF1015: Request path '/faces/faces/resources/scripts/calendar-setup.js' begins with one or more occurrences of the FacesServlet prefix path mapping '/faces'.
Here is how I refernce the resources in the <head> section of the page xhtml code:
Css file resources:
WARNING: JSF1015: Request path '/faces/faces/resources/Images/backgroundPage.jpg' begins with one or more occurrences of the FacesServlet prefix path mapping '/faces'.
Here is how I refernce the image resources in the css file:
My directory structure is:
Web Pages -> resources ->Images
I am at a loss to understand how to get rid of the warning messages.
I have tried several different permutations of the reference addresses, but nothing else I have tried works.
Any suggestions?
Thanks.