[opencms-dev] 404 error handling in Weblogic

Albiach, Enric (MAD-MRM) enric.albiach at mrmww.es
Thu May 24 14:19:08 CEST 2012


Hello,

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"?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">

       <!-- ROOT application -->
        <context-root>/</context-root>

       <!-- Always compile JSP -->
        <jsp-descriptor>
                <page-check-seconds>0</page-check-seconds>
        </jsp-descriptor>
</weblogic-web-app>

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!

Kind regards,
Enric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120524/4b258f38/attachment.htm>


More information about the opencms-dev mailing list