Can't deploy servlet - keep getting constraint violation for any path
I am deploying the simplest servlet - keep getting the error when I call it from a web page using simple ajax call. (this works locally btw)
Status
500
Message
javax.jcr.nodetype.ConstraintViolationException: No child node definition for wcm found in node /bin
Location invalid link: /bin/wcm/imf/SampleTest/bin/wcm/imf/SampleTest
Parent Location /bin/wcm/imf
Path
/bin/wcm/imf/SampleTest
@Component(metatype = false)
@Service
@Properties({
@Property(name = "sling.servlet.paths", value = "/bin/wcm/imf/SampleTest"),
@Property(name = "sling.servlet.methods", value = "GET")
})
public class SampleTestServlet extends SlingAllMethodsServlet {
private final static Logger log = LoggerFactory.getLogger(SampleTestServlet.class);
@Reference
protected SlingSettingsService settingsService;
@Override
protected void doGet(SlingHttpServletRequest request,
SlingHttpServletResponse response) throws ServletException,
IOException {
response.getWriter().println("hi");
}
}