[ https://issues.apache.org/jira/browse/SLING-4920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14651711#comment-14651711 ]
Robert Munteanu commented on SLING-4920: ---------------------------------------- The simplest way to deploy it is to - download the bundle from http://sling.apache.org/downloads.cgi ( direct link is http://mirrors.hostingromania.ro/apache.org//sling/org.apache.sling.servlets.compat-1.0.2.jar ) - access the OSGi console from your Sling install, e.g. at http://localhost:8080/system/console/bundles - click on 'Install/Bundle...' - On the dialog that appears - Enable 'Start bundle' - Browse to the location where you downloaded the bundle jar - click 'Install or update' > content.query.json gives 404 > ---------------------------- > > Key: SLING-4920 > URL: https://issues.apache.org/jira/browse/SLING-4920 > Project: Sling > Issue Type: Bug > Environment: JDK 1.7 > Reporter: Swapnil Bagul > > I am using sling and trying to execute xpath query with //* using get request > http://localhost:8089/content.query.tidy.json?queryType=xpath&statement=//* > but getting 404 error as follows > No resource found (404) > The requested URL /content.query.tidy.json resulted in an error in > org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet. > Request Progress: > 0 (2015-08-03 14:16:05) TIMER_START{Request Processing} > 0 (2015-08-03 14:16:05) COMMENT timer_end format is {<elapsed > msec>,<timer name>} <optional message> > 0 (2015-08-03 14:16:05) LOG Method=GET, > PathInfo=/content.query.tidy.json > 0 (2015-08-03 14:16:05) TIMER_START{ResourceResolution} > 0 (2015-08-03 14:16:05) TIMER_END{0,ResourceResolution} > URI=/content.query.tidy.json resolves to Resource=NonExistingResource, > path=/content.query.tidy.json > 0 (2015-08-03 14:16:05) LOG Resource Path Info: SlingRequestPathInfo: > path='/content.query.tidy.json', selectorString='query.tidy', > extension='json', suffix='null' > 0 (2015-08-03 14:16:05) TIMER_START{ServletResolution} > 0 (2015-08-03 14:16:05) TIMER_START{resolveServlet(NonExistingResource, > path=/content.query.tidy.json)} > 0 (2015-08-03 14:16:05) TIMER_END{0,resolveServlet(NonExistingResource, > path=/content.query.tidy.json)} Using servlet > org.apache.sling.servlets.get.DefaultGetServlet > 0 (2015-08-03 14:16:05) TIMER_END{0,ServletResolution} > URI=/content.query.tidy.json handled by > Servlet=org.apache.sling.servlets.get.DefaultGetServlet > 0 (2015-08-03 14:16:05) LOG Applying Requestfilters > 0 (2015-08-03 14:16:05) LOG Calling filter: > org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter > 0 (2015-08-03 14:16:05) LOG Applying Componentfilters > 0 (2015-08-03 14:16:05) > TIMER_START{org.apache.sling.servlets.get.DefaultGetServlet#0} > 0 (2015-08-03 14:16:05) > TIMER_END{0,org.apache.sling.servlets.get.DefaultGetServlet#0} > 0 (2015-08-03 14:16:05) TIMER_START{handleError:status=404} > 0 (2015-08-03 14:16:05) TIMER_END{0,handleError:status=404} Using > handler > org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet > 0 (2015-08-03 14:16:05) TIMER_END{0,Request Processing} Dumping > SlingRequestProgressTracker Entries -- This message was sent by Atlassian JIRA (v6.3.4#6332)