You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by "Steve Jerman (JIRA)" <ji...@apache.org> on 2006/09/17 17:40:23 UTC

[jira] Commented: (MUSE-111) Cannot assign multiple capabilities to same Implementation class

    [ http://issues.apache.org/jira/browse/MUSE-111?page=comments#action_12435324 ] 
            
Steve Jerman commented on MUSE-111:
-----------------------------------

I'd actually like to use this myself. Some of my properties are in a different namespace. It would be conveient if they could be satisfied from one class.

> Cannot assign multiple capabilities to same Implementation class
> ----------------------------------------------------------------
>
>                 Key: MUSE-111
>                 URL: http://issues.apache.org/jira/browse/MUSE-111
>             Project: Muse
>          Issue Type: Bug
>          Components: Core Engine - Deployment Descriptor
>            Reporter: Steve Jerman
>         Assigned To: Dan Jemiolo
>
> The runtime seems to not like multiple capabilities being defined with the same implmenting class.
> For example this :
>         <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
>             <desc:capability-uri>http://docs.oasis-open.org/wsdm/muws/capabilities/Caption</desc:capability-uri>
>             <desc:java-capability-class>org.apache.muse.ws.dm.muws.impl.SimpleDescription</desc:java-capability-class>
>         </desc:capability>
>         <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
>             <desc:capability-uri>http://docs.oasis-open.org/wsdm/muws/capabilities/Description</desc:capability-uri>
>             <desc:java-capability-class>org.apache.muse.ws.dm.muws.impl.SimpleDescription</desc:java-capability-class>
>         </desc:capability>
> Gets this error:
> java.lang.RuntimeException: [ID = 'DuplicateCapability'] The property '{http://docs.oasis-open.org/wsdm/muws2-2.xsd}Caption' is already implemented by capability 'http://docs.oasis-open.org/wsdm/muws/capabilities/Caption', but a second capability, 'http://docs.oasis-open.org/wsdm/muws/capabilities/Description', is being associated with it as well.
> 	at org.apache.muse.ws.resource.properties.schema.impl.PropertySchemaDefinition.setCapability(PropertySchemaDefinition.java:200)
> 	at org.apache.muse.ws.resource.properties.schema.impl.SimpleResourcePropertiesSchema.setCapability(SimpleResourcePropertiesSchema.java:324)
> 	at org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCollection.addCapability(SimpleResourcePropertyCollection.java:123)
> 	at org.apache.muse.ws.resource.impl.AbstractWsResourceCapability.initialize(AbstractWsResourceCapability.java:299)
> 	at org.apache.muse.core.SimpleResource.initializeCapabilities(SimpleResource.java:296)
> 	at org.apache.muse.core.SimpleResource.initialize(SimpleResource.java:261)
> ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org