I'm attaching the file. Thanks a lot.

Daniel Jemiolo wrote:



Can you send the full error message ([ID='....']) and stack trace? This
will be in the /log/muse.log file, and will help me figure out what the
problem is.

Thanks,
Dan



Pablo Chacin <[EMAIL PROTECTED]> wrote on 05/09/2007 12:05:01 PM:

Hi

I just copied the SG WSDLs that are pointed from the page I mentioned
before
and that you can see  here:
http://ws.apache.org/muse/docs/2.2.0/specs/wsrf/1.2/
My muse.xml follows this message.

By the way, my error is related to the question made by
Marco Parmiami asking for WS Group examples. From the same
page I referenced before
(http://ws.apache.org/muse/docs/2.2.0/manual/how-to/wsrf-add-
service-groups.html)
it is not clear if I have to add some code to make the service group
work or if the code provided by the framework
will do the work. I'll appreciate any clarification in this regard.

Pablo

*<?xml* version="1.0" encoding="UTF-8"*?>*
*<muse* xmlns="http://ws.apache.org/muse/descriptor";
    xmlns:wsrf-sgw="http://docs.oasis-open.org/wsrf/sgw-2";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="
http://ws.apache.org/muse/descriptor muse-descriptor.xsd"*>*
    *<router>*
        *<java-router-class>*org.apache.muse.core.routing.
SimpleResourceRouter*</java-router-class>*
        *<logging>*
            *<log-file>*log/muse.log*</log-file>*
            *<log-level>*FINE*</log-level>*
        *</logging>*
        *<persistence>*
            *<java-persistence-class>*org.apache.muse.core.routing.
RouterFilePersistence*</java-persistence-class>*

*<persistence-location>*router-entries*</persistence-location>*
        *</persistence>*
    *</router>*
    *<resource-type* use-router-persistence="true"*>*
        *<context-path>*WsResource*</context-path>*
        *<wsdl>*
            *<wsdl-file>*/wsdl/WsResource.wsdl*</wsdl-file>*
            *<wsdl-port-type*
xmlns:pfx="http://ws.apache.org/muse/test/wsrf
"*>*pfx:WsResourcePortType*</wsdl-port-type>*
        *</wsdl>*
        *<java-id-factory-class>*org.apache.muse.core.routing.
CounterResourceIdFactory*</java-id-factory-class>*
        *<java-resource-class>*org.apache.muse.ws.resource.impl.
SimpleWsResource*</java-resource-class>*
        *<desc:capability*
xmlns:desc="http://ws.apache.org/muse/descriptor
"*>*
            *<desc:capability-uri>*http://docs.oasis-open.
org/wsrf/rlw-2/ImmediateResourceTermination*</desc:capability-uri>*
            *<desc:java-capability-class>*org.apache.muse.ws.
resource.lifetime.impl.SimpleImmediateTermination*</desc:java-
capability-class>*
        *</desc:capability>*
        *<desc:capability*
xmlns:desc="http://ws.apache.org/muse/descriptor
"*>*
            *<desc:capability-uri>*http://ws.apache.
org/muse/test/wsrf*</desc:capability-uri>*
            *<desc:java-capability-class>*org.apache.ws.muse.test.
wsrf.MyCapability*</desc:java-capability-class>*
        *</desc:capability>*
        *<desc:capability*
xmlns:desc="http://ws.apache.org/muse/descriptor
"*>*
            *<desc:capability-uri>*http://schemas.xmlsoap.
org/ws/2004/09/mex*</desc:capability-uri>*
            *<desc:java-capability-class>*org.apache.muse.ws.
metadata.impl.SimpleMetadataExchange*</desc:java-capability-class>*
        *</desc:capability>*
        *<desc:capability*
xmlns:desc="http://ws.apache.org/muse/descriptor
"*>*
            *<desc:capability-uri>*http://docs.oasis-open.
org/wsrf/rpw-2/Set*</desc:capability-uri>*
            *<desc:java-capability-class>*org.apache.muse.ws.
resource.properties.set.impl.SimpleSetCapability*</desc:java-
capability-class>*
        *</desc:capability>*
        *<desc:capability*
xmlns:desc="http://ws.apache.org/muse/descriptor
"*>*
            *<desc:capability-uri>*http://docs.oasis-open.
org/wsrf/rpw-2/Query*</desc:capability-uri>*
            *<desc:java-capability-class>*org.apache.muse.ws.
resource.properties.query.impl.SimpleQueryCapability*</desc:java-
capability-class>*
        *</desc:capability>*
        *<desc:capability*
xmlns:desc="http://ws.apache.org/muse/descriptor
"*>*
            *<desc:capability-uri>*http://docs.oasis-open.
org/wsrf/rlw-2/ScheduledResourceTermination*</desc:capability-uri>*
            *<desc:java-capability-class>*org.apache.muse.ws.
