jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chunshui yu <yuchuns...@yahoo.com.cn>
Subject how to config the security properties of jackrabbit jca connection to remove the NullPointerException
Date Thu, 08 Mar 2007 12:47:17 GMT
I want to deploy the jackrabbit 1.2.2 to weblogic 9.2. my steps include:

1, modify HomeDir and ConfigFile in weblogic-ra.xml(in jackrabbit-src-1.2.2.zip), then add
weblogic-ra.xml to jackrabbit-jca-1.2.2.rar

2, deploy the rar to weblogic

3, an exception was thrown like: "Error making initial connections for pool. Reason: java.lang.NullPointerException"

4, then I review the jackrabbit-jca source code and trace it. i found the exception was thrown
when weblogic call JCAManagedConnectionFactory.createManagedConnection(subject, cri), the
"cri" was null! so the NullPointerException was thrown

5, i add the code to the method:
        if (cri == null) {
            Credentials creds = new SimpleCredentials("username", "password".toCharArray());
            String workspace = "default";
            cri = new JCAConnectionRequestInfo(creds, workspace);
        }
   and the exception disappeared

6, i reviewed some documents of weblogic, and found the resource adapter has some security
configuration properties. and obviously the configuration missing from ra.xml and weblogic-ra.xml

7, i think if you can config the resource adapter's security configuration correctly, the
exception will be throw off. and no need to modify the jackrabbit-jca source code.


so i need some help on how to config the security properties in ra.xml and weblogic-ra.xml.

thanks

chunshui



		
____________________________________________________

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