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
> ========================================================================
>