You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by appel <ar...@siminn.is> on 2007/09/05 18:01:28 UTC
Custom 404 message?
Does anyone know how to change the default 404 page (to a custom one) for my
Geronimo (globally) ?
--
View this message in context: http://www.nabble.com/Custom-404-message--tf4385351s134.html#a12501976
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Custom 404 message?
Posted by appel <ar...@siminn.is>.
Ok..
problem solved.
I had to re-deploy the dam war file, I was simply modifying the web.xml and
restarting the context....which was apparently not enough.
%-|
--
View this message in context: http://www.nabble.com/Custom-404-message--tf4385351s134.html#a12511519
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Custom 404 message?
Posted by appel <ar...@siminn.is>.
This is apparently not possible?
Here's a similar problem:
http://www.nabble.com/-Jetty-support--Jetty-error-handling-t2692820.html#a7509187
But, the above problem is for Jetty only. I cannot find any "jetty.xml" for
Geronimo to implement that solution.
Shouldn't this be configurable anyway?
--
View this message in context: http://www.nabble.com/Custom-404-message--tf4385351s134.html#a12510916
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Custom 404 message?
Posted by appel <ar...@siminn.is>.
I'm using Jetty. I'll try this *more*, hm...
Paul McMahan-2 wrote:
>
> Not sure which flavor and version of Geronimo you are using, but
> using the Geronimo+Tomcat 2.0.1 server I was able to accomplish this
> by following these steps:
> - add that chunk of text from your message to var/catalina/ROOT/WEB-
> INF/web.xml
> - create my404error.jsp in var/catalina/ROOT
> - undeploy Geronimo's welcome app (use the admin console, or bin/
> deploy.sh undeploy org.apache.geronimo.configs/welcome-tomcat//car)
> - restart the server
>
> This is rather complicated because the welcome app is assigned to the
> '/' context until you undeploy it, and then tomcat component needs to
> be restarted before it assigns the ROOT app back to handling the '/'
> context.
>
> Best wishes,
> Paul
>
> On Sep 5, 2007, at 2:50 PM, appel wrote:
>
>>
>>
>> I tried adding this into web.xml for the ROOT context:
>> <error-page>
>> <error-code>404</error-code>
>> <location>/my404error.jsp</location>
>> </error-page>
>>
>> but http://myserver/blablablbladoesnotexist still displays the
>> built-in
>> 404.
>> --
>> View this message in context: http://www.nabble.com/Custom-404-
>> message--tf4385351s134.html#a12508604
>> Sent from the Apache Geronimo - Users mailing list archive at
>> Nabble.com.
>>
>
>
>
--
View this message in context: http://www.nabble.com/Custom-404-message--tf4385351s134.html#a12509737
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Custom 404 message?
Posted by Paul McMahan <pa...@gmail.com>.
Not sure which flavor and version of Geronimo you are using, but
using the Geronimo+Tomcat 2.0.1 server I was able to accomplish this
by following these steps:
- add that chunk of text from your message to var/catalina/ROOT/WEB-
INF/web.xml
- create my404error.jsp in var/catalina/ROOT
- undeploy Geronimo's welcome app (use the admin console, or bin/
deploy.sh undeploy org.apache.geronimo.configs/welcome-tomcat//car)
- restart the server
This is rather complicated because the welcome app is assigned to the
'/' context until you undeploy it, and then tomcat component needs to
be restarted before it assigns the ROOT app back to handling the '/'
context.
Best wishes,
Paul
On Sep 5, 2007, at 2:50 PM, appel wrote:
>
>
> I tried adding this into web.xml for the ROOT context:
> <error-page>
> <error-code>404</error-code>
> <location>/my404error.jsp</location>
> </error-page>
>
> but http://myserver/blablablbladoesnotexist still displays the
> built-in
> 404.
> --
> View this message in context: http://www.nabble.com/Custom-404-
> message--tf4385351s134.html#a12508604
> Sent from the Apache Geronimo - Users mailing list archive at
> Nabble.com.
>
Re: Custom 404 message?
Posted by appel <ar...@siminn.is>.
I tried adding this into web.xml for the ROOT context:
<error-page>
<error-code>404</error-code>
<location>/my404error.jsp</location>
</error-page>
but http://myserver/blablablbladoesnotexist still displays the built-in
404.
--
View this message in context: http://www.nabble.com/Custom-404-message--tf4385351s134.html#a12508604
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.