[prev in list] [next in list] [prev in thread] [next in thread] 

List:       muse-dev
Subject:    [jira] Commented: (MUSE-111) Cannot assign multiple capabilities to
From:       "Dan Jemiolo (JIRA)" <jira () apache ! org>
Date:       2006-09-25 17:15:52
Message-ID: 23307605.1159204552362.JavaMail.jira () brutus
[Download RAW message or body]

    [ 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic