We've deployedjackrabbitboth 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.propertiesandin
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
比如我的:
private static Session session = null; 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
本文解决了在JBoss 4.0.4 GA环境中部署Jackrabbit时遇到的missing users.properties和roles.properties错误。通过在conf目录下创建这两个文件并配置正确的登录凭证,问题得以解决。
944

被折叠的 条评论
为什么被折叠?



