We've deployed jackrabbit both in a Model 1 deployment and now Model 2 via
JCA on JBoss 4.0.4GA. Note that we're using JcrTemplate from the
Springmodules project, which is configured with the actual user/password
auth. credentials. Upon on initial deployment to a clean JBoss install we
received a JBoss error regarding a missing users.properties. I posted a
question to this list (search the archives, back about 2 months) but quickly
found the resolution was to create users.properties roles.properties andin
the conf directory.
jackrabbit在tomcat5,6中测试均正常,在jboss4中就遇到了missing roles properties 错误
看了看apache mail list 发现有人还是遇到了问题,在conf文件夹下面建立users.properties 和 roles.properties文件,roles.properties不用理会,users.properties 中写上你的jackrabbit中login时候设置的账号密码,格式如下:
username=password
比如我的:
public static Session getSession() throws IOException, LoginException, RepositoryException{
if(session==null){
Repository r = new TransientRepository();
session = r.login(
new SimpleCredentials("document","document2009".toCharArray()));
}
return (javax.jcr.Session)session;
}
那么,document=document2009