title: CQ5.3 Servlet Unavailable ( and Servlet Resolver Paths Configuration (5.3 v 5.6))
body: <p>Historically I've only ever used CQ 5.6, but am now working on a project using 5.3 and am failing to get a servlet registered and accessible. When I try to hit the servlet (with and without and extension) I get the following <em>INFO</em> line in the error log:</p>
  
  <pre><code>GET /bin/TestServlet.json HTTP/1.1] org.apache.sling.engine.impl.SlingMainServlet service: Resource /bin/TestServlet.json not found
  </code></pre>
  
  <p>I can build the bundle containing the servlet, deploy it using the maven-sling-plugin, and the bundle ends up in the console as 'active', but the servlet isn't available. I'm using the following in my class file to define the servlet:</p>
  
  <pre><code>@SlingServlet(paths = {"/bin/TestServlet"}, methods = {"GET"}, extensions = {"json"}, metatype = true)
  @Properties({
    @Property(name = "service.name", value = "com.something.servlets.TestServlet", propertyPrivate = true),
    @Property(name = "service.description", value= "Test servlet I am trying to geet working", propertyPrivate = true),
    @Property(name = "service.vendor", value = "something", propertyPrivate = true)
  })
  </code></pre>
  
  <p>Please note that I have also tried that alternative using the <code>@Component(.......)</code> and <code>@Service(value=Servlet.class)</code> annotations</p>
  
  <p>Looking to see if the problem is configuration based (thinking /bin was blocked) I went back to 5.6.1 to compare configuration and noticed that the config for <strong><em>Apache Sling Servlet/Script Resolver and Error Handler</em></strong> differs between 5.3 and 5.6.</p>
  
  <p>In 5.6 you can configure the servletresolver.paths which (if I understand things correctly) opens up paths for execution, but this is not present in 5.3</p>
  
  <p>So:</p>
  
  <ol>
  <li>Does the configuration for servletresolver.paths exist in 5.3?</li>
  <li>Can I even register a servlet like this in 5.3?</li>
  <li>If the answer to 2 is 'no', can you point me at an example/tutorial on how to do this in 5.3 (Docs and tutorials are thin on the ground for this version)?</li>
  </ol>
  
  <p>Thanks in advance</p>
  
  <p><strong>EDIT (resolution)</strong>:
  It seems to be down to versions in the POM (and <em>possibly</em> plugin config). May only have been one culprit, but I simply don't have time to try all permutations. If I get time to try I'll add an edit. </p>
  
  <p>Successful versions:
  maven-bundle-plugin - v2.4.0
  maven-scr-plugin - v1.13.0
  maven-sling-plugin - v2.1.0</p>