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 16:52:23 UTC

[jira] Created: (MUSE-111) Cannot assign multiple capabilities to same Implementation 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


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

Posted by "Dan Jemiolo (JIRA)" <ji...@apache.org>.
     [ 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


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

Posted by "Dan Jemiolo (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/MUSE-111?page=comments#action_12437613 ] 
            
Dan Jemiolo commented on MUSE-111:
----------------------------------

There is no "Caption" capability... you should just have the Description capability, which defines the Caption, Description, and Version properties. The tool should generate the right Description capability URI (which is the second one).

Also, you can have properties that are in different namespaces than your capability URI, but WSDL2Java doesn't handle this - you just need to override getPropertyNames( ) in your capability class(es) to return the names of the properties you want the capability to handle - this should normally involve adding to the static array that WSDL2Java has generated.

> 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


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

Posted by "Steve Jerman (JIRA)" <ji...@apache.org>.
    [ 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


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

Posted by "Steve Jerman (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/MUSE-111?page=comments#action_12435343 ] 
            
Steve Jerman commented on MUSE-111:
-----------------------------------

If I comment out the second capability it works..

> 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


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

Posted by "Dan Jemiolo (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/MUSE-111?page=all ]

Dan Jemiolo updated MUSE-111:
-----------------------------

        Fix Version/s: 2.1.0
    Affects Version/s: 2.0.0

> 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


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

Posted by "Steve Jerman (JIRA)" <ji...@apache.org>.
    [ 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