Spring IDE
  1. Spring IDE
  2. IDE-1014

No declaration can be found for element 'osgix:cm-properties'

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.4
    • Fix Version/s: 2.2.5 M1
    • Component/s: None
    • Labels:
      None
    • Environment:
      WinXP SP3 + Eclipse 3.4.1 + Spring DM 1.2.0

      Description

      Spring IDE report me these errors:

      Cannot locate BeanDefinitionParser for element [cm-properties] context.xml
      cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'osgix:cm-properties'. context.xml

      with the following code :

      <?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:ctx="http://www.springframework.org/schema/context"
      xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
      xmlns:osgi="http://www.springframework.org/schema/osgi"
      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
      http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
      http://www.springframework.org/schema/osgi-compendium http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd">

      <osgix:cm-properties id="cmProps" persistent-id="com.mycompany">
      <prop key="host">localhost</prop>
      </osgix:cm-properties>

      <ctx:property-placeholder properties-ref="cmProps" />

      Though I think the XML syntax is valid

        Activity

        Hide
        Frederic Conrotte added a comment -

        Fixed in latest nightly build of Spring IDE 2.2.5.CI-R3260-B336

        To be closed

        Show
        Frederic Conrotte added a comment - Fixed in latest nightly build of Spring IDE 2.2.5.CI-R3260-B336 To be closed
        Hide
        Christian Dupuis added a comment -

        Thanks for verifying this.

        Show
        Christian Dupuis added a comment - Thanks for verifying this.

          People

          • Assignee:
            Christian Dupuis
            Reporter:
            Frederic Conrotte
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: