You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Vjeran Marcinko (JIRA)" <ta...@jakarta.apache.org> on 2005/07/17 16:28:17 UTC
[jira] Created: (TAPESTRY-412) Specifying asset path by "classpath" prefix doesn't work
Specifying asset path by "classpath" prefix doesn't work
--------------------------------------------------------
Key: TAPESTRY-412
URL: http://issues.apache.org/jira/browse/TAPESTRY-412
Project: Tapestry
Type: Bug
Components: Framework
Versions: 4.0
Reporter: Vjeran Marcinko
Basically, I ran into same issue that Henri Dupre reported on dev list recently, so I am copying his description:
I have in my .jwc file:
<asset name="dispo1"
path="classpath:/actualis/web/tapestry/components/resources/dispo/a1.gif"/>
And I get this error:
Unable to locate asset
'/actualis/web/tapestry/components/resources/dispo/a1.gif' relative to
context:/WEB-INF/components/DispoArticle.jwc.
This was working in tp3 as private asset.
I run the execution through a debugger and the Resource passed to the
ClassPathAssetFactory is a ContextResource. I believe it should be
ClasspathResource.
--
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
[jira] Commented: (TAPESTRY-412) Specifying asset path by "classpath" prefix doesn't work
Posted by "Vjeran Marcinko (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-412?page=comments#action_12330076 ]
Vjeran Marcinko commented on TAPESTRY-412:
------------------------------------------
Ugh, this older bug report of mine is just special use case of generic bug described as http://issues.apache.org/jira/browse/TAPESTRY-655
so could someone mark it as duplicate?
> Specifying asset path by "classpath" prefix doesn't work
> --------------------------------------------------------
>
> Key: TAPESTRY-412
> URL: http://issues.apache.org/jira/browse/TAPESTRY-412
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Reporter: Vjeran Marcinko
>
> Basically, I ran into same issue that Henri Dupre reported on dev list recently, so I am copying his description:
> I have in my .jwc file:
> <asset name="dispo1"
> path="classpath:/actualis/web/tapestry/components/resources/dispo/a1.gif"/>
> And I get this error:
> Unable to locate asset
> '/actualis/web/tapestry/components/resources/dispo/a1.gif' relative to
> context:/WEB-INF/components/DispoArticle.jwc.
> This was working in tp3 as private asset.
> I run the execution through a debugger and the Resource passed to the
> ClassPathAssetFactory is a ContextResource. I believe it should be
> ClasspathResource.
--
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
[jira] Assigned: (TAPESTRY-412) Specifying asset path by "classpath" prefix doesn't work
Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-412?page=all ]
Howard M. Lewis Ship reassigned TAPESTRY-412:
---------------------------------------------
Assign To: Howard M. Lewis Ship
> Specifying asset path by "classpath" prefix doesn't work
> --------------------------------------------------------
>
> Key: TAPESTRY-412
> URL: http://issues.apache.org/jira/browse/TAPESTRY-412
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Reporter: Vjeran Marcinko
> Assignee: Howard M. Lewis Ship
>
> Basically, I ran into same issue that Henri Dupre reported on dev list recently, so I am copying his description:
> I have in my .jwc file:
> <asset name="dispo1"
> path="classpath:/actualis/web/tapestry/components/resources/dispo/a1.gif"/>
> And I get this error:
> Unable to locate asset
> '/actualis/web/tapestry/components/resources/dispo/a1.gif' relative to
> context:/WEB-INF/components/DispoArticle.jwc.
> This was working in tp3 as private asset.
> I run the execution through a debugger and the Resource passed to the
> ClassPathAssetFactory is a ContextResource. I believe it should be
> ClasspathResource.
--
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
[jira] Resolved: (TAPESTRY-412) Specifying asset path by "classpath" prefix doesn't work
Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-412?page=all ]
Howard M. Lewis Ship resolved TAPESTRY-412:
-------------------------------------------
Resolution: Duplicate
> Specifying asset path by "classpath" prefix doesn't work
> --------------------------------------------------------
>
> Key: TAPESTRY-412
> URL: http://issues.apache.org/jira/browse/TAPESTRY-412
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Reporter: Vjeran Marcinko
> Assignee: Howard M. Lewis Ship
>
> Basically, I ran into same issue that Henri Dupre reported on dev list recently, so I am copying his description:
> I have in my .jwc file:
> <asset name="dispo1"
> path="classpath:/actualis/web/tapestry/components/resources/dispo/a1.gif"/>
> And I get this error:
> Unable to locate asset
> '/actualis/web/tapestry/components/resources/dispo/a1.gif' relative to
> context:/WEB-INF/components/DispoArticle.jwc.
> This was working in tp3 as private asset.
> I run the execution through a debugger and the Resource passed to the
> ClassPathAssetFactory is a ContextResource. I believe it should be
> ClasspathResource.
--
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
[jira] Commented: (TAPESTRY-412) Specifying asset path by "classpath" prefix doesn't work
Posted by "Vjeran Marcinko (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-412?page=comments#action_12318538 ]
Vjeran Marcinko commented on TAPESTRY-412:
------------------------------------------
Just an addition to problem description...
When I specified asset by using only file name, without whole path -
<asset name="error" path="classpath:error-icon.gif"/>
which is supose to be resolved relative to component/page's specification location, it raises following exception then :
java.lang.ClassCastException
Stack Trace:
org.apache.tapestry.asset.ClasspathAssetFactory.createAsset(ClasspathAssetFactory.java:46)
$AssetFactory_105a71a9690.createAsset($AssetFactory_105a71a9690.java)
$AssetFactory_105a71a968f.createAsset($AssetFactory_105a71a968f.java)
org.apache.tapestry.asset.AssetSourceImpl.findAsset(AssetSourceImpl.java:85)
$AssetSource_105a71a961d.findAsset($AssetSource_105a71a961d.java)
$AssetSource_105a71a961c.findAsset($AssetSource_105a71a961c.java)
org.apache.tapestry.pageload.PageLoader.convertAsset(PageLoader.java:710)
org.apache.tapestry.pageload.PageLoader.addAssets(PageLoader.java:694)
org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:459)
org.apache.tapestry.pageload.PageLoader.createImplicitComponent(PageLoader.java:520)
$IPageLoader_105a71a9610.createImplicitComponent($IPageLoader_105a71a9610.java)
$IPageLoader_105a71a9611.createImplicitComponent($IPageLoader_105a71a9611.java)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.createImplicitComponent(ComponentTemplateLoaderLogic.java:219)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:173)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:112)
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.loadTemplate(ComponentTemplateLoaderLogic.java:89)
org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(ComponentTemplateLoaderImpl.java:61)
$ComponentTemplateLoader_105a71a9618.loadTemplate($ComponentTemplateLoader_105a71a9618.java)
org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(PageLoader.java:661)
org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java:77)
org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java:107)
$EmployeesPage_4.finishLoad($EmployeesPage_4.java)
org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:469)
org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:632)
$IPageLoader_105a71a9610.loadPage($IPageLoader_105a71a9610.java)
$IPageLoader_105a71a9611.loadPage($IPageLoader_105a71a9611.java)
org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:118)
$IPageSource_105a71a9580.getPage($IPageSource_105a71a9580.java)
org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:265)
org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:248)
org.apache.tapestry.engine.RequestCycle.activate(RequestCycle.java:609)
org.apache.tapestry.engine.PageService.service(PageService.java:67)
$IEngineService_105a71a9602.service($IEngineService_105a71a9602.java)
org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:65)
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:254)
org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:60)
$WebRequestServicer_105a71a95e0.service($WebRequestServicer_105a71a95e0.java)
$WebRequestServicer_105a71a95dc.service($WebRequestServicer_105a71a95dc.java)
org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.java:56)
$ServletRequestServicer_105a71a95c0.service($ServletRequestServicer_105a71a95c0.java)
org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInjector.java:55)
$ServletRequestServicerFilter_105a71a95bc.service($ServletRequestServicerFilter_105a71a95bc.java)
$ServletRequestServicer_105a71a95c2.service($ServletRequestServicer_105a71a95c2.java)
org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:52)
$ServletRequestServicerFilter_105a71a95ba.service($ServletRequestServicerFilter_105a71a95ba.java)
$ServletRequestServicer_105a71a95c2.service($ServletRequestServicer_105a71a95c2.java)
org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53)
$ServletRequestServicerFilter_105a71a95be.service($ServletRequestServicerFilter_105a71a95be.java)
$ServletRequestServicer_105a71a95c2.service($ServletRequestServicer_105a71a95c2.java)
$ServletRequestServicer_105a71a95b4.service($ServletRequestServicer_105a71a95b4.java)
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:145)
org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:101)
> Specifying asset path by "classpath" prefix doesn't work
> --------------------------------------------------------
>
> Key: TAPESTRY-412
> URL: http://issues.apache.org/jira/browse/TAPESTRY-412
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Reporter: Vjeran Marcinko
>
> Basically, I ran into same issue that Henri Dupre reported on dev list recently, so I am copying his description:
> I have in my .jwc file:
> <asset name="dispo1"
> path="classpath:/actualis/web/tapestry/components/resources/dispo/a1.gif"/>
> And I get this error:
> Unable to locate asset
> '/actualis/web/tapestry/components/resources/dispo/a1.gif' relative to
> context:/WEB-INF/components/DispoArticle.jwc.
> This was working in tp3 as private asset.
> I run the execution through a debugger and the Resource passed to the
> ClassPathAssetFactory is a ContextResource. I believe it should be
> ClasspathResource.
--
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