[Yanel-usage] URL /resource mapping

Michael Wechner michael.wechner at wyona.com
Thu Jul 7 09:32:06 CEST 2011


Hi Bettina

Am 07.07.11 09:16, schrieb Bettina Messmer:
> Hi,
>
> I want to remap all URLs which end with ".upload.html" to the same file.
>
> Therefore I added:
>
>
>    <matcher pattern="**.upload.html" rcpath="/usecases/upload.yanel-rc"/>

add an "error" to the file  (e.g. change the name of the resource to 
something like <yanel:rti name="HUGO" 
namespace="http://www.wyona.org/yanel/resource/1.0"/>

/usecases/upload.yanel-rc

to make sure that this resource configuration is actually used

> to the map. But I get always a Page not found exception.
>
> In the log4j-document there is no error message printed.

are you really sure, because the 404 method

src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java#do404(....)

does also log the 404?

Try deleting all the log files by first stopping Tomcat/yanel, delete 
files inside logs directory and start Tomcat.
And then check log files again.

HTH

Michael
> Does anybody know why it doesn't work?
>
> greets,
>
> Bettina
>



More information about the Yanel-usage mailing list