Expand my Community achievements bar.

I can't access programmatically to AEM JCR

Avatar

Level 2

I am using this example as a guide: https://helpx.adobe.com/nz/experience-manager/6-4/sites/developing/using/access-jcr.html

I attach my code:

Description: EmployeeServlet.java
Link: https://i.imgur.com/2veJaY6.png


Description: EmployeeImpl.java
Link: https://i.imgur.com/hON7yXi.png


This is the pom.xml in "/myProject/core":

Link: https://i.imgur.com/jcJm0dx.png



When I try to access the browser at "http://localhost:4502/crx/server" I can see this:

Description: Apache Jackrabbit Oak 1.8.2
Link: https://i.imgur.com/So1nki1.png


I'm doing tests with Postman:

Link: https://i.imgur.com/ZLXuF4G.png


And this message appears in the server log:

Link: https://i.imgur.com/OoX0ZEy.png


I would greatly appreciate your help. Greetings.

1 Reply

Avatar

Level 10

If you want to modify the JCR (for example - add a node, add a property, etc) from an external Java app - you can follow this article. Make sure that you include the correct Jackrabbit JAR file in your classpath (discussed in the article) .

Adobe Experience Manager Help | Programmatically Accessing Adobe Experience Manager Content using th...

If you want to learn how to build WEB SITES in AEM - follow this:

Getting Started with AEM Sites - WKND Tutorial

PS - the code you are showing in your thread is not referenced in the article you said you are following.