aem

javax.jcr.lock.LockException:Precondition Failed

倾然丶 夕夏残阳落幕 提交于 2019-12-24 16:54:19
问题 I am having some issues connecting to the JCR repository within AEM 6.0. When I get to the point of creating a session on the repostory I get a javax.jcr.lock.LockException: Precondition Failed. stacktrace: javax.jcr.lock.LockException: Precondition Failed at org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConverter.java:109) at org.apache.jackrabbit.spi2dav.ExceptionConverter.generate(ExceptionConverter.java:51) at org.apache.jackrabbit.spi2dav.ExceptionConverter.generate

How to pass parameters through components

馋奶兔 提交于 2019-12-24 15:22:36
问题 I have a component that instances 3 or more components. I need to pass one parameter for each of his sons Is there a way to do it? For example a code like this: <cq:include path="x" resourceType="compo"> <parameter....> </cq:include> 回答1: There is pretty easy solution: In your main component define variable with request scope ( <c:set var="param" value="10" scope="request" /> ). In component, which you include several times in main one you van use variable ${param} 来源: https://stackoverflow

Saving Data in JCR Node, what am I doing wrong?

為{幸葍}努か 提交于 2019-12-24 11:27:06
问题 I have created and deployed a bundle(Servlet) successfully that accepts username and password from user, now I want to save it in JCR Repository under /content/mydata/ I am getting Exception java.lang.IllegalArgumentException: relPath is not a relative path: {} {}oliver Here is my code public class CustomerJCRAccessImp implements CustomerService { @Reference protected SlingRepository repository; protected static final Logger log = LoggerFactory.getLogger(CustomerJCRAccessImp.class); public

Image quality downgraded after resizing in AEM 6.3

ⅰ亾dé卋堺 提交于 2019-12-24 08:58:16
问题 I'm very new to AEM and I'm trying to reduce the image size by using named transform image servlet in AEM 6.3 . After reducing the image size using resize property, the image quality goes down terribly. I've also tried using attributes sharpen and quality however I'm not able to understand their proper usage even after going through the adobe docs. This is the original image resolution 1600 x 530 This is the image configuration that I've tried so far: bounded-resize:width=1423&height=471

CQ5 Rich Text Editor HtmlRules DocType node being ignored

谁都会走 提交于 2019-12-24 07:59:27
问题 The widget API suggests that you can change the default wrapping tag for the rich text editor content via the DocType object on the HtmlRules object under a rich text editor: defaultEditBlock : String The default edit block type to use; defaults to "p" Added in CQ 5.4. I need to change this so that I can include the content of a rich text editor field within a p tag which has a particular class (you cannot put one p tag inside another so the automatic wrapping breaks out of my predefined p

Is there a way to format multi-valued properties vertically in a Jackrabbit filevault xml doc?

十年热恋 提交于 2019-12-24 07:48:42
问题 We use FileVault xml files in a git repo to configure our custom OSGi services running in our Adobe Experience Manager instance. This works out really well in many cases, but it seems like we have to list multi-valued properties horizontally, in a comma-only-separated string, like this: <?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="sling:OsgiConfig" aLongMultiValuedProperty="[first

Is there a way to format multi-valued properties vertically in a Jackrabbit filevault xml doc?

非 Y 不嫁゛ 提交于 2019-12-24 07:48:19
问题 We use FileVault xml files in a git repo to configure our custom OSGi services running in our Adobe Experience Manager instance. This works out really well in many cases, but it seems like we have to list multi-valued properties horizontally, in a comma-only-separated string, like this: <?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="sling:OsgiConfig" aLongMultiValuedProperty="[first

How can I find out what is causing a certain URL to be resolved to a synthetic resources?

浪尽此生 提交于 2019-12-24 07:07:08
问题 On my Adobe CQ 5 (CQ 5.6) installation, for some reason, there's a URL ( http://localhost:4503/services ) that is getting resolved to a synthetic resource: This is causing CQ to show the following page, rather than a 404 Page Not Found page: What is causing this behavior? 回答1: You get Forbidden error not because of the strange type of the /services , but because you didn't add any extension (you'll get the same result requesting /content/geometrixx ). Let's try to add some extension: .html

SlingModels: Can I inject the SlingHttpServletRequest when adapting from Resource?

℡╲_俬逩灬. 提交于 2019-12-24 06:20:34
问题 I am new to SlingModels and the annotations aren't very clear yet. I am currently trying to transform some basic foundation components from AEM 6.2 to using SlingModels instead. For the image component the foundation JSP uses the SlingHttpServletRequest to set the ImageDoctype. So I tried the following: @Model(adaptables = {Resource.class}) public class ImageModel { @SlingObject private SlingHttpServletRequest request; @SlingObject private Resource resource; } But with this the request is

Maven build failing because of “Failed to execute goal org.apache.felix:maven-bundle-plugin:2.5.3”

岁酱吖の 提交于 2019-12-24 05:58:46
问题 I am getting the below error while building my code- [ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:2.5.3:bundle (default-bundle) on project acs.core: Error(s) found in bundle configuration -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o rg.apache.felix:maven-bundle-plugin:2.5.3:bundle (default-bundle) on project acs .core: Error(s) found in bundle configuration at org.apache.maven.lifecycle.internal.MojoExecutor.execute