Questions tagged [sling]

Apache Sling is a web framework that uses Java Content Repository to store and manage content. It also uses OSGi (Apache Felix) for dynamic loading.

Description

Apache Sling is a web framework that uses a Java Content Repository , such as Apache Jackrabbit , to store and manage content.

Sling applications use either scripts or Java servlets, selected based on simple name conventions, to process HTTP requests in a RESTful way.

The embedded Apache Felix OSGi framework and console provide a dynamic runtime environment, where code and content bundles can be loaded, unloaded and reconfigured at runtime.

As the first web framework dedicated to JSR-170 Java Content Repositories, Sling makes it very simple to implement simple applications, while providing an enterprise-level framework for more complex applications.

Links

863 questions
0
votes
1 answer

Apache Felix not binding my configuration correctly - wrong inputstream version

I had a bundle deployed in an Apache Felix (Sling, in fact) host. The bundle contained some configurable elements, and its version was 2.0. I have updated the bundle to v2.0.1 for some small code changes, and now the bundle will not pick up its…
Nick Golding
  • 53
  • 1
  • 6
0
votes
1 answer

Apache Sling sql uery via json for lastModified

I have been successful ordering the results by the jcr:lastModified field. I cannot seem to filter the results by the lastModified date field. The query looks like the following. //Found at…
Paul Johnson
  • 121
  • 5
-1
votes
1 answer

What is a Resource Resolver API interface in AEM? What is it's significance

What exactly are resources and resource resolvers. Can you please elaborate the same and essential terms relating to it? Wanted to know how resource resolver works and if possible it's usage with an example.
Manasi
  • 3
  • 1
-1
votes
1 answer

Apache Sling: Sling error when configuring Oracle Wallets - java.lang.NoClassDefFoundError: oracle/security/pki/OracleWallet

I'm trying to configure a DB Connect connection that uses Oracle Wallets, but keep running into the following error in the apache sling error log: PKI classes not found. To use 'connect /' functionality, oraclepki.jar must be in the classpath:…
-1
votes
1 answer

AEM internal Redirect and Resolve nested content

I have the below content structure. site - de - category1 - 2001 - quarter1 - blog_about_vegan - blog_about_flowers …
Jithin Kumar
  • 49
  • 1
  • 9
-1
votes
1 answer

Sling authentication handler vs Login module

I read many blogs and post in Stackoverflow but could not understand exactly which one is appropriate in which situation. What I understood till now is, custom authentication handler should be written when user needs to redirected to 3rd party…
Pakira
  • 1,951
  • 3
  • 25
  • 54
-1
votes
2 answers

How do I get a selector from a sling Resource

I have two Sling Models: @Model(adaptables = {SlingHttpServletRequest.class, Resource.class}, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL) public class VideoGridItem { @SlingObject private Resource resource; @SlingObject …
Kramer
  • 927
  • 2
  • 13
  • 30
-1
votes
2 answers

Strip HTML extension from outgoing URL

I am using AEM. I have configured some vanity URL's with redirect. Ex: /coaties > /content/geometrixx-outdoors/women/coats/winter-coat.html Also in the web server, I have made configuration to strip HTML extension so my web-server removes the html…
Prashant Onkar
  • 414
  • 3
  • 15
-1
votes
2 answers

How to use selector

Let's say, I have a template A and sling:resourceType is /apps/myproject/components/basePage. In this component I've body.html and header.html and footer.html script included through slightly in body.html. Now I am creating another template B, and…
Pakira
  • 1,951
  • 3
  • 25
  • 54
-1
votes
1 answer

How to programatically access JCR 283 compliant CRX repository?

I am working with Adobe LiveCycle ES4 which uses a CRX repository. I wanted to write a Java program that could access the content of the JCR 283 compliant CRX repository. The application runs on WebSphere server. Many websites mention JCR-1.0 API to…
-1
votes
1 answer

How to create content in apache sling using java program

I am new to apache sling i want to create content(node) using java program and that to be stored in jackrabbit
-1
votes
1 answer

Get the list of permission given to a group for a page in AEM

I have a requirement to go to a particular page and find out the permissions granted to a group for that page programmatically. This I have to achieve in AEm6.0. Please give some code snippets which can help me in achieving this. Any help is highly…
Tushar
  • 151
  • 2
  • 18
-1
votes
2 answers

Resource Resolver returned as null via sling models

Resource Resolver is being returned as null while injecting through sling models, let me know if anything I am missing : I tried with : @Model(adaptables = Resource.class) public class Navigation { @Inject @Source("sling-object") private…
user3837000
  • 121
  • 3
  • 12
-1
votes
1 answer

OSGI embedded classes not resolving

We are using Day cq. It uses Apache Felix osgi container. In one of our projects we are using Rhino for serverside scripting. Day already comes with Rhino library included as part of org.apache.sling.scripting.javascript - here Rhino library is part…
sanat
  • 91
  • 7
-1
votes
1 answer

Problems with Discover Sling in 15 minutes

I have problems with creating a content node with cURL. I execute the following command: curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some title" http://localhost:8080/content/mynode But I can't see…
Ventsislav Marinov
  • 594
  • 1
  • 6
  • 14
1 2 3
57
58