Sling Default Servlet problem with DAM and siteadmin | Community
Skip to main content
Level 2
February 26, 2018
Solved

Sling Default Servlet problem with DAM and siteadmin

  • February 26, 2018
  • 2 replies
  • 939 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by rohit_w

Hi,

I later found the issue. Actually the property is "sling.servlet.selectors" not "sling.servlet.selector".

2 replies

kautuk_sahni
Community Manager
Community Manager
February 27, 2018

Can you share the package to reproduce this? Nothing that I am aware of!!

Kautuk Sahni
rohit_wAuthorAccepted solution
Level 2
February 27, 2018

Hi,

I later found the issue. Actually the property is "sling.servlet.selectors" not "sling.servlet.selector".