You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by bobshort <je...@check-it.ca> on 2011/12/22 19:46:42 UTC

Custom in web.xml not working

I'm using Karaf 2.2.2/PAX WEB 1.0.4 and Karaf 2.2.4/PAX WEB 1.0.7 to deploy
some WAB bundles.

For the most part everything is working as expected. The one thing I can't
seem to get working is custom error pages in my web.xml:

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

Try as I might, I always get the default Jetty error message. I can access
my "/error.jsp" page directly without issue.

Any ideas where to start? I've been surfing the forms and mailing lists for
Karaf and Pax-WEB and haven't found any solutions.

PS. I posted this a few months back but I don't think it got to the mailing
list. I apologize if this gets posted twice. 

--
View this message in context: http://karaf.922171.n3.nabble.com/Custom-error-page-in-web-xml-not-working-tp3607253p3607253.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Custom in web.xml not working

Posted by Achim Nierbeck <bc...@googlemail.com>.
well I have to dig into this a bit more, cause the actual integration
test for pax-web don't seem to have an issue with this.
I'll try to fix this with 2.0 better :)
If you have more information that could be helpful please add those in
the corresponding jira entry.

regards, Achim

2012/3/8 Raman Gupta <ro...@gmail.com>:
> Actually, as per the bug report, this applies even to the first WAB
> when using the error-code element rather than exception-type.
>
> Is there a work-around for this short of generating the error page
> from directly within the app?
>
> Regards,
> Raman
>
>
> On 03/07/2012 02:59 PM, Achim Nierbeck wrote:
>> Hi
>>
>> there is an issue for this at pax-web
>>
>> https://team.ops4j.org/browse/PAXWEB-341
>>
>> but this is about a second wab registering a custom error page.
>>
>>
>> regards, Achim
>>
>> Am 07.03.2012 19:08, schrieb dleblanc:
>>> Hello, has there been any progress on this issue? We're seeing the
>>> same thing
>>> in our deployment. Is there a Jira we could follow for this? (I
>>> didn't see
>>> one).
>>>
>>> Thanks,
>>>
>>>   -Dave
>>>
>>> --
>>> View this message in context:
>>> http://karaf.922171.n3.nabble.com/Custom-error-page-in-web-xml-not-working-tp3607253p3807464.html
>>>
>>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>>



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
Committer & Project Lead
blog <http://notizblog.nierbeck.de/>

Re: Custom in web.xml not working

Posted by Raman Gupta <ro...@gmail.com>.
Actually, as per the bug report, this applies even to the first WAB
when using the error-code element rather than exception-type.

Is there a work-around for this short of generating the error page
from directly within the app?

Regards,
Raman


On 03/07/2012 02:59 PM, Achim Nierbeck wrote:
> Hi
> 
> there is an issue for this at pax-web
> 
> https://team.ops4j.org/browse/PAXWEB-341
> 
> but this is about a second wab registering a custom error page.
> 
> 
> regards, Achim
> 
> Am 07.03.2012 19:08, schrieb dleblanc:
>> Hello, has there been any progress on this issue? We're seeing the
>> same thing
>> in our deployment. Is there a Jira we could follow for this? (I
>> didn't see
>> one).
>>
>> Thanks,
>>
>>   -Dave
>>
>> -- 
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Custom-error-page-in-web-xml-not-working-tp3607253p3807464.html
>>
>> Sent from the Karaf - User mailing list archive at Nabble.com.
> 
> 

Re: Custom in web.xml not working

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi

there is an issue for this at pax-web

https://team.ops4j.org/browse/PAXWEB-341

but this is about a second wab registering a custom error page.


regards, Achim

Am 07.03.2012 19:08, schrieb dleblanc:
> Hello, has there been any progress on this issue? We're seeing the same thing
> in our deployment. Is there a Jira we could follow for this? (I didn't see
> one).
>
> Thanks,
>
>   -Dave
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Custom-error-page-in-web-xml-not-working-tp3607253p3807464.html
> Sent from the Karaf - User mailing list archive at Nabble.com.


-- 
- Apache Karaf<http://karaf.apache.org/>  Committer&  PMC
- OPS4J Pax Web<http://wiki.ops4j.org/display/paxweb/Pax+Web/>    Committer&  Project Lead
- Blog<http://notizblog.nierbeck.de/>


Re: Custom in web.xml not working

Posted by dleblanc <da...@windhorsesoftware.com>.
Hello, has there been any progress on this issue? We're seeing the same thing
in our deployment. Is there a Jira we could follow for this? (I didn't see
one).

Thanks,

 -Dave

--
View this message in context: http://karaf.922171.n3.nabble.com/Custom-error-page-in-web-xml-not-working-tp3607253p3807464.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Custom in web.xml not working

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

thanks for the report. The issue is certainly located in Pax Web. I will 
raise a Jira and take a look on it (or Achim ;)).

Regards
JB

On 12/22/2011 07:46 PM, bobshort wrote:
> I'm using Karaf 2.2.2/PAX WEB 1.0.4 and Karaf 2.2.4/PAX WEB 1.0.7 to deploy
> some WAB bundles.
>
> For the most part everything is working as expected. The one thing I can't
> seem to get working is custom error pages in my web.xml:
>
> <error-page>
>          <error-code>404</error-code>
>          <location>/error.jsp</location>
> </error-page>
>
> Try as I might, I always get the default Jetty error message. I can access
> my "/error.jsp" page directly without issue.
>
> Any ideas where to start? I've been surfing the forms and mailing lists for
> Karaf and Pax-WEB and haven't found any solutions.
>
> PS. I posted this a few months back but I don't think it got to the mailing
> list. I apologize if this gets posted twice.
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Custom-error-page-in-web-xml-not-working-tp3607253p3607253.html
> Sent from the Karaf - User mailing list archive at Nabble.com.

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com