Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 73780 invoked from network); 2 Nov 2005 10:03:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Nov 2005 10:03:57 -0000 Received: (qmail 93742 invoked by uid 500); 2 Nov 2005 10:03:56 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 93726 invoked by uid 99); 2 Nov 2005 10:03:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2005 02:03:56 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of harrison.gyao@gmail.com designates 64.233.162.202 as permitted sender) Received: from [64.233.162.202] (HELO zproxy.gmail.com) (64.233.162.202) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2005 02:03:51 -0800 Received: by zproxy.gmail.com with SMTP id x3so1384nze for ; Wed, 02 Nov 2005 02:03:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=fT32/N/cseZ+asUdC8bUf7axm0IGCPFzxJsa1W5EBVCg+27pKiuEGG3VA8okH+7+x+Y+KrYlxulMhW1bQiOfk7S+R6yA6opxSLgsOVRon87sfJnJi++eWtDAMJGhUOX0DVyv9iIi6nrJHrYnnJPO8OpjfMADrB8LfSaxvL0Ec9Q= Received: by 10.37.22.57 with SMTP id z57mr66261nzi; Wed, 02 Nov 2005 02:03:31 -0800 (PST) Received: by 10.37.21.7 with HTTP; Wed, 2 Nov 2005 02:03:31 -0800 (PST) Message-ID: <620728fd0511020203m4c27b1cdg@mail.gmail.com> Date: Wed, 2 Nov 2005 18:03:31 +0800 From: Yao Harrison To: jackrabbit-dev@incubator.apache.org Subject: Can not login with deployment model 2 ( Shared J2EE Resource ) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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: org.apache.jackrabbit.core.security.CredentialsCallback@b512cb not available " . So does anyone else encountered this matter before and how to resovle it. code snippet : in servlet: InitialContext context =3D new InitialContext(); Context environment =3D (Context) context.lookup("java:comp/env"); Repository repository =3D (Repository) environment.lookup("jcr/repository")= ; Session s =3D 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=3D"true"; }; Jackrabbit { org.apache.jackrabbit.core.security.SimpleLoginModule required =09anonymousId=3D"anonymous" =09debug=3D"true"; };