resource.lifetime.impl.SimpleScheduledTermination*</desc:java-
capability-class>*
        *</desc:capability>*
        *<desc:capability*
xmlns:desc="http://ws.apache.org/muse/descriptor
"*>*
            *<desc:capability-uri>*http://docs.oasis-open.
org/wsrf/rpw-2/Get*</desc:capability-uri>*
            *<desc:java-capability-class>*org.apache.muse.ws.
resource.properties.get.impl.SimpleGetCapability*</desc:java-
capability-class>*
        *</desc:capability>*
    *</resource-type>*
    *<resource-type>*
       *<context-path>*service-group-entry*</context-path>*
       *<wsdl>*
          *<wsdl-file>*/wsdl/WS-ServiceGroupEntry-1_2.wsdl*</wsdl-file>*
          *<wsdl-port-type>*wsrf-sgw:
ServiceGroupEntryPortType*</wsdl-port-type>*
       *</wsdl>*
       *<java-id-factory-class>*org.apache.muse.core.routing.
RandomResourceIdFactory*</java-id-factory-class>*
       *<java-resource-class>*org.apache.muse.ws.resource.impl.
SimpleWsResource*</java-resource-class>*
       *<capability>*
          *<capability-uri>*http://schemas.xmlsoap.
org/ws/2004/09/mex/GetMetadata*</capability-uri>*
          *<java-capability-class>*org.apache.muse.ws.metadata.impl.
SimpleMetadataExchange*</java-capability-class>*
       *</capability>*
       *<capability>*
          *<capability-uri>*http://docs.oasis-open.
org/wsrf/rpw-2/Get*</capability-uri>*
          *<java-capability-class>*org.apache.muse.ws.resource.
properties.get.impl.SimpleGetCapability*</java-capability-class>*
       *</capability>*
       *<capability>*
          *<capability-uri>*http://docs.oasis-open.
org/wsrf/sgw-2/ServiceGroupEntry*</capability-uri>*
          *<java-capability-class>*org.apache.muse.ws.resource.sg.
impl.SimpleEntry*</java-capability-class>*
       *</capability>*
    *</resource-type>*
    *<resource-type* use-router-persistence="true"*>*
       *<context-path>*service-group*</context-path>*
       *<wsdl>*
          *<wsdl-file>*/wsdl/WS-ServiceGroup-1_2.wsdl*</wsdl-file>*

*<wsdl-port-type>*wsrf-sgw:ServiceGroupPortType*</wsdl-port-type>*
       *</wsdl>*
       *<java-id-factory-class>*org.apache.muse.core.routing.
CounterResourceIdFactory*</java-id-factory-class>*
       *<java-resource-class>*org.apache.muse.ws.resource.impl.
SimpleWsResource*</java-resource-class>*
       *<capability>*
          *<capability-uri>*http://schemas.xmlsoap.
org/ws/2004/09/mex/GetMetadata*</capability-uri>*
          *<java-capability-class>*org.apache.muse.ws.metadata.impl.
SimpleMetadataExchange*</java-capability-class>*
       *</capability>*
       *<capability>*
          *<capability-uri>*http://docs.oasis-open.
org/wsrf/rpw-2/Get*</capability-uri>*
          *<java-capability-class>*org.apache.muse.ws.resource.
properties.get.impl.SimpleGetCapability*</java-capability-class>*
       *</capability>*
       *<capability>*
          *<capability-uri>*http://docs.oasis-open.
org/wsrf/rpw-2/Query*</capability-uri>*
          *<java-capability-class>*org.apache.muse.ws.resource.
properties.query.impl.SimpleQueryCapability*</java-capability-class>*
       *</capability>*
       *<capability>*
          *<capability-uri>*http://docs.oasis-open.
org/wsrf/sgw-2/ServiceGroup*</capability-uri>*
          *<java-capability-class>*org.apache.muse.ws.resource.sg.
impl.SimpleServiceGroup*</java-capability-class>*
       *</capability>*
   *</resource-type>*
*</muse>*



Daniel Jemiolo wrote:
Can you post the content of your muse.xml file here? I'm not sure
exactly
what steps you took - want to make sure that your SG WSDL and other
resource WSDL(s) are in fact separate.

Dan



Pablo Chacin <[EMAIL PROTECTED]> wrote on 05/09/2007 04:00:24 AM:


Hi

A brief update on this issue: I've followed the instructions given
here:
http://ws.apache.org/muse/docs/2.2.0/manual/how-to/wsrf-add-
service-groups.html
After adding the required definitions to the muse.xml file and the
wsdl
and xsd files to the wsdl folder, I re-build the war and deployed on
tomcat, but the same problem remains. Any hint?

Tanks

Pablo


Pablo Chacin wrote:

Hi guys, it is me again :-D

