aem

How do I add the command XX:-UseSplitVerifier to an OSGi bundle built in CRXDE Lite (CQ5.5)?

孤人 提交于 2019-12-13 05:08:15
问题 I am trying to create a custom WCMCommand in CQ5.5. I have JDK1.7 and am getting the dreaded VerifyError. ERROR [OsgiInstallerImpl] pack.age.name [pack.age.name] Error during instantiation of the implementation object (java.lang.VerifyError: Expecting a stackmap frame at branch target 13 in method pack.age.name.unbindRepo(Lorg/apache/sling/jcr/api/SlingRepository;)V at offset 5) java.lang.VerifyError: Expecting a stackmap frame at branch target 13 in method pack.age.name.unbindRepo(Lorg

CQ5 OSGi bundle does not start:- Activator cannot be found

我与影子孤独终老i 提交于 2019-12-13 04:34:43
问题 I am working on a Mollom captcha implementation (as a component), for which I need an OSGI bundle created. I created one using eclipse (because it required a couple of more jars so as to compile correctly). Although the bundle was created without any errors, when I upload the jar onto the OSGi console, it just does not start. I opened up error.log and I find this:- 27.09.2013 12:10:33.264 *INFO* [pool-6-thread-34-com/day/cq/replication/job/publish(com/day/cq/replication/job/publish)] com.day

how to call sling model only once

佐手、 提交于 2019-12-13 03:53:08
问题 Lets say I have a component A and component B. In component A, html file I am writing data-sly-use.head="com.Mymodel" now in Component B also I need to use the same class, so in html file I have written data-sly-use.head="com.Mymodel" Component A and Component B can be available in a page or may not be available at a time. What I want is that if both Component A and B present in a page then I do not want to initialise Sling model (com.Mymodel) twice. I would like to initialise only one time.

AEM Tag picker widget on a page

心已入冬 提交于 2019-12-13 03:47:27
问题 I am working on a functionality where the user selects a Tag from a namespace and clicks a button. Currently, we have a text box where user needs to enter the tag ID. But its not convenient for them to know the tagID. Is there any way to create a Tags Widget (or a Path Browser ) on a component HTML, similar to how it works in the dialog ? I know Coral UI dependencies may be an issue, but just curious if we can achieve that. I've never done something like this. 回答1: I hadwritten a similar

How to take an action on a deleted Asset in Adobe Experience Manager?

痴心易碎 提交于 2019-12-13 03:37:13
问题 I have a system external to Adobe Experience Manager that I need to make a quick call to whenever an Asset is deleted in AEM. Not being an expert in AEM, my options feel very limited. I've attempted to create a workflow with a step that can make the appropriate call, and have hooked up a Launcher to listen for a Remove event on any "dam:Asset" type nodes from a certain path in AEM. That means I've got a Java class I've pushed into AEM that extends WorkflowProcess, and is called as part of

AEM: How to find the nodes with property name “customProp” and empty property value, using query builder?

别等时光非礼了梦想. 提交于 2019-12-13 02:06:08
问题 There are nodes which have properties but no values. I am trying to avoid those nodes in query builder using, path=/content/ type=cq:Page 2_property=jcr:content/customProp 2_property.operation=exists 3_property=jcr:content/customProp 3_property.operation=unequals 3_property.value= But the empty value condition (3_property) is being ignored. How this can be achieved? 回答1: I had the issue to search for all occurrence of a propertiy with no value. I constructed the following SQL2 Query: SELECT *

How to deploy changes to java file into AEM?

放肆的年华 提交于 2019-12-13 02:03:37
问题 I'm working with AEM for the first time. I am using Adobe Brackets for editing one of the ZIP files I was given that included jcr_root and META-INF . This ZIP file has no pom.xml . Everything so far is fine with the zip file....I can make changes to JSP and JS etc. and they take effect right away. However, I would like to change one of the java files. The change to JAVA files doesn't seem to be taking effect. I've restarted CQ instance but that doesn't seem to be working. And there is no POM

How to add multivalue property to jcr node through java code?

北城以北 提交于 2019-12-13 00:42:16
问题 According this answer https://stackoverflow.com/a/18726682/2674303 I see that I can add property to node in crxde. But I don't understand how can I add multivalue property(array) to node. Please, help. 回答1: You have to create an array of values: ValueFactory valueFactory = session.getValueFactory(); Node node = session.getNode("/content/path/to/my/node"); Value[] values = new Value[3]; values[0] = valueFactory.createValue("First value"); values[1] = valueFactory.createValue("Second value");

Drop Target Issue

五迷三道 提交于 2019-12-13 00:23:19
问题 I've just started using Adobe CQ5 and am working my way through getting my first custom components rolled... I've found a bug that I can't figure out and was hoping someone could shed some light on it. Basically, I've defined a custom image and associated drop area, but couldn't figure out how to do a placeholder image. So I did this: <% if (leftImage != null && leftImage.hasContent()) { leftImage.draw(out); } else { leftImage.setSelector(".img"); out.print("<img class=\"" + DropTarget.CSS

Configuring Static replication agent in AEM6.1 author

那年仲夏 提交于 2019-12-13 00:15:47
问题 I'm trying to create file system of my website in my local machine and I have configured static replication agent in author following this http://www.wemblog.com/2012/02/how-to-use-static-agent-in-cq-wem.html document. When I click activate on a page nothing is getting created in the target folder. In logs, it is showing NOTHING TO REPLICATE for all the pages. I tried the same agent with geometrixx site and the content is created for it. Help me with the solution. Thanks in advance 回答1: Have