我運行的是獨立的服務器,並試圖建立連接:阿帕奇兔崽子,連接通過WebDAV協議爲localhost
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.
我用webrowser瀏覽jackrabbit服務器沒有問題。
你有沒有得到這個工作? – PinoyCoder