You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org> on 2006/03/10 02:58:39 UTC
[jira] Resolved: (TAPESTRY-136) Relative private-asset throws
exception
[ http://issues.apache.org/jira/browse/TAPESTRY-136?page=all ]
Jesse Kuhnert resolved TAPESTRY-136:
------------------------------------
Fix Version: 3.0.1
Resolution: Fixed
Assign To: (was: Tapestry Developer List)
> Relative private-asset throws exception
> ---------------------------------------
>
> Key: TAPESTRY-136
> URL: http://issues.apache.org/jira/browse/TAPESTRY-136
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 3.0
> Environment: Operating System: Windows XP
> Platform: PC
> Reporter: Davide Orlandi
> Fix For: 3.0.1
>
> --- test.application: ---
> <application engine-class="org.apache.tapestry.engine.BaseEngine" name="test">
> <page name="Home" specification-path="classes/testpackage/Home.page"/>
> </application>
> --- classes/testpackage/Home.page: ---
> <page-specification class="org.apache.tapestry.html.BasePage">
> <private-asset name="testasset" resource-path="icon.gif" />
> </page-specification>
> --- The app throws the following exception: ---
> org.apache.tapestry.ApplicationRuntimeException
> Unable to instantiate component Home: null
> component: org.apache.tapestry.html.BasePage@44ac5e[Home]
> location: context:/WEB-INF/classes/testpackage/Home.page, line 6, column 63
> java.lang.ClassCastException
> Stack Trace:
> org.apache.tapestry.pageload.PageLoader.convert(PageLoader.java:950)
> org.apache.tapestry.pageload.PageLoader.addAssets(PageLoader.java:879)
> org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:553)
> org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:801)
> org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:194)
> org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:237)
> org.apache.tapestry.engine.HomeService.service(HomeService.java:100)
> org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:913)
> "icon.gif" is not missing or misspelled (I get a different error if I rename
> it).
> I noticed the problem first when using a package directory, but moving
> Home.page, Home.html and icon.gif out of the package into the context root
> doesn't change it.
> Test setup is Tomcat 5.0.18, but I remember it happening with 4.x too.
> An absolute private-asset (resource-path="/testpackage/icon.gif") works, so
> this is not a great problem anyway.
> (I hope I'm not missing something obvious; if so please forgive me).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org