Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF and oc4j  RSS feed

 
Ranadhir Nag
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a folder "faces" and put the jsp in it ...

By the way, personally I use *.jsf as servlet mapping. Then just call the .jsp as .jsf. No need for an extra faces folder.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!