Sling Default Servlet problem with DAM and siteadmin | Community
Skip to main content
Level 2
Feb 26, 2018 12:35 PM UTC
Solved

Sling Default Servlet problem with DAM and siteadmin

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.
rohit_wAccepted solution
Level 2
Feb 27, 2018 9:14 AM UTC

Hi,

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

2 replies

rohit_wAuthorAccepted solution
Level 2
Feb 27, 2018 9:14 AM UTC

Hi,

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

Translate
kautuk_sahni
Employee
Feb 27, 2018 8:25 AM UTC

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

Translate
Kautuk Sahni