karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Achim Nierbeck <bcanh...@googlemail.com>
Subject Strange Blueprint behavior
Date Fri, 14 Jan 2011 20:44:58 GMT
Hi,

I do have a strange behavior when using blueprint for creating a web
command.
like seen below (it's also available at trunk)

I always get a

org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute
'cardinality' is not allowed to appear in element 'reference'.

But there is no cardinality at all in the blueprint xml.

Any hints what I'm doing wrong here?

Thanks, Achim

-----------> SNIP

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">

    <reference id="slService"
interface="org.osgi.service.startlevel.StartLevel"
availability="optional" />

    <bean id="eaHandler"
class="org.apache.karaf.shell.web.WebEventHandler" />
       
    <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.0.0">
        <command name="web/list">
            <action class="org.apache.karaf.shell.web.WebListCommand">
                <property name="startLevelService" ref="slService" />
                <property name="eventHandler" ref="eaHandler" />
            </action>
        </command>
    </command-bundle>


    <service id="eaHandlerSrvc"
interface="org.osgi.service.event.EventHandler" ref="eaHandler">
        <service-properties>
            <entry key="event.topics" value="org/osgi/service/web/*"/>
        </service-properties>
    </service>

</blueprint>

Mime
View raw message