Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Sling Default Servlet problem with DAM and siteadmin

rohit_w
Level 2
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
rohit_w
Correct answer by
Level 2
Level 2

Hi,

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

View solution in original post

0 Replies
kautuk_sahni
Community Manager
Community Manager

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

rohit_w
Correct answer by
Level 2
Level 2

Hi,

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

View solution in original post