Thanks to your help, I've been able to run the wsrf sample, but I'm
getting this error when
retrieving the information of the Service group:

There is no property named
'{http://docs.oasis-open.org/wsrf/sg-2}Entry' defined in the schema.
A property should not have any operations or metadata applied to it
if
it is not in the WS-RP document.

From the error message it seams that I'm missing something, like
providing the WS-RP document
(my understanding is that this is the WS Resource Properties file for

the service group). My question here
is: is this document generated and deployed automatically? if no, how

could I generate/deploy it?

I would appreciate if you could point me to the proper
documentation/sample.

I've just generated the code from the wsdl (WsResource.wsdl),
modified
the MyCapability code
to prevent it to throw an exception on initialization, compiled it
and
deployed on tomcat. I'm testing using the WsrfTestClient.
Thanks in advance

Pablo



========================================================================
0 0 0  Pablo Chacin               | Dept. d'Arquitectura de

Computadors

0 0 0  e-mail: [EMAIL PROTECTED] | UPC-Campus Nord. Modul D6-212
0 0 0  phone: +34 +93 405 4059    | Jordi Girona, 1-3            U P
C  fax:   +34 +93 401 7055    | 08034 Barcelona - SPAIN
www:   http://personals.ac.upc.es/pchacin


========================================================================
--


========================================================================
 0 0 0  Pablo Chacin               | Dept. d'Arquitectura de
Computadors
 0 0 0  e-mail: [EMAIL PROTECTED] | UPC-Campus Nord. Modul D6-212
 0 0 0  phone: +34 +93 405 4059    | Jordi Girona, 1-3
 U P C  fax:   +34 +93 401 7055    | 08034 Barcelona - SPAIN
        www:   http://personals.ac.upc.es/pchacin

========================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--

========================================================================
 0 0 0  Pablo Chacin               | Dept. d'Arquitectura de Computadors
 0 0 0  e-mail: [EMAIL PROTECTED] | UPC-Campus Nord. Modul D6-212
 0 0 0  phone: +34 +93 405 4059    | Jordi Girona, 1-3
 U P C  fax:   +34 +93 401 7055    | 08034 Barcelona - SPAIN
        www:   http://personals.ac.upc.es/pchacin
========================================================================



--

========================================================================
0 0 0  Pablo Chacin               | Dept. d'Arquitectura de Computadors
0 0 0  e-mail: [EMAIL PROTECTED] | UPC-Campus Nord. Modul D6-212
0 0 0 phone: +34 +93 405 4059 | Jordi Girona, 1-3 U P C fax: +34 +93 401 7055 | 08034 Barcelona - SPAIN www: http://personals.ac.upc.es/pchacin
========================================================================

