Hi Bertrand,

2010/6/9 Bertrand Delacretaz <[email protected]>
>
> Not sure what you mean by "defined in a JSON file", can you point me
> to that file so that I can understand?
>
>
http://code.google.com/p/davidgsoc2010/source/browse/trunk/src/main/resources/initial-content/content/david.json

The file that creates the node under /content/david.


>
> To help you we need a more precise description here: what's the
> sling:resourceType of the node that you're trying to view, and what's
> the exact error that you get. Basically: what's the exact simplest
> possible scenario that allows us to reproduce the problem.
>
>
The nodes are created using the sling:resourceType = david/view. I put a
script named view.esp under /apps/david and when I call the url
http://localhost:8080/content/david/example.view<http://localhost:8080/content/david/prova_.view>
(example
is the node with sling:resourceType = david/view) there is this response

Not Found (404)

The requested URL /content/david/example.view resulted in an error in
org.apache.sling.servlets.get.DefaultGetServlet.
Request Progress:

      0 (2010-06-09 15:16:40) TIMER_START{Request Processing}
      0 (2010-06-09 15:16:40) COMMENT timer_end format is {<elapsed
msec>,<timer name>} <optional message>
      0 (2010-06-09 15:16:40) LOG Method=GET,
PathInfo=/content/david/example.view
      0 (2010-06-09 15:16:40) TIMER_START{ResourceResolution}
      0 (2010-06-09 15:16:40) TIMER_END{0,ResourceResolution}
URI=/content/david/example.view resolves to Resource=JcrNodeResource,
type=david/view, superType=null, path=/content/david/example
      0 (2010-06-09 15:16:40) LOG Resource Path Info:
SlingRequestPathInfo: path='/content/david/example',
selectorString='null', extension='view', suffix='null'
      0 (2010-06-09 15:16:40) TIMER_START{ServletResolution}
      0 (2010-06-09 15:16:40)
TIMER_START{resolveServlet(JcrNodeResource, type=david/view,
superType=null, path=/content/david/example)}
      0 (2010-06-09 15:16:40)
TIMER_END{0,resolveServlet(JcrNodeResource, type=david/view,
superType=null, path=/content/david/example)} Using servlet
org.apache.sling.servlets.get.DefaultGetServlet
      0 (2010-06-09 15:16:40) TIMER_END{0,ServletResolution}
URI=/content/david/example.view handled by
Servlet=org.apache.sling.servlets.get.DefaultGetServlet
      0 (2010-06-09 15:16:40) LOG Applying request filters
      0 (2010-06-09 15:16:40) LOG Calling filter:
org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter
      0 (2010-06-09 15:16:40)
TIMER_START{org.apache.sling.servlets.get.DefaultGetServlet#0}
      0 (2010-06-09 15:16:40) LOG No renderer for extension view
      0 (2010-06-09 15:16:40) TIMER_START{handleError:status=404}
      0 (2010-06-09 15:16:40) TIMER_END{0,handleError:status=404}
Using handler 
org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet
     16 (2010-06-09 15:16:40) TIMER_END{16,Request Processing} Dumping
SlingRequestProgressTracker Entries


Related also to this problem I have another (I think I still must understand
something about the sling core). I put a script named list.esp that lists
the post entries. But when I call the url
http://localhost:8080/content/david.list I receive the output of the script
but as plain text

09.06.2010 15:24:21.923 *INFO* [127.0.0.1 [1276089861860] GET
/content/david.list HTTP/1.1] logs/request.log 09/Jun/2010:15:24:21 +0200
[106
] <- 200 text/plain 63ms

If I append .html to url everything works. Can you help me to understand
also this stupid problem?

-- 
Federico

Reply via email to