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

本文固定链接: http://2hei.net/resolve-resin-404-error.html | 2hei's site

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

报歉!评论已关闭.