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 "Dan Jemiolo (JIRA)" <ji...@apache.org> on 2006/10/02 21:18:22 UTC

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

     [ http://issues.apache.org/jira/browse/MUSE-111?page=all ]

Dan Jemiolo closed MUSE-111.
----------------------------

    Resolution: Incomplete

Use case (have one capability handle properties in multiple namespaces) is handled by runtime, but not by tooling. Since tooling is based on convention of one namespace per capability, this would be hard to fix in the tooling - it would require more configuration file work, which is almost as much as just changing getPropertyNames() manually. 

If you have a proposal for how to do this in the tooling without decreasing usability in the basic use cases, please re-open the issue and describe it.


> 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