You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by kkrikor <kr...@gmail.com> on 2011/09/14 22:33:40 UTC

501 error not going to location

Hey guys, 

I have set up an error page for the 501 error code. But it seems that it is
not going to the error.html page when a 501 happens. Testing with Tomcat 7. 

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

Here's how i'm testing - 

$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
METHOD /lab-0.1.0.BUILD-SNAPSHOT/signup HTTP/1.1
Host: localhost

HTTP/1.1 501 Not Implemented
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Date: Wed, 14 Sep 2011 18:59:52 GMT
Connection: close
0
Connection closed by foreign host.

So i see 0 instead of the html content of error.html - Any ideas ? 

Thank you
-- 
View this message in context: http://old.nabble.com/501-error-not-going-to-location-tp32466722p32466722.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: 501 error not going to location

Posted by kkrikor <kr...@gmail.com>.
Thank you for your reply,

The <error-page> is configured in a web.xml inside my webapp. As for the
tomcat version it is Tomcat 7.0.21.

Before adding the <error-page> inside my webapp i was seeing -
 
<body><h1>HTTP Status 501 - Method METHOD is not is not implemented by this
servlet for this URI </h1><HR size="1" noshade="noshade"><p>type Status
report</p><p>message <u>Method METHOD is not is not implemented by this
servlet for this URI </u></p><p>description <u>The server does not support
the functionality needed to fulfill this request (Method METHOD is not is
not implemented by this servlet for this URI ).</u></p><HR size="1"
noshade="noshade"><h3>Apache Tomcat/7.0.21</h3></body>

After adding the <error-page> inside my webapp i am see nothing.


n828cl wrote:
> 
>> From: kkrikor [mailto:krikor.krumlian@gmail.com] 
>> Subject: 501 error not going to location
> 
>> I have set up an error page for the 501 error code.
> 
> Where did you configure the <error-page>?  (Be precise.)
> 
>> Testing with Tomcat 7. 
> 
> Tomcat 7.what.what?  (Be precise.)
> 
> Since error pages are specific to individual webapps, Tomcat cannot honor
> such configuration if the request is so malformed that it's impossible to
> select a webapp to which to give the request.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/501-error-not-going-to-location-tp32466722p32475425.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: 501 error not going to location

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: kkrikor [mailto:krikor.krumlian@gmail.com] 
> Subject: 501 error not going to location

> I have set up an error page for the 501 error code.

Where did you configure the <error-page>?  (Be precise.)

> Testing with Tomcat 7. 

Tomcat 7.what.what?  (Be precise.)

Since error pages are specific to individual webapps, Tomcat cannot honor such configuration if the request is so malformed that it's impossible to select a webapp to which to give the request.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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