Results 1 to 10 of 10

Thread: <jpa:repositories> element causing xml error markers in STS 3.1.0.RELEASE

Hybrid View

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

    Exclamation <jpa:repositories> element causing xml error markers in STS 3.1.0.RELEASE

    Hi all,

    I'm getting an xml problem marker that others have seen with SD JPA, and they just started appearing. I saw this first with SD JPA 1.2.0.RELEASE a couple of days ago and now I'm still seeing it with SD JPA 1.3.0.RELEASE.
    Code:
    Referenced file contains errors (http://www.springframework.org/schema/tool/spring-tool.xsd).  For more information, right click on the message in the Problems View and select "Show Details..."
    Right-clicking on the message yields the following error message (repeated 6 times with different schema names):
    Code:
    sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://www.springframework.org/schema/tool,annotation'.
    Like others have noticed, if I comment the <jpa:repositories> element, the error goes away (see attached screenshots).

    Can the SD team figure out what is going on here? While it's not a showstopper for me (I ignore plenty of eclipse error markers), other developers at our client who are new to Java & STS/eclipse are going to freak out a bit, and I'd like to avoid that.

    Thanks,
    Matthew
    Attached Images Attached Images

  2. #2
    Join Date
    Jun 2011
    Posts
    4

    Default

    I have the same problem and would also like to find a solution. Thanks.

  3. #3
    Join Date
    Feb 2013
    Posts
    2

    Default

    Same thing here, no matter what I try, even fooling around with libraries versions I cannot get rid of this red X. And curiously it started happening this week, before that everything was ok.

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

    Default

    Quote Originally Posted by pepbr View Post
    ...curiously it started happening this week, before that everything was ok.
    I noticed that, too. It started happening out of nowhere. Harumph.

  5. #5
    Join Date
    Apr 2006
    Posts
    6

    Default

    Phew... glad I'm not going crazy. This just started happening to me as well and without having made any code changes. I've gone back to multiple tagged releases that never expressed this and still get the same problem. I'm not using STS just a fairly generic J2EE Eclipse Helios installation. I'll keep digging into it but I'm currently suspecting:

    1. An externally referenced schema changed... but I thought the schemas were all pulled from the JARs.
    2. A corrupt Maven artifact with a bogus schema is floating around out there. I can't say for sure but I feel like this started appearing when I did a force update of dependencies.

    Hoping to find a solution since these red X's do not sit well with my OCD ;-)

  6. #6
    Join Date
    Feb 2013
    Posts
    2

    Default

    Quote Originally Posted by dalrympm View Post
    2. A corrupt Maven artifact with a bogus schema is floating around out there. I can't say for sure but I feel like this started appearing when I did a force update of dependencies.
    Yeah, I remember doing this too!

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
  •