You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by bu...@apache.org on 2004/03/14 21:49:41 UTC
DO NOT REPLY [Bug 27651] New: -
Relative private-asset throws exception
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27651>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27651
Relative private-asset throws exception
Summary: Relative private-asset throws exception
Product: Tapestry
Version: 3.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Minor
Priority: Other
Component: Framework
AssignedTo: tapestry-dev@jakarta.apache.org
ReportedBy: davide.orlandi.due@synago.it
--- 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).
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org