无法创建bean嵌套异常是:org.apache.jackrabbit.core.config.ConfigurationException

时间:2016-03-09 05:09:23

标签: java spring hibernate

我正在使用OpenSource项目,我正在尝试在tomcat服务器中运行war文件。我收到了错误:

  

在URL中定义名称为'repository'的bean时出错   [文件:/ E:/OpenSoa%20Project/openv3/openSOAsrc/repository/web/target/repository-webapp-1.2-SNAPSHOT/WEB-INF/classes/applicationContext-jcr.xml]:   调用init方法失败;嵌套异常是   org.apache.jackrabbit.core.config.ConfigurationException:文件系统   初始化失败:无法初始化文件系统:失败   初始化文件系统

我已粘贴以下applicationContext-jcr.xml文件的内容

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
            http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"
       default-lazy-init="false">

    <!-- Repository -->
    <bean id="repository"
        class="org.springmodules.jcr.jackrabbit.RepositoryFactoryBean">
        <property name="configuration"
            value="classpath:jackrabbit-repository.xml" />
        <property name="homeDir"
            value="file:${jcr.home}/jackrabbit" />
    </bean>

</beans>

0 个答案:

没有答案