7 Replies Latest reply on Apr 11, 2013 9:39 PM by smacdonald2008

    trying to access crx.default repository through jcr api

    sug1981

      Hi,

       

      I am not able to login to the crx.default workspace using following code:

       

      Repository rep = JcrUtils.getRepository();

       

      SimpleCredentials creds = new SimpleCredentials(userid, pwd.toCharArray());

          javax.jcr.Session sess = rep.login(creds,"crx.default");

       

      It is giving me following exception:

       

      javax.jcr.NoSuchWorkspaceException: crx.default

      at org.apache.jackrabbit.core.RepositoryImpl.getWorkspaceInfo(RepositoryImpl.java:778)

      at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1482)

      at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:360)

      at DayDataProvider.createJCRNodeSecurity(DayDataProvider.java:682)

      at DayDataProvider.main(DayDataProvider.java:136)

       

      Thanks in advance!

       

      Regards,

      sug1981