You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by John McTeague <jo...@shortslant.com> on 2004/02/09 15:20:55 UTC
Error with custom exception page
Im trying to replace the default exception page in tapestry (using
beta-3). To start with, I have taken a copy of the default tapestry pages
and made a minor change so that I know I can get them working before
making full blown changes to the layout.
I have the following files in the root of my WEB-INF directory:
Exception.page and Exception.css - exact copy of the default tapestry
Exception.page and .css
Exception.html - Identical except ive replaced the text "An exception has
occured." with some other text so I know its my page thats being shown.
In my .application file I have the following:
<page name="Exception" specification-path="/WEB-INF/Exception.page"/>
Despite this, everytime the exception page is displayed, I get an
Internal Server Error along the lines of:
500 Internal Server Error
org.apache.tapestry.ApplicationRuntimeException: Unable to instantiate
component Exception: org.apache.tapestry.resource.ContextResourceLocation
at
org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:579)
at org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:806)
at org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:194)
at org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:236)
at
org.apache.tapestry.engine.AbstractEngine.activateExceptionPage(AbstractEn
gine.java:495)
at org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:954)
at
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:238)
at org.apache.tapestry.ApplicationServlet.doPost(ApplicationServlet.java:367)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher
.java:560)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestD
ispatcher.java:306)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.jav
a:767)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.
java:797)
at java.lang.Thread.run(Thread.java:479)
Can anyone explain this?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org