-
1. Re: Error JSF 2 java.io.FileNotFoundException:*/*.xhtml Not Found in ExternalContext
ask4free Oct 10, 2011 12:25 PM (in response to elegar)Hi,
maybe
<ui:include src="/sections/login/sidebarLeft.xhtml"/>
is expecting to find that page in http://[SERVER]/[APPLICATION]/sections/login/sidebarLeft.xhtml instead of WEB-INF/flows/sections/login/sidebarLeft.xhtmlin any case, the object ExternalContext is being used (javax.faces.FacesException: java.io.FileNotFoundException: /sections/login/header.xhtml Not Found in ExternalContext as a Resource) to look for the resource ( http://download.oracle.com/docs/cd/E17802_01/j2ee/javaee/javaserverfaces/2.0/docs/api/javax/faces/context/ExternalContext.html ). Maybe some of these methods are being used:
abstract URL
getResource(String path)
Return aURL
for the application resource mapped to the specified path, if it exists; otherwise, returnnull
.abstract InputStream
getResourceAsStream(String path)
In this case the path parameter is like if was an context-based path value.
I would make some example pages in order to testing with the browser if the path is visible or not...
Best regards,
Antonio.