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
4
votes
3 answers

How to produce rendered output from a Sling POST in AEM?

It seems like Sling expects every form POST to modify the JCR. So the expected/standard behavior would be a POST-redirect-GET, which is fine for most things. However, I need to be able to POST to AEM and then use the data in that POST to create a…
jedatu
  • 4,053
  • 6
  • 48
  • 60
4
votes
3 answers

CQ5.5 get .infinity.json of a resource in a servlet

If we had component resource set up as such: mycomponent mycomponent.jsp mycomponent.JSON.jsp We can Assume it will work as such: /path/to/mycomponent.html => see html /path/to/mycomponent.json => see my json Also in a servlet we might be…
Brodie
  • 8,399
  • 8
  • 35
  • 55
4
votes
5 answers

Is it possible to place variables into a resource path within a sling servlet?

We are trying to provide a clean URI structure for external endpoints to pull json information from CQ5. For example, if you want to fetch information about a particular users history (assuming you have permissions etc), ideally we would like the…
Bayani Portier
  • 660
  • 8
  • 18
4
votes
3 answers

Apache Sling JCR browser required

I've just started learning sling. The biggest problem to me at this stage is to browse JCR repository. Is there any good tool to view what is inside repo, showing resources and all properties? I need something like this…
Hubert
  • 1,125
  • 5
  • 17
  • 36
4
votes
1 answer

Sling vs CMIS as a REST interface for Apache jackrabbit

If I get it, Apache Sling acts a REST CRUD interface for a Jackrabbit JCR repository. As there already exists a RESTful protocol (CMIS in its AtomPub implementation) to work with JCR repositories, apart from the view/templating layer, is there any…
gpilotino
  • 13,055
  • 9
  • 48
  • 61
4
votes
3 answers

Setting properties in Adobe CQ5

I'm working on CQ5 based app, which is a whole new area for me as I was mainly working on Spring based web-apps before. The app is maven project based on Blue-prints…
Kostya
  • 103
  • 1
  • 12
4
votes
2 answers

AuthenticationHandler: sling always redirecting to gemotrix login page

I am implementing login functionality for my site using Custom AuthenticationHandler. When I give credentials and submit the form the AuthenticationHandler is always redirecting to geometrix site and asking geometrix credentials. Even I tried…
Raja
  • 61
  • 1
  • 5
4
votes
2 answers

How to deploy and access a Jersey REST OSGi bundle into Adobe CQ?

I have an OSGi bundle (running under Felix) using Jersey and providing a RESTful resource. This all works fine and I can invoke the service through my browser and get back a JSON response. Now, what I would like to do is deploy that same bundle…
KJQ
  • 447
  • 1
  • 7
  • 28
4
votes
1 answer

How to run the 46 line blog tutorial of Apache Sling?

I'm trying to go through this tutorial of Apache Sling and I'm stuck at the beginning. I can't display the blog form in my browser. Instead, I get the following message: Resource dumped by HtmlRendererServlet Resource path:…
4
votes
3 answers

Using Sling Launchpad for production

I was trying to understand deployment scenarios for Sling/JCR when I started wondering if I could simply use the Sling Launchpad and simply start the server using the jar. My project needs simplicity more than performance, but is there something…
3
votes
3 answers

"resource.adaptTo" NullPointer Unit test AEM Sling Model Java

I'm doing a pretty basic Unit test for Sling Model in AEM, so, when I run the test I get the following error: [ERROR] CtaModelTest.testGetText:36 NullPointer This is my Java code, the Model is a very basic Sling AEM Model, I'm using the…
e-israel
  • 623
  • 10
  • 30
3
votes
2 answers

Using FreeMarker with Apache Sling

I'm using a Content Repository (Adobe CQ5) that has Apache Sling underneath. I'd like to render web pages using FreeMarker instead of JSP. For that to work should I upload the OSGi Freemarker extension to Sling, which is to be found in the…
Luciano
  • 8,552
  • 5
  • 32
  • 56
3
votes
2 answers

Apache Jackrabbit - Where are my files?

I'm new to Jackrabbit and I'm using Sling to access the repository through its REST interface. I've figured out how to add and access various files to the repository, but my question is, where is Jackrabbit physically storing these files? Here is…
Vinnie
  • 12,400
  • 15
  • 59
  • 80
3
votes
3 answers

How to solve error during include of component in Adobe Experience Manager?

I am using Adobe Experience Manager with Eclipse, I've followed the instructions given in this tutorial https://docs.adobe.com/content/help/en/experience-manager-learn/getting-started-wknd-tutorial-develop/component-basics.html. Everything was…
Jason Javier
  • 75
  • 1
  • 2
  • 7
3
votes
1 answer

AEM Sling Resource Resolver Mapping Methods

I have been poking around the Internet for some time looking for more information on configuring Sling Resource Resolver mappings. From what I found online and my experience there are currently two methods accomplishing this in AEM. Through the…
nabello
  • 716
  • 11
  • 29