Issue: Tomcat does not redirect to the HMAExceptionHandlerServlet servlet I=
have configured in the application specific web.xml when running on Linux=
=0A=0A=0AI've tried searching all of the lists for an answer to this questi=
on.=A0 I've seen several postings by people having the same issue, but neve=
r a solution.=0A=0AMy Tomcat version:=0A=0AApache Tomcat 5.5.33 (I've also =
tried 5.5.27 and 6.0.32)=0A=0Arunning on:=0A=0A=0AFedora 2.6.27.5-117.fc10.=
x86_64=0A=0ATwo things I would like to note:=0A=0A1.=A0 When I invoke the J=
ava HMAExceptionHandlerServlet configured to be used in the error-page bloc=
k in the application specific web.xml directly from the URL in the browser,=
it works.=0A=0A2.=A0 Tomcat 5.5.33 does correctly redirect to the error-pa=
ge when running on a Windows 7 machine.=A0 The only time I have an issue is=
on the Linux configuration above.=0A=0AMy application specific web.xml (lo=
cated in <tomcat install>/webapps/<application>/WEB-INF folder) :=0A=0A<?xm=
l version=3D"1.0" encoding=3D"UTF-8"?>=0A<web-app version=3D"2.4" xmlns=3D"=
http://java.sun.com/xml/ns/j2ee" xmlns:xsi=3D"http://www.w3.org/2001/XMLSch=
ema-instance" xsi:schemaLocation=3D"http://java.sun.com/xml/ns/j2ee http://=
java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">=0A=A0=A0=A0 <context-param>=0A=
=A0=A0=A0=A0=A0=A0=A0 <param-name>javax.faces.STATE_SAVING_METHOD</param-na=
me>=0A=A0=A0=A0=A0=A0=A0=A0 <param-value>server</param-value>=0A=A0=A0=A0 <=
/context-param>=0A=A0=A0=A0 <context-param>=0A=A0=A0=A0=A0=A0=A0=A0 <param-=
name>javax.faces.CONFIG_FILES</param-name>=0A=A0=A0=A0=A0=A0=A0=A0 <param-v=
alue>/WEB-INF/navigation.xml,/WEB-INF/managed-beans.xml</param-value>=0A=A0=
=A0=A0 </context-param>=0A=A0=A0=A0 <context-param>=0A=A0=A0=A0=A0=A0=A0=A0=
<param-name>com.sun.faces.validateXml</param-name>=0A=A0=A0=A0=A0=A0=A0=A0=
<param-value>true</param-value>=0A=A0=A0=A0 </context-param>=0A=A0=A0=A0
<=
context-param>=0A=A0=A0=A0=A0=A0=A0=A0 <param-name>com.sun.faces.verifyObje=
cts</param-name>=0A=A0=A0=A0=A0=A0=A0=A0 <param-value>false</param-value>=
=0A=A0=A0=A0 </context-param>=0A=A0=A0=A0 <filter>=0A=A0=A0=A0=A0=A0=A0=A0 =
<filter-name>UploadFilter</filter-name>=0A=A0=A0=A0=A0=A0=A0=A0 <filter-cla=
ss>com.sun.rave.web.ui.util.UploadFilter</filter-class>=0A=A0=A0=A0=A0=A0=
=A0=A0 <init-param>=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <description>=0A=A0=
=A0=A0=A0=A0=A0=A0=A0=A0 The maximum allowed upload size in bytes.=A0 If th=
is is set=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0 to a negative value, there is no ma=
ximum.=A0 The default=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0 value is 1000000.=0A=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </description>=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0 <param-name>maxSize</param-name>=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
<param-value>1000000</param-value>=0A=A0=A0=A0=A0=A0=A0=A0 </init-param>=
=0A=A0=A0=A0=A0=A0=A0=A0 <init-param>=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <=
description>=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0 The size (in bytes) of an upload=
ed file which, if it is=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0 exceeded, will cause =
the file to be written directly to=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0 disk inste=
ad of stored in memory.=A0 Files smaller than or=0A=A0=A0=A0=A0=A0=A0=A0=A0=
=A0 equal to this size will be stored in memory.=A0 The default=0A=A0=A0=A0=
=A0=A0=A0=A0=A0=A0 value is 4096.=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </des=
cription>=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <param-name>sizeThreshold</pa=
ram-name>=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <param-value>4096</param-valu=
e>=0A=A0=A0=A0=A0=A0=A0=A0 </init-param>=0A=A0=A0=A0 </filter>=0A=A0=A0=A0
=
<filter-mapping>=0A=A0=A0=A0=A0=A0=A0=A0 <filter-name>UploadFilter</filter-=
name>=0A=A0=A0=A0=A0=A0=A0=A0 <servlet-name>Faces Servlet</servlet-name>=0A=
=A0=A0=A0 </filter-mapping>=0A=A0=A0=A0 <servlet>=0A=A0=A0=A0=A0=A0=A0=A0 <=
servlet-name>Faces Servlet</servlet-name>=0A=A0=A0=A0=A0=A0=A0=A0 <servlet-=
class>javax.faces.webapp.FacesServlet</servlet-class>=0A=A0=A0=A0=A0=A0=A0=
=A0 <load-on-startup>1</load-on-startup>=0A=A0=A0=A0 </servlet>=0A=A0=A0=A0=
<servlet>=0A=A0=A0=A0=A0=A0=A0=A0 <servlet-name>ThemeServlet</servlet-name=
>=0A=A0=A0=A0=A0=A0=A0=A0 <servlet-class>com.sun.rave.web.ui.theme.ThemeSer=
vlet</servlet-class>=0A=A0=A0=A0 </servlet>=0A=A0=A0=A0 <servlet>=0A=A0=A0=
=A0=A0=A0=A0=A0 <servlet-name>HMAExceptionHandlerServlet</servlet-name>=0A=
=A0=A0=A0=A0=A0=A0=A0 <servlet-class>hmaapp.common.HMAExceptionHandlerServl=
et</servlet-class>=0A=A0=A0=A0 </servlet>=0A=A0=A0=A0 <servlet-mapping>=0A=
=A0=A0=A0=A0=A0=A0=A0 <servlet-name>Faces Servlet</servlet-name>=0A=A0=A0=
=A0=A0=A0=A0=A0 <url-pattern>/faces/*</url-pattern>=0A=A0=A0=A0 </servlet-m=
apping>=0A=A0=A0=A0 <servlet-mapping>=0A=A0=A0=A0=A0=A0=A0=A0 <servlet-name=
>HMAExceptionHandlerServlet</servlet-name>=0A=A0=A0=A0=A0=A0=A0=A0 <url-pat=
tern>/error/ExceptionHandler</url-pattern>=0A=A0=A0=A0 </servlet-mapping>=
=0A=A0=A0=A0 <servlet-mapping>=0A=A0=A0=A0=A0=A0=A0=A0 <servlet-name>ThemeS=
ervlet</servlet-name>=0A=A0=A0=A0=A0=A0=A0=A0 <url-pattern>/theme/*</url-pa=
ttern>=0A=A0=A0=A0 </servlet-mapping>=0A=A0=A0=A0 <servlet-mapping>=0A=A0=
=A0=A0=A0=A0=A0=A0 <servlet-name>InterqualJSServlet</servlet-name>=0A=A0=A0=
=A0=A0=A0=A0=A0 <url-pattern>/InterqualJSServlet</url-pattern>=0A=A0=A0=A0 =
</servlet-mapping>=0A=A0=A0=A0 <servlet-mapping>=0A=A0=A0=A0=A0=A0=A0=A0 <s=
ervlet-name>HMAExceptionHandlerServlet</servlet-name>=0A=A0=A0=A0=A0=A0=A0=
=A0 <url-pattern>/HMAExceptionHandlerServlet</url-pattern>=0A=A0=A0=A0 </se=
rvlet-mapping>=0A=A0=A0=A0 <welcome-file-list>=0A=A0=A0=A0=A0=A0=A0=A0 <wel=
come-file>faces/SignOn.jsp</welcome-file>=0A=A0=A0=A0 </welcome-file-list>=
=0A=A0=A0=A0 <error-page>=0A=A0=A0=A0=A0=A0=A0=A0 <exception-type>javax.ser=
vlet.ServletException</exception-type>=0A=A0=A0=A0=A0=A0=A0=A0 <location>/e=
rror/ExceptionHandler</location>=0A=A0=A0=A0 </error-page>=0A=A0=A0=A0 <err=
or-page>=0A=A0=A0=A0=A0=A0=A0=A0 <exception-type>java.io.IOException</excep=
tion-type>=0A=A0=A0=A0=A0=A0=A0=A0 <location>/error/ExceptionHandler</locat=
ion>=0A=A0=A0=A0 </error-page>=0A=A0=A0=A0 <error-page>=0A=A0=A0=A0=A0=A0=
=A0=A0 <exception-type>javax.faces.FacesException</exception-type>=0A=A0=A0=
=A0=A0=A0=A0=A0 <location>/error/ExceptionHandler</location>=0A=A0=A0=A0 </=
error-page>=0A=A0=A0=A0 <error-page>=0A=A0=A0=A0=A0=A0=A0=A0 <exception-typ=
e>com.sun.rave.web.ui.appbase.ApplicationException</exception-type>=0A=A0=
=A0=A0=A0=A0=A0=A0 <location>/error/ExceptionHandler</location>=0A=A0=A0=A0=
</error-page>=0A=A0=A0=A0 <error-page>=0A=A0=A0=A0=A0=A0=A0=A0 <error-code=
>500</error-code>=0A=A0=A0=A0=A0=A0=A0=A0 <location>/error/ExceptionHandler=
</location>=0A=A0=A0=A0 </error-page>=0A=A0=A0=A0 <error-page>=0A=A0=A0=A0=
=A0=A0=A0=A0 <exception-type>java.lang.NullPointerException</exception-type=
>=0A=A0=A0=A0=A0=A0=A0=A0 <location>/error/ExceptionHandler</location>=0A=
=A0=A0=A0 </error-page>=0A=A0=A0=A0 <jsp-config>=0A=A0=A0=A0=A0=A0=A0=A0 <j=
sp-property-group>=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <url-pattern>*.jspf<=
/url-pattern>=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <is-xml>true</is-xml>=0A=
=A0=A0=A0=A0=A0=A0=A0 </jsp-property-group>=0A=A0=A0=A0 </jsp-config>=0A</w=
eb-app>
|