Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 27765 invoked from network); 24 Jul 2008 23:25:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2008 23:25:38 -0000 Received: (qmail 71320 invoked by uid 500); 24 Jul 2008 23:25:37 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 71296 invoked by uid 500); 24 Jul 2008 23:25:37 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 71283 invoked by uid 99); 24 Jul 2008 23:25:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 16:25:37 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [216.169.137.115] (HELO lpo-relay-04.vmsinfo.com) (216.169.137.115) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 23:24:42 +0000 X-IronPort-AV: E=Sophos;i="4.31,248,1215403200"; d="scan'208";a="9943671" Received: from unknown (HELO nyc-mailbox-02.vmsinfo.com) ([216.169.137.251]) by lpo-relay-04.vmsinfo.com with ESMTP; 24 Jul 2008 19:24:06 -0400 Received: from [10.1.1.14] (unknown [10.1.1.14]) by nyc-mailbox-02.vmsinfo.com (Postfix) with ESMTP id E528EBBF0 for ; Thu, 24 Jul 2008 19:24:04 -0400 (EDT) Message-Id: From: Warner Onstine To: users@jackrabbit.apache.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: configuring jaas? Date: Thu, 24 Jul 2008 16:24:04 -0700 X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org Ok, I know I'm probably doing something stupid here but I can't find any decent tutorials that actually specify what specifically to do other than "Just create a jaas.config file and put in your project". I am currently extending the SimpleWebdavServlet like so: public Repository getRepository() { if (repository == null) { try { repository = createNewRepository(); } catch (NamingException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } catch (RepositoryException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } } return repository; } private Repository createNewRepository() throws NamingException, RepositoryException { String configFile = "repository.xml"; String repHomeDir = "/Users/warnero/test-repo"; Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.jackrabbit.core.jndi" + ".provider.DummyInitialContextFactory"); env.put(Context.PROVIDER_URL, "localhost"); InitialContext ctx = new InitialContext(env); RegistryHelper.registerRepository(ctx, "repo", configFile, repHomeDir, true); return (Repository)ctx.lookup("repo"); } When I attempt to hit the repository at localhost:8080/webdav-spike/repository The servlet comes up with the authentication response, but if I just hit Ok then I get this error: java.lang.NullPointerException org .apache .jackrabbit .server.SessionProviderImpl.getSession(SessionProviderImpl.java:55) org .apache .jackrabbit .webdav .simple .DavSessionProviderImpl.attachSession(DavSessionProviderImpl.java:85) org .apache .jackrabbit .webdav .server.AbstractWebdavServlet.service(AbstractWebdavServlet.java:182) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) I have a jaas.config file located in my web directory (both WEB-INF and classes) : Jackrabbit { org.apache.jackrabbit.core.security.SimpleLoginModule required anonymousId="anonymous"; }; And this is also setup in my repository.xml file All of this is fairly straightforward from the Web site, I can't seem to find in the jackrabbit-webapp an actual jaas.config file in the war, so I'm not sure what I need to do to set this up properly. Thanks in advance! -warner