Results 1 to 10 of 10

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

Hybrid View

  1. #1

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

    Hello,

    I'm fighting with Spring DM 1.2.0 release cm-properties

    I'm using Eclipse 3.4.1 + Spring IDE 2.2.4 (the latest available) and here my context.xml file :

    PHP 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" />

    According to the Spring DM doc it's correct but 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

    Any idea ?

    Thanks

    Fred

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Have you tried running the context? Does the error appear only in Spring IDE or at runtime as well?
    Either way, can you please raise an issue? Thanks!
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3

    Default

    It appears at runtime as well but I don't get why...

    Ok anyway I'll try to build small example of the error and submit an issue

    Fred

  4. #4

    Default

    My mistake, this error does not occur in runtime, I have reported an issue on Spring IDE:
    http://jira.springsource.org/browse/IDE-1014

    In the mean time I found another one similar:
    http://jira.springsource.org/browse/IDE-1015

  5. #5
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Thanks. I'll keep an eye for these as well.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  6. #6

    Default

    Issues are fixed in latest nightly build of Spring IDE

Posting Permissions

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