Hi List: I'm using jackrabbit as a public repository for all the web applications on same tomcat server , and the repository object was returned correctly from JNDI with ctx.lookup("java:comp/jcr/repository") method , but the jcr.LoginException was thrown when I use SimpleCredential object login the repository with "javax.jcr.LoginException: [EMAIL PROTECTED] not available " . So does anyone else encountered this matter before and how to resovle it.
code snippet : in servlet: InitialContext context = new InitialContext(); Context environment = (Context) context.lookup("java:comp/env"); Repository repository = (Repository) environment.lookup("jcr/repository"); Session s = repository.login(new SimpleCredentials("user","pass".toCharArray())); program env : tomcat 5.0.28 + jetspeed 2.0 M3 +jackrabbit note : I've added the login module config infomation in jetspeed jaas config file Jetspeed { org.apache.jetspeed.security.impl.MyLoginModule required debug="true"; }; Jackrabbit { org.apache.jackrabbit.core.security.SimpleLoginModule required anonymousId="anonymous" debug="true"; };