This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Custom Error Pages (404 & 500) not invoked  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hopefully this is very obvious to some of the experts here. I'm trying to have my custom error pages (404 & 500) displayed, but in stead I get the normal system output text (ugly). The web.xml has been configured to apply the FacesServlet to all pages ending with "jspx". What I now get is the following: Whenever a page ending with .jspx cannot be found, the custom 404 page is IGNORED, however, when I don't use .jspx, but .jsp for example, IT WORKS. Below is my web.xml. I have already tried to make the error pages plain html, and also moved them to the root directory, no luck.

Oh yes, running on RAD 6.0.1, Faces 1.2.

Please if someone could guide me here...

########## SNIP ##########

<servlet id="Servlet_1212573625706">
<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>JS Resource Servlet</servlet-name>
<url-pattern>/.ibmjsfres/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jspx</url-pattern>
</servlet-mapping>

<error-page>
<error-code>500</error-code>
<location>/includes/errorPages/error500.jspx</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/includes/errorPages/error404.jspx</location>
</error-page>

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