Hi all,
after some days in off, I re-started to enjoy MUSE.
after some days in off, I re-started to enjoy MUSE.
Well,
I have been trying to created my own service in MUSE but I am having some trouble.
I have been trying to created my own service in MUSE but I am having some trouble.
First, trying to make things easy, I tried to build a new service based on the host.wsdl that comes with the snapshot distribution.
What I did so far was:
- edited the build.xml file and changed the out.dir to "newservice";
- uncommented the "generate" target;
- in the targets "all", "compile_all", "compile_*" and "deploy_*", I left only
the "logic" and "host" uncommented;
- in the D:\muse-1.0-SNAPSHOT\docs\example\src\wsdl directory, I left only the files host.wsdl, host.xsd, muws-ext-1.xsd, muws-ext-topics-1.xml and shared.xsd;
After this, I executed the "ant generate" command and received the following message:
>D:\muse-1.0-SNAPSHOT\docs\example\build.xml:65: WSDLException (at /definitions/import[1]/wsdl:definitions/wsdl:types/xsd:
>schema/xsd:schema): faultCode=PARSER_ERROR: Problem parsing 'file:/D:/Tomcat 4.1/webapps/muse/spec/xml/XML-Namespace-1998
>.xsd'.: D:\Tomcat 4.1\webapps\muse\spec\xml\XMLSchema.dtd (The system cannot find the file specified): java.io.FileNotFou
>ndException: D:\Tomcat 4.1\webapps\muse\spec\xml\XMLSchema.dtd (The system cannot find the file specified)
>schema/xsd:schema): faultCode=PARSER_ERROR: Problem parsing 'file:/D:/Tomcat 4.1/webapps/muse/spec/xml/XML-Namespace-1998
>.xsd'.: D:\Tomcat 4.1\webapps\muse\spec\xml\XMLSchema.dtd (The system cannot find the file specified): java.io.FileNotFou
>ndException: D:\Tomcat 4.1\webapps\muse\spec\xml\XMLSchema.dtd (The system cannot find the file specified)
So, I placed the "XMLSchema.dtd" file in the "D:\Tomcat 4.1\webapps\muse\spec\xml\" dir.
I tried to execute the "ant generate" command again. The output now is:
I tried to execute the "ant generate" command again. The output now is:
>D:\muse-1.0-SNAPSHOT\docs\example\build.xml:65: WSDLException (at /definitions/import[1]/wsdl:definitions/wsdl:types/xsd:
>schema/xsd:schema): faultCode=PARSER_ERROR: Problem parsing 'file:/D:/Tomcat 4.1/webapps/muse/spec/xml/XML-Namespace-1998
>.xsd'.: D:\Tomcat 4.1\webapps\muse\spec\xml\datatypes.dtd (The system cannot find the file specified): java.io.FileNotFou
>ndException: D:\Tomcat 4.1\webapps\muse\spec\xml\datatypes.dtd (The system cannot find the file specified)
So, I placed the "datatypes.dtd " file in the "D:\Tomcat 4.1\webapps\muse\spec\xml\" dir, and executed the "ant generate" again.
The output message now is:
>schema/xsd:schema): faultCode=PARSER_ERROR: Problem parsing 'file:/D:/Tomcat 4.1/webapps/muse/spec/xml/XML-Namespace-1998
>.xsd'.: D:\Tomcat 4.1\webapps\muse\spec\xml\datatypes.dtd (The system cannot find the file specified): java.io.FileNotFou
>ndException: D:\Tomcat 4.1\webapps\muse\spec\xml\datatypes.dtd (The system cannot find the file specified)
So, I placed the "datatypes.dtd " file in the "D:\Tomcat 4.1\webapps\muse\spec\xml\" dir, and executed the "ant generate" again.
The output message now is:
>BUILD FAILED
>D:\muse-1.0-SNAPSHOT\docs\example\build.xml:65: org.apache.ws.resource.InvalidWsrfWsdlException: Unable to locate the Res
>ourceProperties document element with QName {http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-0
>1.xsd}ScheduledResourceTerminationRP
>D:\muse-1.0-SNAPSHOT\docs\example\build.xml:65: org.apache.ws.resource.InvalidWsrfWsdlException: Unable to locate the Res
>ourceProperties document element with QName {http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-0
>1.xsd}ScheduledResourceTerminationRP
Now, I edited the host.wsdl file and added an element definition for each of the custom resource properties:
<!-- *** Add an element definition here for each of your custom resource properties *** -->
<!-- *** e.g.: <element name="MyProperty" type="xsd:string" /> *** -->
<element name="NumberOfProcesses" type="xsd:string"/>
<element name="AvailableMemory" type="xsd:string"/>
<element name="CpuUsage" type="xsd:string"/>
<!-- *** e.g.: <element name="MyProperty" type="xsd:string" /> *** -->
<element name="NumberOfProcesses" type="xsd:string"/>
<element name="AvailableMemory" type="xsd:string"/>
<element name="CpuUsage" type="xsd:string"/>
Here, I executed "ant generate" again. The output message now is:
>BUILD FAILED
>D:\muse-1.0-SNAPSHOT\docs\example\build.xml:65: org.apache.ws.resource.InvalidWsrfWsdlException: Unable to locate the Res
>ourceProperties document element with QName {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}Manageabili
>tyCharacteristicsProperties
>D:\muse-1.0-SNAPSHOT\docs\example\build.xml:65: org.apache.ws.resource.InvalidWsrfWsdlException: Unable to locate the Res
>ourceProperties document element with QName {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}Manageabili
>tyCharacteristicsProperties
From now on, I really don't know what to do. I really don't know also if I am going in the rigth direction.. but this is the way I am trying.
Can someone give some help???
Does someone have the filesystem example that comes with Apollo and Pubscribe working in agreement with Muse?
Or does someone have a more simple example to share that the one that comes with the SNAPSHOT distribution? So I could build my one service based on this one?
Or does someone have a more simple example to share that the one that comes with the SNAPSHOT distribution? So I could build my one service based on this one?
Excuse me for the big message.
Really thanks again,
Lombrera.
Lombrera.
Yahoo! Acesso Grátis: Internet rápida e grátis. Instale o discador agora!