Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 70636 invoked from network); 31 May 2007 11:33:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 May 2007 11:33:09 -0000 Received: (qmail 4503 invoked by uid 500); 31 May 2007 11:33:12 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 4482 invoked by uid 500); 31 May 2007 11:33:12 -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 4473 invoked by uid 99); 31 May 2007 11:33:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2007 04:33:12 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ijonas.kisselbach@gmail.com designates 209.85.132.244 as permitted sender) Received: from [209.85.132.244] (HELO an-out-0708.google.com) (209.85.132.244) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2007 04:33:07 -0700 Received: by an-out-0708.google.com with SMTP id c37so71420anc for ; Thu, 31 May 2007 04:32:46 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=p1UCWzR+47S4LkrQDpDuq1ACoz01/5LWkIsdvRxvs6t218PFyNcFzM5qsuN6eu+x2VB9ZGhAq3I1fF1Ppv+yOGB0YAHqZO8WHE2IRFoSuD0CkCDyT6px+Y7jC7Pm155W9v1SGVO9U5Rwb5DdAI0NWhZWUj+EhZzDaLjO5ikJSXU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=fQbcca5e/11iiGqZnIn9sCoRCNG3HSF29dOvAlHaCOZThMOG+xVIeot72IHjZavkh+N148f6I34nffnaLLWGvyNkZRagu6HtxjvKQw71U4HcwCBT9eoB/BNy2wjXqUO7ITbmYt8AaMR14twzjOxCkMbZY9lnfE0fKNrr8NAQSWQ= Received: by 10.78.97.7 with SMTP id u7mr316868hub.1180611165986; Thu, 31 May 2007 04:32:45 -0700 (PDT) Received: by 10.78.186.20 with HTTP; Thu, 31 May 2007 04:32:45 -0700 (PDT) Message-ID: <510d57f60705310432q503b6de0he464f5370bda31bb@mail.gmail.com> Date: Thu, 31 May 2007 12:32:45 +0100 From: "Ijonas Kisselbach" To: users@jackrabbit.apache.org Subject: Jackrabbit+WebDAV under JBoss 4.0.5 problem (solved) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11543_32352832.1180611165962" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_11543_32352832.1180611165962 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, You may remember me from last week... I'm the one trying to deploy a Model-2 JCA-based Jackrabbit on JBoss 4.0.5 and then get the WebDAV servlets connecting via JNDI to the shared repository. After sifting through the Jackrabbit source code I think I've solved the WebDAV deployment problem... If you take a look at http://svn.apache.org/repos/asf/jackrabbit/tags/1.3/jackrabbit-webapp/src/main/java/org/apache/jackrabbit/j2ee/JNDIConfig.java it contains a method: public void init(ServletConfig ctx) throws ServletException { super.init(ctx); // add all params whose name starts with 'java.namming.' to the env Enumeration enum = ctx.getInitParameterNames(); while (enum.hasMoreElements()) { String name = (String) enum.nextElement(); if (name.startsWith("java.naming.")) { jndiEnv.put(name, ctx.getInitParameter(name)); } } // enable jndi if url is specified jndiEnabled = jndiEnv.containsKey("java.naming.provider.url"); } The last statement "activates" the JNDI configuration IF AND ONLY IF the " java.naming.provider.url" parameter has been specified. I've add the solution to http://wiki.apache.org/jackrabbit/JackrabbitOnJBoss But it seems odd needing to specify the JNDI environment variables when deployed __inside__ JBoss. Hope it helps, Ijonas Kisselbach. ------=_Part_11543_32352832.1180611165962--