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

Standalone CQ5 publish instances without cluster

I am looking for the best solution for having multiple publish instances. I tried shared nothing and shared datastore configurations. Is there any advantages or disadvantages of having 2 or more publish instances without cluster setup? In such a…
nerd
  • 837
  • 6
  • 21
0
votes
0 answers

sling configuration with postgreSQL

I am trying to integrate jackrabbit with PostgreSQL.While integrating I am getting following error. HTTP ERROR 503 Problem accessing /. Reason: Authentication Support service missing. Cannot authenticate request.
Hareesh
  • 113
  • 9
0
votes
1 answer

How to post form data to Apache Sling using a Java servlet

I am trying to POST the data from a html page and post it to a sling using a java servlet.. Note: My webapp is running in tomcat(port 8080), and my sling runs in a different port(8999). my html is a very simple form with just one input box
seshan
  • 99
  • 2
  • 11
0
votes
1 answer

How to use apache sling extension gwt servlet 3.0.0?

I have a GWT project(GWT version 2.4). I want to start up Spray-servlet in server side GWT, but GWT does not support servlet-3.0, therefore I wanted to use org.apache.sling.extensions.gwt.servlet-3.0.0.jar for using servlet-3.0.0. How I can use…
SBotirov
  • 13,872
  • 7
  • 59
  • 81
0
votes
1 answer

Integrated traffic server with apache sling

I need a traffic server to cache page and manages request queue integrated with Apache Sling. Could any body guide me? Thanks in advance.
Babak Behzadi
  • 1,236
  • 2
  • 16
  • 33
0
votes
2 answers

How am I supposed to use a sling repository from a JCR client?

This code snippet: Repository repository = JcrUtils.getRepository("http://localhost:8080"); Session session = repository.login(new SimpleCredentials("admin", "admin".toCharArray())); gives the following…
nostromo
  • 35
  • 8
0
votes
1 answer

Apache Sling stops responding to requests

I used apache sling to create a WCMS and I deployed it on a virtual server. Sometimes apache sling does not responsd any request and it seems to be in a sleep or hibernate mode (when call a url of WCMS nothing happens!!!). I think this issue occurs…
Babak Behzadi
  • 1,236
  • 2
  • 16
  • 33
0
votes
1 answer

Restricting cq5 component data

I have a field in a cq5 component that I don't want made public. Is there any way to restrict a field so its only available through a jsp call or some other method on the server but not available if you request information from a JSON call?
Ben Newman
  • 33
  • 1
  • 3
0
votes
1 answer

Using currentNode with design dialog

I'm doing a simple CQ include which includes my component. But instead of using a content dialog I am using a design dialog. I understand the design dialog properties…
Delmon Young
  • 2,013
  • 5
  • 39
  • 51
0
votes
2 answers

Sling: GET-Parameter never equals to empty

I've got this simple piece of code in my JSP for my CQ5 page, but I can't get it to work properly. I'd like to check if one of the input fields is beeing sent empty but it always outputs "not empty": <% if(slingRequest.getParameter("authorMail") ==…
Ahatius
  • 4,777
  • 11
  • 49
  • 79
0
votes
1 answer

Sling - Using pageManager to find page path

I'm creating a simple class that simply gets the root of the page that you are on. Most of my pages are three levels deep and I need to always find the root. I'm using slings resource resolver to adapt to the PageManager class. Once I adapt to the…
Delmon Young
  • 2,013
  • 5
  • 39
  • 51
0
votes
1 answer

Linux | CQ 5.6 | Class Loader Issue

Has anyone face issues on Linux with class loader or loading of properties file in CQ 5.6? Here is what we are trying: We have config node that is "com.a.b.c.DataConfig" When we try to load this configuration on Linux, it gives Null Pointer…
Rupesh
  • 2,627
  • 1
  • 28
  • 42
0
votes
1 answer

CQ5 how does the sling resolver find an asset in the repository?

I am trying to get the last modified time for a resource from the JCR based upon the sling address provided within the provided tag link. For example, if we have a cq page, with a parsys containing an image tag, the src tag provides…
Bayani Portier
  • 660
  • 8
  • 18
0
votes
1 answer

read another node while traversing xml for PDF generation through page2fo.xsl

I am trying OOTB PDF rewriter component and able to generate a PDF for simple use-case however it is not working in some scenarios. Scenario1:able to generate the PDF when the page has data stored in a single node. Scenario2: unable to generate the…
apurvc
  • 740
  • 4
  • 12
0
votes
2 answers

Apache Sling: unresolved package after Installing SlingShot sample bundle

I am Unable to run slingshot sample , apache sling i have followed these steps Click here! the package got installed but it didn't get activated. The detail collapsed view of bundle shows org.apache.sling.api.resource,version=[2.2,2) -- Cannot be…
Swesh
  • 150
  • 1
  • 17