We are trying to develop a
JSF application in jdev.
On deploying to the internal oc4j it works fine.
But when we try to deploy it to a external ocj we get the 'Cannot find FacesContext' error.
The WEB-INF/lib contains jsf-api.jar,jsf-impl.jar,adf-faces-api.jar,adf-faces-impl.jar,afc.jar,commons-beanutils.jar,commons-collections.jar,commons-digester.jar,commons-logging-api.jar,commons-logging.jar,industrial-adf-faces-api.jar,industrial-adf-faces-impl.jar,jstl.jar,share.jar.
The web.xml contains the following mapping:
<
servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
The resource is in the root directory.
If jsf-app is the contest root,accessign the resource as jsf-app/resource.jsp gives me the above exception.However if i access the resource as jsf-app/faces/resource.jsp I get a 'file not found' exception.
What is wrong?