I installed wknd by running "
mvn clean install -PautoInstallSinglePackage
with code from https://github.com/adobe/aem-guides-wknd
This puts the site on the author instance.
then I started a separate publish instance with "java -jar aem-publish-p4503", and manually added the required replication agent for the cloud SDK using this info: https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/local-development-env...
The replication test works.
If I try to replicate pages, it "seems" to work, and in the log files on publish I see:
29.03.2021 22:09:12.233 *INFO* [127.0.0.1 [1617048552217] POST /bin/receive HTTP/1.1] com.day.cq.replication.impl.content.durbo.DurboImporter imported content in 16ms for durbo request on path: /content/wknd/ca/en/adventures/ski-touring-mont-blanc
29.03.2021 22:09:12.233 *INFO* [127.0.0.1 [1617048552217] POST /bin/receive HTTP/1.1] com.day.cq.replication.impl.servlets.ReplicationServlet Processed replication action in 16ms: ACTIVATE of /content/wknd/ca/en/adventures/ski-touring-mont-blanc
29.03.2021 22:09:20.005 *INFO* [CommitStats] CommitStats 58 commits by user admin from location HTTP-POST:/bin/receive [CommitStats overhead was 1ms = 17.0us / commit]
However, when I click on Sites on the publish instance, there are no sites, and I see this error in the logs:
9.03.2021 22:09:22.081 *ERROR* [[0:0:0:0:0:0:0:1] [1617048561986] GET /sites.html/content HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught Throwable
javax.servlet.ServletException: Failed executing script /libs/cq/Page/Page.jsp: java.lang.NullPointerException
at org.apache.sling.servlets.resolver.bundle.tracker.internal.BundledScriptServlet.service(BundledScriptServlet.java:82) [org.apache.sling.servlets.resolver:2.7.10]
at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:552) [org.apache.sling.engine:2.7.2]
If I try to access any of the pages directly, e.g:
http://localhost:4503/content/wknd/ca/en/adventures/ski-touring-mont-blanc/
I get this:
Forbidden
Cannot serve request to /content/wknd/ca/en/adventures/ski-touring-mont-blanc/ in org.apache.sling.servlets.get.DefaultGetServlet
Request Progress:
I have not had problems with the non-cloud SDK, but not having any luck using the cloud SDK. Any ideas?
Solved! Go to Solution.
Views
Replies
Total Likes
OK, found the solution. Replication only replicates pages. The various documents on replication dont mention that you also need to replicate packages. This can be done in one of two ways:
1) find the packages in package manager on author, click more, then "replicate".
2) mvn clean install -PautoInstallSinglePackageAuthor
Views
Replies
Total Likes
If you go to the publish crxde, do you see the wknd pages under /content ?
OK, found the solution. Replication only replicates pages. The various documents on replication dont mention that you also need to replicate packages. This can be done in one of two ways:
1) find the packages in package manager on author, click more, then "replicate".
2) mvn clean install -PautoInstallSinglePackageAuthor
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies