Hi,
I have created a Sling Default Servlet to search Assets in DAM. I have used these OSGI DS Annotations:
@Component(service=Servlet.class,
property={
Constants.SERVICE_DESCRIPTION + "= Servlet to search for assets in a specified location in DAM.",
"sling.servlet.methods=" + HttpConstants.METHOD_GET,
"sling.servlet.resourceTypes="+ "sling/servlet/default",
"sling.servlet.selector="+ "findasset",
"sling.servlet.extensions=" + "json"
})
The servlet is working fine and i am able to fetch the data. But the problem is that I am not able to access siteadmin (http://localhost:4502/siteadmin ) and I am also not able to upload or edit any asset in the DAM (http://localhost:4502/assets.html/content/dam ).
Somebody please help me out in solving this problem.