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/10/02 21:42:20 UTC

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

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

The descriptor basicallyjust pulls in the Java Classes that define the properties. I did figure it out in the end...

The behaviour confused me for a while.

I can't see an easier way of handling it.... I think some examples in the docs will help...


> 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
>    Affects Versions: 2.0.0
>            Reporter: Steve Jerman
>         Assigned To: Dan Jemiolo
>             Fix For: 2.1.0
>
>
> 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