• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.FileNotFoundException: /failed.xhtml Not Found

 
Mat Anthony
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have created a java application using spring security 3 and jsf.
If I have a login failure (i.e. incorrect password) the user should be taken to failed.xhtml, that is in directory faces under WebContent.

file:applicationContext-security.xml



I currently get the following error:-
java.io.FileNotFoundException: /failed.xhtml Not Found in ExternalContext as a Resource
com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:187)
com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:297)
com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:164)
com.sun.faces.application.view.ViewMetadataImpl.createMetadataView(ViewMetadataImpl.java:102)
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:239)

Mat

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!