Expand my Community achievements bar.

Not able to connect to remote AEM Repository

Avatar

Level 3

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

3 Replies

Avatar

Level 10

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

Level 10

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

Level 3

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