[opencms-dev] Exception processing error page

Aser Casas aser.casas at usc.es
Thu Mar 8 14:58:50 CET 2012


Hi list!

We have installed Opencms 7.5.4 in a Tomcat 6 instance. In Tomcat logs
we can see a lot of exceptions like this:

2012-03-08 12:21:16,363 [catalina-explotacion0-13] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost]- Exception
Processing ErrorPage[errorCode=404,
location=/opencms-errorhandler/handle404]
ClientAbortException:  java.io.IOException
        at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:369)
        at
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:448)
        at
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:318)
        at
org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:296)
        at
org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:98)
        at
org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:905)
        at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:512)
        at
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:964)
        at
org.opencms.main.OpenCmsServlet.openErrorHandler(OpenCmsServlet.java:317)
        at org.opencms.main.OpenCmsServlet.handle(OpenCmsServlet.java:214)
        at
org.opencms.main.OpenCmsServlet.invokeHandler(OpenCmsServlet.java:269)
        at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:149)
        at
org.opencms.main.OpenCmsServletErrorHandler.doGet(OpenCmsServletErrorHandler.java:81)

The configuration of the static export is in opencms-importexport.xml is:

...
<rendersettings>
      <rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix>
      <vfs-prefix>${CONTEXT_NAME}</vfs-prefix>
      <userelativelinks>false</userelativelinks>
     
<exporturl>http://xx.xx.xx.xx:8021${CONTEXT_NAME}/handle404</exporturl>
      <plainoptimization>true</plainoptimization>
      <testresource uri="/system/shared/page.dtd"/>
      <resourcestorender>
        <regex>/sites/.*</regex>
        <regex>/system/workplace/commons/style/.*</regex>
        <regex>/system/galleries/.*</regex>
        <regex>/system/modules/.*/resources/.*</regex>
      </resourcestorender>
    </rendersettings>
...

In web.xml:

<servlet-mapping>
        <servlet-name>OpenCmsServletErrorHandler</servlet-name>
        <url-pattern>/opencms-errorhandler/*</url-pattern>
    </servlet-mapping>
<error-page>
        <error-code>404</error-code>
        <location>/opencms-errorhandler/handle404</location>
    </error-page>

        <error-page>
        <error-code>500</error-code>
       
<location>/opencms-errorhandler/system/handler/handle500.html</location>
    </error-page>


How can we solve this problem?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120308/36fc4452/attachment.htm>


More information about the opencms-dev mailing list