• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JSF and oc4j

 
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
The problems of the world fade way as you eat a piece of pie. This tiny ad has never known problems:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic