resolve resin 404 Error
Jun122007
作者:u2 发布:2007-06-12 10:42 分类:others resolve resin 404 Error已关闭评论
1.simplely edit web.xml
add this line:
<error-page>
<error-code>404</error-code>
<location>/404.htm</location>
</error-page>
then add 404.htm in your webapps directory.
2.edit resin.conf
find “<web-app ” in resin.conf
add this content:
<web-app id=’/myapp’><error-page error-code=’404′ location=’/404.jsp’/></web-app>
3.sometime we will have Exception error
so you can edit resin.conf
add this content:
<web-app id=’/foo’><error-page exception-type=’java.lang.NullPointerException’ /
location=’/npexcept.jsp’/></web-app>
本文固定链接: https://www.2hei.net/2007/06/12/resolve-resin-404-error/ | 2hei.net
最活跃的读者