'<BEA-101024> Unsupported error status code for error-page in web.xml

We use weblogic to deploy our application and so far it was working fine, but encountered the following exception and not able to proceed with the application. The url seems to be down all the time.

<BEA-101024> Unsupported error status code for error-page in web.xml.

And the code in web.xml is as follows

<error-page>
    <error-code>100</error-code>
    <location>/jsp/main/http_error.jsp</location>
</error-page>

Any help on this is very much appreciated, thanks in advance.



Solution 1:[1]

Change or add the webapp dtd to a newer one in WEB.XML. Weblogic is particularly strict with theese. Then you can add error-page handlers.

ciaooo

EDIT: how do you get an HTTP 100 from weblogic ? If my memory is right status 100 is CONTINUE and should be handled silently (without producing an error)

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
  <servlet>
    <servlet-name>LoginServlet</servlet-name>
    <servlet-class>it.bigmike.servlet.LoginServlet</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>LoginServlet</servlet-name>
    <url-pattern>LoginLoginServlet</url-pattern>
  </servlet-mapping>  

  <error-page>
   <error-code>400</error-code>
   <location>/web/errore.html</location>
  </error-page>
  <error-page>
   <error-code>404</error-code>
   <location>/web/errore.html</location>
  </error-page>
  <error-page>
   <error-code>403</error-code>
   <location>/web/errore.html</location>
  </error-page>
  <error-page>
   <error-code>500</error-code>
   <location>/web/errore.html</location>
  </error-page>
  <error-page>
   <error-code>503</error-code>
   <location>/web/errore.html</location>
  </error-page>

EDIT2: this web.xml works perfectly for me on weblogic 10.3

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1