You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Justin Edelson <ju...@gmail.com> on 2010/10/20 22:59:26 UTC

Re: script resolving doesn't work

This looks like a different problem (which I and Hudson are both now
seeing). I think this is related changes made in SLING-1842.

Felix - can you take a look at this? Thanks.

On 10/20/10 4:27 PM, Sandro Boehme wrote:
> Hi Justin,
> 
> I get the two test failures:
> testMaxCallsDetection(org.apache.sling.launchpad.webapp.integrationtest.JspIncludeTest)
> 
> testInfiniteLoopDetection(org.apache.sling.launchpad.webapp.integrationtest.IncludeTest)
> 
> Attached you find more detailed information and logs.
> 
> Best,
> 
> Sandro
> 
> Am 20.10.10 21:34, schrieb Justin Edelson:
>> Sandro-
>> If you get a chance, please try out trunk now. I just committed a fix
>> which seems to be working for me, but it'll be a while before Hudson
>> confirms.
>>
>> Thanks,
>> Justin
>>
>> On 10/20/10 3:21 PM, Sandro Boehme wrote:
>>> I'm glad it was not a user error ;-). The problem simply was, that I
>>> checked out the trunk while it was not yet working properly.
>>> I should have had a look at the hudson build before updating from trunk.
>>> Using git (git://git.apache.org/sling.git) now to be able to easily
>>> revert my local experiments to the last working version of the trunk
>>> (right now this should be commit 129f4d btw).
>>>
>>> Best,
>>>
>>> Sandro
>>>
>>> Am 20.10.10 01:23, schrieb Sandro Boehme:
>>>> Hello,
>>>>
>>>> mvn clean install of sling on a fresh checkout from trunk did not show
>>>> any errors. Also running Jetty works and all bundles are active. But
>>>> the
>>>> scripts of the Sling Explorer don't get executed and the
>>>> HtmlRendererServlet is show like that:
>>>> =========================================================
>>>>
>>>>
>>>> Resource dumped by HtmlRendererServlet
>>>>
>>>> Resource path: */index.html*
>>>>
>>>> Resource metadata: *{sling.creationTime=1287529282337,
>>>> sling.contentType=text/html, sling.resolutionPathInfo=.explorer.html,
>>>> sling.modificationTime=1287528833921, sling.contentLength=5898,
>>>> sling.resolutionPath=/index.html}*
>>>>
>>>> Resource type: *nt:file*
>>>>
>>>> Resource super type: *-*
>>>>
>>>>
>>>> Resource properties
>>>>
>>>> jcr:createdBy: *admin*
>>>> jcr:created:
>>>> *java.util.GregorianCalendar[time=1287529282337,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+02:00",offset=7200000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2010,MONTH=9,WEEK_OF_YEAR=43,WEEK_OF_MONTH=4,DAY_OF_MONTH=20,DAY_OF_YEAR=293,DAY_OF_WEEK=4,DAY_OF_WEEK_IN_MONTH=3,AM_PM=0,HOUR=1,HOUR_OF_DAY=1,MINUTE=1,SECOND=22,MILLISECOND=337,ZONE_OFFSET=7200000,DST_OFFSET=0]*
>>>>
>>>>
>>>>
>>>> jcr:primaryType: *nt:file
>>>> *
>>>>
>>>> =========================================================
>>>> *The bundle of the Sling Explorer is marked active in the console.
>>>> *
>>>>
>>>> Also the simple script from the 15min tutorial that renders the title
>>>> property does not get executed. Instead the HtmlRendererServlet dumps
>>>> the Resource like that:
>>>> =========================================================
>>>>
>>>>
>>>> Resource dumped by HtmlRendererServlet
>>>>
>>>> Resource path: */content/mynode*
>>>>
>>>> Resource metadata: *{sling.resolutionPathInfo=.html,
>>>> sling.resolutionPath=/content/mynode}*
>>>>
>>>> Resource type: *foo/bar*
>>>>
>>>> Resource super type: *-*
>>>>
>>>>
>>>> Resource properties
>>>>
>>>> title: *some title*
>>>> sling:resourceType: *foo/bar*
>>>> jcr:primaryType: *nt:unstructured
>>>> *=========================================================
>>>>
>>>> The curl commands that create the WebDAV folders and upload the script
>>>> are executed successfully. And via WebDAV I can see that the script is
>>>> there (/apps/foo/bar/html.esp).
>>>>
>>>> I debugged some resolver classes, searched at Google and tried to
>>>> find a
>>>> solution to that for quite some time now. But I have no idea left.
>>>> Does somebody have a hint what I could try to get it working?
>>>>
>>>> Best,
>>>>
>>>> Sandro
>>>>
>>>>
>>>
>>
>>
> 


Re: script resolving doesn't work

Posted by Felix Meschberger <fm...@gmail.com>.
Hi,

On 20.10.2010 22:59, Justin Edelson wrote:
> This looks like a different problem (which I and Hudson are both now
> seeing). I think this is related changes made in SLING-1842.
> 
> Felix - can you take a look at this? Thanks.

I try to take a look tomorrow -- at the moment I have constant failures
in the event bundle ...

Regards
Felix

> 
> On 10/20/10 4:27 PM, Sandro Boehme wrote:
>> Hi Justin,
>>
>> I get the two test failures:
>> testMaxCallsDetection(org.apache.sling.launchpad.webapp.integrationtest.JspIncludeTest)
>>
>> testInfiniteLoopDetection(org.apache.sling.launchpad.webapp.integrationtest.IncludeTest)
>>
>> Attached you find more detailed information and logs.
>>
>> Best,
>>
>> Sandro
>>
>> Am 20.10.10 21:34, schrieb Justin Edelson:
>>> Sandro-
>>> If you get a chance, please try out trunk now. I just committed a fix
>>> which seems to be working for me, but it'll be a while before Hudson
>>> confirms.
>>>
>>> Thanks,
>>> Justin
>>>
>>> On 10/20/10 3:21 PM, Sandro Boehme wrote:
>>>> I'm glad it was not a user error ;-). The problem simply was, that I
>>>> checked out the trunk while it was not yet working properly.
>>>> I should have had a look at the hudson build before updating from trunk.
>>>> Using git (git://git.apache.org/sling.git) now to be able to easily
>>>> revert my local experiments to the last working version of the trunk
>>>> (right now this should be commit 129f4d btw).
>>>>
>>>> Best,
>>>>
>>>> Sandro
>>>>
>>>> Am 20.10.10 01:23, schrieb Sandro Boehme:
>>>>> Hello,
>>>>>
>>>>> mvn clean install of sling on a fresh checkout from trunk did not show
>>>>> any errors. Also running Jetty works and all bundles are active. But
>>>>> the
>>>>> scripts of the Sling Explorer don't get executed and the
>>>>> HtmlRendererServlet is show like that:
>>>>> =========================================================
>>>>>
>>>>>
>>>>> Resource dumped by HtmlRendererServlet
>>>>>
>>>>> Resource path: */index.html*
>>>>>
>>>>> Resource metadata: *{sling.creationTime=1287529282337,
>>>>> sling.contentType=text/html, sling.resolutionPathInfo=.explorer.html,
>>>>> sling.modificationTime=1287528833921, sling.contentLength=5898,
>>>>> sling.resolutionPath=/index.html}*
>>>>>
>>>>> Resource type: *nt:file*
>>>>>
>>>>> Resource super type: *-*
>>>>>
>>>>>
>>>>> Resource properties
>>>>>
>>>>> jcr:createdBy: *admin*
>>>>> jcr:created:
>>>>> *java.util.GregorianCalendar[time=1287529282337,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT+02:00",offset=7200000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2010,MONTH=9,WEEK_OF_YEAR=43,WEEK_OF_MONTH=4,DAY_OF_MONTH=20,DAY_OF_YEAR=293,DAY_OF_WEEK=4,DAY_OF_WEEK_IN_MONTH=3,AM_PM=0,HOUR=1,HOUR_OF_DAY=1,MINUTE=1,SECOND=22,MILLISECOND=337,ZONE_OFFSET=7200000,DST_OFFSET=0]*
>>>>>
>>>>>
>>>>>
>>>>> jcr:primaryType: *nt:file
>>>>> *
>>>>>
>>>>> =========================================================
>>>>> *The bundle of the Sling Explorer is marked active in the console.
>>>>> *
>>>>>
>>>>> Also the simple script from the 15min tutorial that renders the title
>>>>> property does not get executed. Instead the HtmlRendererServlet dumps
>>>>> the Resource like that:
>>>>> =========================================================
>>>>>
>>>>>
>>>>> Resource dumped by HtmlRendererServlet
>>>>>
>>>>> Resource path: */content/mynode*
>>>>>
>>>>> Resource metadata: *{sling.resolutionPathInfo=.html,
>>>>> sling.resolutionPath=/content/mynode}*
>>>>>
>>>>> Resource type: *foo/bar*
>>>>>
>>>>> Resource super type: *-*
>>>>>
>>>>>
>>>>> Resource properties
>>>>>
>>>>> title: *some title*
>>>>> sling:resourceType: *foo/bar*
>>>>> jcr:primaryType: *nt:unstructured
>>>>> *=========================================================
>>>>>
>>>>> The curl commands that create the WebDAV folders and upload the script
>>>>> are executed successfully. And via WebDAV I can see that the script is
>>>>> there (/apps/foo/bar/html.esp).
>>>>>
>>>>> I debugged some resolver classes, searched at Google and tried to
>>>>> find a
>>>>> solution to that for quite some time now. But I have no idea left.
>>>>> Does somebody have a hint what I could try to get it working?
>>>>>
>>>>> Best,
>>>>>
>>>>> Sandro
>>>>>
>>>>>
>>>>
>>>
>>>
>>
> 
>