2012-07-27 10 views
5

私は次のエラーが発生しており、解決できませんでした。グーグルでは実りありませんでした。助けてください。spring-mongo-1.0.xsdエラー

Referenced file contains errors (http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd). For more 
information, right click on the message in the Problems View and select "Show Details..." 

これは私のコードです。

<?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:p="http://www.springframework.org/schema/p" 
    xmlns:mongo="http://www.springframework.org/schema/data/mongo" 
    xmlns:context="http://www.springframework.org/schema/context" 
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
    http://www.springframework.org/schema/data/mongo 
    http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd 
    http://www.springframework.org/schema/context 
    http://www.springframework.org/schema/context/spring-context-3.0.xsd"> 

    <!-- replica-set="localhost:27017,localhost:27018" --> 
    <context:annotation-config /> 
    <mongo:repositories base-package="com.kensho.dms.*" /> 
    <mongo:jmx/> 
    <mongo:mongo host="192.168.55.2" port="27017" /> 
    <mongo:db-factory dbname="kenshodb" mongo-ref="mongo" /> 
    <bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate"> 
     <constructor-arg name="mongo" ref="mongo"/> 
     <constructor-arg name="databaseName" value="kenshodb"/> 
    </bean> 
    <bean id="mongoLoggedInUserDAO" class="com.kensho.nosql.MongoUserDAOImpl" /> 


</beans>  

私は多くのものを抱きしめました。私はその依存関係の問題を感じています。助けてください。

答えて

13

私は数日前から同じ問題を抱えていましたが、1.0から1.1に変更してから問題はなくなりました。彼らはxsdファイルを変更したようです。

http://www.springframework.org/schema/data/mongo/spring-mongo-1.1.xsd 
+0

素晴らしいです。どうもありがとうございました – Droidme

+0

神様に感謝しています。 – stackoverflow

+0

ありがとうございました。 – Holm