atom feed2 messages in org.apache.tapestry.usersT5.2 update problem - The resource pa...
FromSent OnAttachments
Moritz GmelinSep 4, 2010 11:56 am 
Igor DrobiazkoSep 4, 2010 12:25 pm 
Subject:T5.2 update problem - The resource path was not within an aliased path
From:Moritz Gmelin (mori@gmx.de)
Date:Sep 4, 2010 11:56:51 am
List:org.apache.tapestry.users

Hi,

I tried to convert an application from T5.1.0.5 to T5.2. I'm having problems
with injected assets.

In the .tml file I have an image like this

<img src="${navleftred}"/>

in the .java file for the page it is stated like this

@Inject @Path("classpath:/assets/icons/nav_left_red.png") @Property private Asset navleftred;

The file exists and is found (if I change the filename, then I get a file not
found exception).

But when I try to access the page, tapestry throws the following error.

Unable to create a client URL for classpath resource
assets/icons/nav_left_red.png: The resource path was not within an aliased path.

What does this mean and how can I fix it in T5.2?

Thanks

Moritz