jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ijonas Kisselbach" <ijonas.kisselb...@gmail.com>
Subject Jackrabbit+WebDAV under JBoss 4.0.5 problem (solved)
Date Thu, 31 May 2007 11:32:45 GMT

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


it contains a method:

    public void init(ServletConfig ctx) throws ServletException  {
        // 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.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message