Unable to access AEM author using getRepository
Hi All,
Any one could help me in resolving the following issue as I am not able to access the AEM repository using the following code :
Repository repository = JcrUtils.getRepository("http://localhost:4502/crx/server");
//Create a Session- put a valid creds who has the access of the repository
javax.jcr.Session session = repository.login( new SimpleCredentials("admin", "admin".toCharArray()));
after executing this piece of code I am getting the following issue :
2022-02-24 11:12:30.001 ERROR [com.myaem65trainings.core.schedulers.DeleteNodeWithScheduler] Error Captured during :: Unable to access a repository with the following settings:
org.apache.jackrabbit.repository.uri: http://localhost:4502/crx/server
The following RepositoryFactory classes were consulted:
Perhaps the repository you are trying to access is not available at the moment.
Can anyone please help me in this.
Thanks,
Pavan