Results 1 to 5 of 5

Thread: spring-tools.xsd errors

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Location
    Vicenza, Italy
    Posts
    84

    Default 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. #2
    Join Date
    Dec 2012
    Posts
    5

    Default

    Hi Stefano,

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

    Thanks

  3. #3
    Join Date
    Jun 2009
    Location
    Vicenza, Italy
    Posts
    84

    Default

    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

  4. #4
    Join Date
    Dec 2012
    Posts
    5

    Default

    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.

  5. #5
    Join Date
    Jul 2005
    Location
    Austin, TX
    Posts
    137

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •