【发布时间】:2014-06-19 16:41:21
【问题描述】:
我正在运行独立服务器并尝试建立连接:
try {
Repository repository = JcrUtils.getRepository("http://localhost:8080/server/");
} catch (RepositoryException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
如中所述:http://wiki.apache.org/jackrabbit/RemoteAccess
但是,我得到:
javax.jcr.RepositoryException: Unable to access a repository with the following settings: org.apache.jackrabbit.repository.uri: "the locla host"
The following RepositoryFactory classes were consulted:
org.apache.jackrabbit.core.RepositoryFactoryImpl: declined
org.apache.jackrabbit.commons.JndiRepositoryFactory: declined
Perhaps the repository you are trying to access is not available at the moment.
我用我的浏览器浏览 jackrabbit 服务器没有问题。
【问题讨论】:
-
你有没有得到这个工作?
标签: java jackrabbit jcr