当前位置: 首页 > 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

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

报歉!评论已关闭.