build date | Sun/Oracle JDK Version | OpenJDK Version | HotSpot VM Version |
---|---|---|---|
2006-11-29 | 1.6.0-b105 | 1.6.0-b105 | |
2007-03-14 | 1.6.0_01-b06 | 1.6.0_01-b06 | |
2007-06-22 | 1.6.0_02-b05 | 1.6.0_02-b05 | |
2007-09-24 | 1.6.0_03-b05 | 1.6.0_03-b05 | |
2007-12-14 | 1.6.0_04-b12 | 10.0-b19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note 1: The following CQ curl commands assumes a admin:admin username and password. | |
Note 2: For Windows/Powershell users: use two "" when doing a -F cURL command. | |
Example: -F"":operation=delete"" | |
Note 3: Quotes around name of package (or name of zip file, or jar) should be included. | |
Uninstall a bundle (use http://localhost:4505/system/console/bundles to access the Apache Felix web console) | |
curl -u admin:admin -daction=uninstall http://localhost:4505/system/console/bundles/"name of bundle" | |
Install a bundle | |
curl -u admin:admin -F action=install -F bundlestartlevel=20 -F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set up your file structure something like this: | |
/apps/your-site/components/page | |
-> yourPage | |
-> clientlibs | |
-> js | |
-> customSidekickDialog.js | |
-> .content.xml | |
-> js.txt | |
-> customDialog.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set up your file structure for the innerParsys component: | |
innerParsys | |
-> parsys | |
-> new | |
- _cq_editConfig.xml | |
- .content.xml | |
- _cq_editConfig.xml | |
- .content.xml | |
- parsys.jsp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.jackrabbit.oak.spi.state.NodeState | |
import java.util.concurrent.atomic.AtomicInteger | |
def countNodes(NodeState n, String path = "/", flush = 5000, AtomicInteger count = new AtomicInteger(0), root = true) { | |
if(root) { | |
println "Counting nodes in tree ${path}" | |
} | |
cnt = count.incrementAndGet() | |
if (cnt % flush == 0) println(" " + cnt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.jackrabbit.oak.spi.commit.CommitInfo | |
import org.apache.jackrabbit.oak.spi.commit.EmptyHook | |
import org.apache.jackrabbit.oak.spi.state.NodeStore | |
import org.apache.jackrabbit.oak.commons.PathUtils | |
def rmNode(def session, String path) { | |
println "Removing node ${path}" | |
NodeStore ns = session.store | |
def nb = ns.root.builder() |
- Download or build oak-run 1.x matching the version you have installed in your Oak environment.
- Stop all AEM instances
- Upload the oak-run to the AEM server if using TarMK or MongoDB server (if using MongoMK)
- Run this command to cleanup unreferenced checkpoints on TarMK:
java -Xmx4096m -jar /apps/staging/oak-run-1.*.jar checkpoints crx-quickstart/repository/segmentstore rm-unreferenced
Clean up unreferenced checkpoints on MongoMK:
- How to Rebuild a Pre-Existing AEM+Mongo Cluster
- or migrate from Tar to MongoDB or MongoDB to Tar"
- or migrate from 5.6.1 or 6.x to 6.x via data migration instead of jar upgrade
- (Mongo to Mongo only) Remove one replica from the replica set and delete/recreate the db
- Remove the replica node from the set: http://docs.mongodb.org/master/tutorial/remove-replica-set-member/
- Validate that no other nodes in the set consider that node to be part of the set anymore. Log into each node in the cluster via mongo shell and run rs.status() to validate that the node that was taken out is not in the cluster any longer.
- Drop the aem database on that node http://docs.mongodb.org/manual/reference/command/dropDatabase/
- Re-add the database with the correct user permissions (do not add the mongo instance back to the replica set)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.gson.JsonArray | |
import com.google.gson.JsonObject | |
/** | |
* This script will print a JSON array of all namespaces on current AEM instance | |
* Each JSON object in the array will be of the format: | |
* {"prefix":"The namespace prefix", "uri":"The namespace uri"} | |
* | |
*/ |
OlderNewer