You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Tony Giaccone <tg...@masslight.net> on 2010/06/23 03:37:50 UTC
rendering content...
I am looking at the simple example in sling in 15 minutes.
Where I have a resource of sling:resourceType="mjb/order"
That suggest to me I should have a node at the following path
apps/mjb/order/html.esp
which should render that set of nodes into html.
However, when I try I get this message:
ResourceNotFoundException: No resource found (/apps/mjb/order/html.esp#4) (500)
I'm not sure where the #4 is coming from?
If I hit the URL as html.esp.xml I get this:
<html.esp jcr:primaryType="nt:file" jcr:created="2010-06-22T21:29:21.330-04:00" jcr:createdBy="admin">
<jcr:content jcr:primaryType="nt:resource" jcr:uuid="1bdb9275-82d7-4993-b2d6-94a5e92bbdeb" jcr:data="PGh0bWw+ICAgCgk8Ym9keT4gICAgIAoJCTxkaXYgaWQ9ImhlYWRlciI+ICAgICAgIAoJCQk8JSBzbGluZy5pbmNsdWRlKCIvY29udGVudC9oZWFkZXIiKTsgJT4gICAgIAoJCTwvZGl2PiAgICAKCQk8aDE+PCU9IGN1cnJlbnROb2RlLnRpdGxlICU+PC9oMT4gICAKCTwvYm9keT4gCjwvaHRtbD4=" jcr:lastModified="2010-06-22T21:29:21.455-04:00" jcr:lastModifiedBy="admin" jcr:mimeType="application/octet-stream"/>
</html.esp>
Any clue what's going on?
Tony Giaccone
Re: rendering content...
Posted by Justin Edelson <ju...@gmail.com>.
On 6/22/10 9:37 PM, Tony Giaccone wrote:
>
>
> I am looking at the simple example in sling in 15 minutes.
>
> Where I have a resource of sling:resourceType="mjb/order"
>
> That suggest to me I should have a node at the following path
>
> apps/mjb/order/html.esp
>
> which should render that set of nodes into html.
>
>
> However, when I try I get this message:
>
> ResourceNotFoundException: No resource found (/apps/mjb/order/html.esp#4) (500)
>
>
> I'm not sure where the #4 is coming from?
This means there is an error on line 4 of your script. What is going on
on this line?
Justin
>
> If I hit the URL as html.esp.xml I get this:
>
> <html.esp jcr:primaryType="nt:file" jcr:created="2010-06-22T21:29:21.330-04:00" jcr:createdBy="admin">
> <jcr:content jcr:primaryType="nt:resource" jcr:uuid="1bdb9275-82d7-4993-b2d6-94a5e92bbdeb" jcr:data="PGh0bWw+ICAgCgk8Ym9keT4gICAgIAoJCTxkaXYgaWQ9ImhlYWRlciI+ICAgICAgIAoJCQk8JSBzbGluZy5pbmNsdWRlKCIvY29udGVudC9oZWFkZXIiKTsgJT4gICAgIAoJCTwvZGl2PiAgICAKCQk8aDE+PCU9IGN1cnJlbnROb2RlLnRpdGxlICU+PC9oMT4gICAKCTwvYm9keT4gCjwvaHRtbD4=" jcr:lastModified="2010-06-22T21:29:21.455-04:00" jcr:lastModifiedBy="admin" jcr:mimeType="application/octet-stream"/>
> </html.esp>
>
>
> Any clue what's going on?
>
> Tony Giaccone