May 8, 2007 5:23:38 PM org.apache.muse.core.SimpleResource initializeCapabilities
FINE: [ID = 'CapabilityInitialized'] The resource at 'WsResource' has started initialization of capability 'http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination'.
May 8, 2007 5:23:38 PM org.apache.muse.core.SimpleResource initializeCapabilities
FINE: [ID = 'CapabilityInitialized'] The resource at 'WsResource' has started initialization of capability 'http://ws.apache.org/muse/test/wsrf'.
May 8, 2007 5:23:38 PM org.apache.muse.core.SimpleResource initializeCapabilities
FINE: [ID = 'CapabilityInitialized'] The resource at 'WsResource' has started initialization of capability 'http://schemas.xmlsoap.org/ws/2004/09/mex'.
May 8, 2007 5:23:38 PM org.apache.muse.core.SimpleResource initializeCapabilities
FINE: [ID = 'CapabilityInitialized'] The resource at 'WsResource' has started initialization of capability 'http://docs.oasis-open.org/wsrf/rpw-2/Set'.
May 8, 2007 5:23:38 PM org.apache.muse.core.SimpleResource initializeCapabilities
FINE: [ID = 'CapabilityInitialized'] The resource at 'WsResource' has started initialization of capability 'http://docs.oasis-open.org/wsrf/rpw-2/Query'.
May 8, 2007 5:23:38 PM org.apache.muse.core.SimpleResource initializeCapabilities
FINE: [ID = 'CapabilityInitialized'] The resource at 'WsResource' has started initialization of capability 'http://docs.oasis-open.org/wsrf/rlw-2/ScheduledResourceTermination'.
May 8, 2007 5:23:38 PM org.apache.muse.core.SimpleResource initializeCapabilities
FINE: [ID = 'CapabilityInitialized'] The resource at 'WsResource' has started initialization of capability 'http://docs.oasis-open.org/wsrf/rpw-2/Get'.
May 8, 2007 5:23:38 PM org.apache.muse.core.SimpleResource initializeCapabilities
FINE: [ID = 'CapabilityInitializationComplete'] The resource at 'WsResource' has completed initialization of capability 'http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination.
May 8, 2007 5:23:38 PM org.apache.muse.core.SimpleResource initializeCapabilities
FINE: [ID = 'CapabilityInitializationComplete'] The resource at 'WsResource' has completed initialization of capability 'http://ws.apache.org/muse/test/wsrf.
May 8, 2007 5:23:38 PM org.apache.muse.core.SimpleResource initializeCapabilities
FINE: [ID = 'CapabilityInitializationComplete'] The resource at 'WsResource' has completed initialization of capability 'http://schemas.xmlsoap.org/ws/2004/09/mex.
May 8, 2007 5:23:38 PM org.apache.muse.core.SimpleResource initializeCapabilities
FINE: [ID = 'CapabilityInitializationComplete'] The resource at 'WsResource' has completed initialization of capability 'http://docs.oasis-open.org/wsrf/rpw-2/Set.
May 8, 2007 5:23:38 PM org.apache.muse.core.SimpleResource initializeCapabilities
FINE: [ID = 'CapabilityInitializationComplete'] The resource at 'WsResource' has completed initialization of capability 'http://docs.oasis-open.org/wsrf/rpw-2/Query.
May 8, 2007 5:23:38 PM org.apache.muse.core.SimpleResource initializeCapabilities
FINE: [ID = 'CapabilityInitializationComplete'] The resource at 'WsResource' has completed initialization of capability 'http://docs.oasis-open.org/wsrf/rlw-2/ScheduledResourceTermination.
May 8, 2007 5:23:38 PM org.apache.muse.core.SimpleResource initializeCapabilities
FINE: [ID = 'CapabilityInitializationComplete'] The resource at 'WsResource' has completed initialization of capability 'http://docs.oasis-open.org/wsrf/rpw-2/Get.
May 8, 2007 5:23:38 PM org.apache.muse.core.SimpleResource initialize
INFO: [ID = 'ResourceInitialized'] The resource at 'WsResource' has been initialized.
May 8, 2007 5:23:38 PM org.apache.muse.core.routing.SimpleResourceRouter initialize
INFO: [ID = 'RouterIsInitialized'] The resource router has been initialized.
May 8, 2007 5:23:38 PM org.apache.muse.util.LoggingUtils logMessage
FINE: [SERVER TRACE] SOAP envelope contents (incoming):

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope";>
    <soap:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://147.83.35.28:8080/wsrf/services/WsResource</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://docs.oasis-open.org/wsrf/rpw-2/GetResourcePropertyDocument/GetResourcePropertyDocumentRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing";>uuid:7e1bc110-3ff9-9afe-baa2-a0c6664250c1</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing";>
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsrf-rp:GetResourcePropertyDocument xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"/>
    </soap:Body>
</soap:Envelope>


May 8, 2007 5:23:48 PM org.apache.muse.util.LoggingUtils logMessage
FINE: [SERVER TRACE] SOAP envelope contents (incoming):

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope";>
    <soap:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://147.83.35.28:8080/wsrf/services/WsResource</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing";>uuid:4d8dd4aa-9680-0b69-c13e-f4bafef6a803</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing";>
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsrf-rp:GetResourceProperty
            xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"; xmlns:wsrf-sg="http://docs.oasis-open.org/wsrf/sg-2";>wsrf-sg:Entry</wsrf-rp:GetResourceProperty>
    </soap:Body>
</soap:Envelope>


May 8, 2007 5:23:48 PM org.apache.muse.util.LoggingUtils logCall
FINE: [SERVER TRACE] Mapping SOAP request to Java method 'getResourceProperty'.

Parameter types expected by Java method:

	[javax.xml.namespace.QName]

Parameter types received by the MessageHandler:

	[javax.xml.namespace.QName]

Messages about this call will appear below...

May 8, 2007 5:23:48 PM org.apache.muse.util.LoggingUtils logError
INFO: There was an error while processing a request:

[ID = 'PropertyNotInSchema'] There is no property named '{http://docs.oasis-open.org/wsrf/sg-2}Entry' defined in the schema. A property should not have any operations or metadata applied to it if it is not in the WS-RP document.

	org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCollection.getResourceProperty(SimpleResourcePropertyCollection.java:596)
	org.apache.muse.ws.resource.properties.get.impl.SimpleGetCapability.getResourceProperty(SimpleGetCapability.java:92)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.muse.core.SimpleResource.invoke(SimpleResource.java:373)
	org.apache.muse.core.routing.SimpleResourceRouter.invoke(SimpleResourceRouter.java:290)
	org.apache.muse.core.platform.axis2.AxisIsolationLayer.invoke(AxisIsolationLayer.java:136)
	org.apache.muse.core.platform.axis2.AxisIsolationLayer.handleRequest(AxisIsolationLayer.java:88)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:88)
	20 more...
------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to