当前位置: 首页 > 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://2hei.net/resolve-resin-404-error.html | 二黑的站点

该日志由 2hei 于2007年06月12日发表在 others 分类下,
原创文章转载请注明: resolve resin 404 Error | 二黑的站点

报歉!评论已关闭.