Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Not able to connect to remote AEM Repository

Avatar

Avatar
Validate 1
Level 3
preethamk694748
Level 3

Likes

10 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
preethamk694748
Level 3

Likes

10 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
preethamk694748
Level 3

19-01-2018

Hi team,

I am not able to connect to remote aem repository,I am getting this exception.

Exception Unable to access a repository with the following settings:

org.apache.jackrabbit.repository.uri: http:.//localhost:4503/crx/server

The following RepositoryFactory classes were consulted:

Perhaps the repository you are trying to access is not available at the moment

I have added the below  dependencies, but still getting the same exception,

<dependencies>

     <dependency>

           <groupId>javax.jcr</groupId>

           <artifactId>jcr</artifactId>

           <version>2.0</version>

     </dependency

     <dependency>

           <groupId>org.apache.jackrabbit</groupId>

           <artifactId>jackrabbit-jcr2dav</artifactId>

           <version>2.4.0</version>

     </dependency>

     <dependency>

           <groupId>org.slf4j</groupId>

           <artifactId>slf4j-api</artifactId>

           <version>1.7.5</version>

     </dependency>

</dependencies>

Can anyone please help me out in finding a way to connect to remote aem repository using java

Thanks

Replies

Avatar

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

273 likes

Total Posts

1,502 posts

Correct Reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

273 likes

Total Posts

1,502 posts

Correct Reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
edubey
Level 10

20-01-2018

URL mentioned by you is http:.//localhost:4503/crx/server does not seems to be correct (not sure if extra . (dot) is added by forum)

Also, can you mentioned what you are trying to access from repository of that server?

Avatar

Avatar
Validate 25
MVP
Ratna_Kumar
MVP

Likes

158 likes

Total Posts

755 posts

Correct Reply

134 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile

Avatar
Validate 25
MVP
Ratna_Kumar
MVP

Likes

158 likes

Total Posts

755 posts

Correct Reply

134 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile
Ratna_Kumar
MVP

20-01-2018

Hi,

You need to add the jackrabbit-standalone JAR file in your project. It will work and in fact as praveen said, might be you used wrong URL i.e., http:.//localhost:4503/crx/server (. in between colon and slash)

1399480_pastedImage_0.png

See this article for more information: Adobe Experience Manager Help | Programmatically Accessing Adobe Experience Manager Content using th... (This will work for 6.x too and download latest jackrabbit-standalone JAR file).

Hope this helps!!

Thanks,

Ratna.

Avatar

Avatar
Validate 1
Level 3
preethamk694748
Level 3

Likes

10 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
preethamk694748
Level 3

Likes

10 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
preethamk694748
Level 3

20-01-2018

Ratna Kumar​, edubey

Actually we have  a requirement like , to create a workflow so that when we make any change in content to page in server A and start workflow from that server(payload will be that modified page), then that change should be pushed to server B.(from one author to another author env)

So i thought i might try to establish connection from one server to another server first.

Any suggestions in how to implement the above requirement will be really helpful ,

Thanks