Announcement Announcement Module
Collapse
No announcement yet.
spring-tools.xsd errors Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring-tools.xsd errors

    Hi everybody.
    Sorry if this isn't the right place for this issue, but I didn't know where to post it.

    When validating my app config xml, I get the error

    HTML Code:
    Referenced file contains errors (jar:file:/home/stefano/.m2/repository/org/springframework/spring-beans/3.1.1.RELEASE/spring-beans-3.1.1.RELEASE.jar!/org/springframework/beans/factory/xml/spring-tool-3.1.xsd)
    The details of this error:

    HTML Code:
    sch-props-xorrect.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of [url]http://springframework.org/schema/tool,annotation[/url] | Line 17
    
    sch-props-xorrect.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of [url]http://springframework.org/schema/tool,typedParameterType[/url] | Line 37
    
    sch-props-xorrect.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of [url]http://springframework.org/schema/tool,assignableToType[/url] | Line 41
    
    sch-props-xorrect.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of [url]http://springframework.org/schema/tool,expectedMethodType[/url] | Line 54
    
    sch-props-xorrect.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of [url]http://springframework.org/schema/tool,exportsType[/url] | Line 80
    
    sch-props-xorrect.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of [url]http://springframework.org/schema/tool,ergistersScopeType[/url] | Line 103
    The most strange thing is that the error disappears when I get rid of the section about the repositories (obviously this is not a solution)

    HTML Code:
    <jpa:repositories base-package="...." />
    where jpa namespace is "http://www.springframework.org/schema/data/jpa" located at "http://www.springframework.org/schema/data/jpa/spring-jpa-1.1.xsd".

    Is there anyone who can hep me with this problem?

    Thanks,
    Stefano

  • #2
    Hi Stefano,

    I'm experiencing the exact same issue, did you manage to find a solution?

    Thanks

    Comment


    • #3
      Strange, I thought I yet posted the solution...
      It was a problem of conflict between dependencies.
      I can't say exactly the dependencies you have to exclude: I suggest to open POM -> Dependency Hierarchy and check all the conflicts keeping only the last version of spring-beans.
      In my case, it was spring-security that held an obsolete dep to an older version of spring-beans if I remember correctly.

      Hope this helps.

      Bye,
      Stefano

      Comment


      • #4
        Tried different combinations with no success so far. I tend to think it has something to do with spring-data version not getting along with my other spring jars. Since it is not s show stopper I guess I'll ignore it for the time.
        Thank you anyways.

        Comment


        • #5
          I'm seeing it too, now: http://forum.springsource.org/showth...-3-1-0-RELEASE

          Comment

          Working...
          X