You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ezyeric <er...@state.or.us> on 2009/02/27 17:59:02 UTC

Re: Tomcat 404 Error Redirects

Try checking out this post
http://www.velocityreviews.com/forums/t142707-tomcat-404-custom-error.html


Prakash Nathan1 wrote:
> 
> Hello
> 
> Here is what I have setup to redirect all the 404 request to 404Error.html
> 
> I have made the below changes to the Tomcat's web.xml file
> (/opt/app/tomcat/public1/conf/web.xml)
> 
>     <error-page>
>         <error-code>404</error-code>
>         <location>/404Error.html</location>
>     </error-page>
> 
> I have placed the 404Error.html in the following folder
> /opt/app/tomcat/public1/webapps/ROOT
> 
> However, when I try to access the following link, it is not redirecting to
> 404Error.html page but it displays
> 
> http://3.137.168.132:8180/test
> 
> "The page cannot be found 
> The page you are looking for might have been removed, had its name
> changed, or is temporarily unavailable. .."
> 
> However, I can directly access the 404Error.html page as follows
> http://3.137.168.132:8180/404Error.html
> 
> Here are the environmental details
> 
> Apache:   Tomcat/4.1.27
> JVM/JDK:  1.4.2_06
> Platform: OS Red Hat Enterprise Linux AS release 3 (Taroon Update 5)
> 
> Please help me finding the configuration miss! Thanks
> 
> Prakash
> 

-- 
View this message in context: http://www.nabble.com/Tomcat-404-Error-Redirects-tp21611830p22249852.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat 404 Error Redirects

Posted by "Propes, Barry L " <ba...@citi.com>.
I am using TC 4.1.31 and my error page attribute is set as follows:

   <error-page>
      <error-code>404</error-code>
      <location>/chngctrl/404error.jsp</location>
  </error-page> 

Rather than designated out in the root dir, I specified a dir.

Can you try that and see if it works?


-----Original Message-----
From: ezyeric [mailto:eric.eck@state.or.us] 
Sent: Friday, February 27, 2009 10:59 AM
To: users@tomcat.apache.org
Subject: Re: Tomcat 404 Error Redirects


Try checking out this post
http://www.velocityreviews.com/forums/t142707-tomcat-404-custom-error.html


Prakash Nathan1 wrote:
> 
> Hello
> 
> Here is what I have setup to redirect all the 404 request to 
> 404Error.html
> 
> I have made the below changes to the Tomcat's web.xml file
> (/opt/app/tomcat/public1/conf/web.xml)
> 
>     <error-page>
>         <error-code>404</error-code>
>         <location>/404Error.html</location>
>     </error-page>
> 
> I have placed the 404Error.html in the following folder 
> /opt/app/tomcat/public1/webapps/ROOT
> 
> However, when I try to access the following link, it is not 
> redirecting to 404Error.html page but it displays
> 
> http://3.137.168.132:8180/test
> 
> "The page cannot be found
> The page you are looking for might have been removed, had its name 
> changed, or is temporarily unavailable. .."
> 
> However, I can directly access the 404Error.html page as follows 
> http://3.137.168.132:8180/404Error.html
> 
> Here are the environmental details
> 
> Apache:   Tomcat/4.1.27
> JVM/JDK:  1.4.2_06
> Platform: OS Red Hat Enterprise Linux AS release 3 (Taroon Update 5)
> 
> Please help me finding the configuration miss! Thanks
> 
> Prakash
> 

--
View this message in context: http://www.nabble.com/Tomcat-404-Error-Redirects-tp21611830p22249852.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org