<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=214233509-06112006><FONT face=Arial
color=#0000ff size=2>Christian -</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=214233509-06112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=214233509-06112006><FONT face=Arial
color=#0000ff size=2>It works for me, though my handler is at <A
href="http://xxx/handle404">http://xxx/handle404</A>. And its parameter is
provided as a query parameter named </FONT></SPAN><SPAN
class=214233509-06112006><FONT face=Arial color=#0000ff size=2>exporturi, whose
value is the path to the resource (its URI) without the site root
prepended. That is, at least in my configuration - I had to jump through
so many hoops to get Apache 1.x, mod_rewrite, mod_jk and OpenCms to work
together that the trauma has clouded my memory of what comes from
where!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=214233509-06112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=214233509-06112006><FONT face=Arial
color=#0000ff size=2>Jon</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=214233509-06112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Christian
Steinert<BR><B>Sent:</B> 05 November 2006 21:29<BR><B>To:</B> The OpenCms
mailing list<BR><B>Subject:</B> [opencms-dev] trouble with 404
handler<BR></FONT><BR></DIV>
<DIV></DIV>Hi List,<BR><BR>I am trying to configure static export and for that I
need a working file-not-found handler. <BR>The static export configuration
itself is nothing that I am so concerned about, but I have a problem with the
error handler servlet of opencms.<BR><BR>No matter which URL I call that should
be associated with the errorhandler servlet, I always get a tomcat-style
permission denied page with error code 403 (=permission denied), saying:
"<U>Access to the specified resource () has been forbidden.</U>"
<BR><BR>For example, if I call:<BR> <A
class=moz-txt-link-freetext
href="http://localhost:8080/opencms-errorhandler/">http://localhost:8080/opencms-errorhandler/</A><BR>or
<BR> <A class=moz-txt-link-freetext
href="http://localhost:8080/opencms-errorhandler/handle404/">http://localhost:8080/opencms-errorhandler/handle404/</A><BR>or<BR>
<A class=moz-txt-link-freetext
href="http://localhost:8080/opencms-errorhandler/handle404/sites/default/path/to/page.html">http://localhost:8080/opencms-errorhandler/handle404/sites/default/path/to/page.html</A><BR>or<BR>
<A class=moz-txt-link-freetext
href="http://localhost:8080/opencms-errorhandler/handle404/path/to/page.html">http://localhost:8080/opencms-errorhandler/handle404/path/to/page.html</A><BR><BR>...
with any of these URLs I get the mentioned error (
/sites/default/path/to/page.html stands for an existing file in the VFS
).<BR>___________<BR><BR>- I have checked my opencms and tomcat logs and there
is nothing there, although I have set the log4j loglevel to INFO for
everything.<BR>- I have checked the permissions of all files below the
/system/handlers/ directory in the virtual filesystem, but all files are
readable and viewable for Guest users<BR>- The rest of my system is working. If
I directly call the 404 handler page "/system/handler/handle404.html", instead
of triggering the separate errorhandling servlet, then I see the normal error
page instead of a permission denied error.<BR><BR><BR>So my questions are:<BR>*
Does it work for anyone?<BR>* Does anyone know what could be wrong with the
errorhandler servlet?<BR>* Did anyone else experience something
similar?<BR><BR>Any replies are highly appreciated. Thanks in
advance,<BR>christian<BR></BODY></HTML>