[opencms-dev] 404 error handling in Weblogic
Albiach, Enric (MAD-MRM)
enric.albiach at mrmww.es
Mon May 28 17:23:59 CEST 2012
I would really appreciate any help about this issue.
Thank you in advance.
De: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] En nombre de Albiach, Enric (MAD-MRM)
Enviado el: jueves, 24 de mayo de 2012 14:19
Para: opencms-dev at opencms.org
Asunto: [opencms-dev] 404 error handling in Weblogic
I've just installed OpenCms 7.5.4 in a Oracle Weblogic 11g (v 10.3.5.0).
I've configured OpenCms to be the ROOT application using addtional configuration in a "weblogic.xml" file like this (for the time being, I only want to remove the first "/opencms/):
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- ROOT application -->
<!-- Always compile JSP -->
Everything works fine except for the 404 error handling:
1) If I try an URL that doesn't exist like http://MY-IP-SERVER:7001/testONE.html I can see the usual OpenCms 404 not found "purple" page error -> OK!
2) BUT If I try an URL that doesn't exist as well like http://MY-IP-SERVER:7001/opencms/testTWO.html I cannot see the "purple" 404 error page and what I receive is a simple text page with the following message:
org.opencms.file.CmsVfsResourceNotFoundException: Error reading resource from path "/testTWO.html".
I had a look at Weblogic logs I found this error (an INFINITE LOOP!!):
####<Feb 29, 2012 12:49:39 AM CET> <Error> <HTTP> <xxxxxxx> <xxxxxx> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1330472979800> <BEA-101305> <[ServletContext at 3096820[app:opencms module:opencms path: spec-version:2.5]] Error-page location: "/opencms-errorhandler/handle404" for the error-code: "404" causes an infinite loop condition as it throws the same code for which it has been mapped.>
Could you please help me? Thank you very much in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the opencms-dev