Uploaded image for project: 'Spring Security OAuth'
  1. Spring Security OAuth
  2. SECOAUTH-199

The schema spring-security-oauth2-1.0.xsd cause validation error in Eclipse

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.0.0.M6
    • Fix Version/s: 1.0.0.M6
    • Component/s: OAuth 2
    • Labels:
      None
    • Environment:
      Mac OS X 10.7.3
      Eclipse Java EE IDE for Web Developers. Version: Indigo Service Release 1 Build id: 20110916-0149
      m2e version 1.0.100.20110804-1717

      Description

      If you import the spring-security-oauth2 project in Eclipse you get the following validation error:

      Description: src-resolve: Cannot resolve the name 'beans:identifiedType' to a 'type definition' component.
      On element: spring-security-oauth2-1.0.xsd
      In folder: spring-security-oauth2/src/main/resources/org/springframework/security/oauth
      Location: line 298

      Problem area code: <xs:extension base="beans:identifiedType">

      The problem seems to be that there is no, or incorrect, schema attached to the beans namespace.

      At line 6:
      <xs:import namespace="http://www.springframework.org/schema/beans"/>

      Proposed solution:

      Change line 6 to:
      <xs:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"/>

      or

      <xs:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans.xsd"/>

        Attachments

          Activity

            People

            • Assignee:
              david_syer Dave Syer
              Reporter:
              chilmers Christian Hilmersson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: