You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ingo Siebert <in...@cas.de> on 2007/06/29 08:40:31 UTC

HTML error pages

Hi,

i'm using Tomcat 5.5 and run a JAX-WebService application.

In general, if an error occurs at my application i will send back an 
SOAP-fault. So far so fine.

But my problem is now, that sometimes occurs an JVM/Tomcat exception 
(i.e. out of heap-space) and in this case, Tomcat sends back a HTML page 
(text/html, 404...).

The WS-client is showing an unexpected content type exception (not nice).
But my main problem is that i never see the html error page/message. 
Tomcat didn't print it in any console or log file. Is it possible to 
configure Tomcat in a way that it prints the (html) exception into a log 
file?

Cheers,

Ingo

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


Re: HTML error pages

Posted by Tim Funk <fu...@joedog.org>.
If you get an OOM error - typically - all bets are off. Pack up the JVM 
  - restart it and try again.

Tomcat should the log the OOM error if it catches it. If something else 
if first catching and swallowing it - then tomcat doesn't have a chance 
to log it.

-Tim

Ingo Siebert wrote:
> Hi, thank you for your answer.
> Sorry, it's quite possible that the 404 code was wrong, i think it was 
> the 500 code.
> 
> But I'm still wondering why Tomcat (5.5) doesn't log the error 
> message(i.e. out of heap space) into a log file.
> 
> My logging.properties file of Tomcat isn't modified.
> 
> Ingo
> 
> 
> Tim Funk schrieb:
>> Its odd that you would get a 404 for such an error but in any case:
>>
>> http://tomcat.apache.org/faq/misc.html#error
>>
>> -Tim


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


Re: HTML error pages

Posted by Ingo Siebert <in...@cas.de>.
Hi, thank you for your answer.
Sorry, it's quite possible that the 404 code was wrong, i think it was 
the 500 code.

But I'm still wondering why Tomcat (5.5) doesn't log the error 
message(i.e. out of heap space) into a log file.

My logging.properties file of Tomcat isn't modified.

Ingo


Tim Funk schrieb:
> Its odd that you would get a 404 for such an error but in any case:
> 
> http://tomcat.apache.org/faq/misc.html#error
> 
> -Tim
> 
> Ingo Siebert wrote:
>> Hi,
>>
>> i'm using Tomcat 5.5 and run a JAX-WebService application.
>>
>> In general, if an error occurs at my application i will send back an 
>> SOAP-fault. So far so fine.
>>
>> But my problem is now, that sometimes occurs an JVM/Tomcat exception 
>> (i.e. out of heap-space) and in this case, Tomcat sends back a HTML 
>> page (text/html, 404...).
>>
>> The WS-client is showing an unexpected content type exception (not nice).
>> But my main problem is that i never see the html error page/message. 
>> Tomcat didn't print it in any console or log file. Is it possible to 
>> configure Tomcat in a way that it prints the (html) exception into a 
>> log file?
>>
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


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


Re: HTML error pages

Posted by Tim Funk <fu...@joedog.org>.
Its odd that you would get a 404 for such an error but in any case:

http://tomcat.apache.org/faq/misc.html#error

-Tim

Ingo Siebert wrote:
> Hi,
> 
> i'm using Tomcat 5.5 and run a JAX-WebService application.
> 
> In general, if an error occurs at my application i will send back an 
> SOAP-fault. So far so fine.
> 
> But my problem is now, that sometimes occurs an JVM/Tomcat exception 
> (i.e. out of heap-space) and in this case, Tomcat sends back a HTML page 
> (text/html, 404...).
> 
> The WS-client is showing an unexpected content type exception (not nice).
> But my main problem is that i never see the html error page/message. 
> Tomcat didn't print it in any console or log file. Is it possible to 
> configure Tomcat in a way that it prints the (html) exception into a log 
> file?
> 

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