2 Replies Latest reply on Oct 21, 2005 10:53 AM by ego2002

    DEFAULT 404 ERROR PAGE

    ego2002

      Hi everybody!

      I'd like to have the default 404 ERROR page as "page not found" error page, while on default there's a customizated one on JBoss Portal... Does anybody know how and where to set it?

      Thanks a lot!

      Il Dima

        • 1. Re: DEFAULT 404 ERROR PAGE

          Try editting web.xml in:

          ${JBOSS_HOME}\server\default\deploy\jboss-portal.sar\portal-server.war\WEB-INF\web.xml

          Add elements like these (for example):

          <error-page>
           <error-code>404</error-code>
           <location>/404.html</location>
          </error-page>
          


          Review the Servlet spec. and/or the appropriate web.xml DTD or XSD for more info on configuring a webapp to deal with error codes.

          Hope this helps.



          • 2. Re: DEFAULT 404 ERROR PAGE
            ego2002

            Mh... it doesn't seem to work...

            The problem is that I don't want the Portal answer me with a customized 404 Error page... I want a 404 HTTP error! Not a 200 OK HTTP answer with an error page... I don't know if I explain me...

            Thanks...

            Il Dima