jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Cannot instantiate persistence manager
Date Fri, 26 Mar 2010 11:35:04 GMT
On Fri, Mar 26, 2010 at 10:50, Richa <richasharma048@gmail.com> wrote:
> my code is
>  public void sim() {
>        try {
>               System.out.println("reached to repsitory a");
>            RepositoryImpl rp = new
> RepositoryImpl(RepositoryConfig.create("repository.xml",
> "/home/ksk/ric/testing/apache-tomcat-6.0.24/bin/jackrabbit/"));
>            System.out.println("reached to repsitory 1");
>            Subject sb = Subject.getSubject(AccessController.getContext());
>            System.out.println("2");
>            SessionImpl impl = rp.createSession(sb, "default");
>            System.out.println("3");
>            rp.onSessionCreated(impl);
>            System.out.println("4");
>            UserManagerImpl usmg = new UserManagerImpl(impl, "richa");
>            usmg.show();

Why are you using only Jackrabbit internal classes and methods? Can
you reproduce it with the JCR API?

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message