Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

Sling Default Servlet problem with DAM and siteadmin

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi,

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

View solution in original post

2 Replies

Avatar

Administrator

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



Kautuk Sahni

Avatar

Correct answer by
Level 2

Hi,

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