Dear Neil,

Please I have been trying to follow the Element Producers's manual.  The  
initial content  of the  file rp-provider-config.xml in 
$GLOBUS_LOCATION/etc/globus_wsrf_mds_index/ rp-provider-config.xml i.e.:

<!--
 
 Copyright 1999-2006 University of Chicago
 
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 
 http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->
&#8722;
    <ns1:ResourcePropertyProviderConfigArray 
xsi:type="ns1:ResourcePropertyProviderConfigArray">
&#8722;
    <ns1:resourcePropertyProviderConfiguration 
xsi:type="ns1:resourcePropertyProviderConfig">
<ns1:resourcePropertyName 
xsi:type="xsd:QName">mds:FortuneRP</ns1:resourcePropertyName>
&#8722;
    <ns1:resourcePropertyImpl xsi:type="xsd:string">
org.globus.mds.usefulrp.rpprovider.SingleValueResourcePropertyProvider
</ns1:resourcePropertyImpl>
&#8722;
    <ns1:resourcePropertyElementProducers 
xsi:type="ns1:resourcePropertyElementProducerConfig">
&#8722;
    <ns1:className xsi:type="xsd:string">
org.globus.mds.usefulrp.rpprovider.producers.ExternalProcessElementProducer
</ns1:className>
<ns1:arguments 
xsi:type="xsd:string">/MY/GLOBUS/LOCATION/libexec/fortune_script.sh</ns1:arguments>
<ns1:arguments xsi:type="xsd:string">dummyArgument</ns1:arguments>
<ns1:period xsi:type="xsd:int">300</ns1:period>
</ns1:resourcePropertyElementProducers>
</ns1:resourcePropertyProviderConfiguration>
</ns1:ResourcePropertyProviderConfigArray>

and the one you described in Enabling the Provider Framework i.e:


<service name="DefaultIndexService" provider="Handler"
     use="literal" style="document">
     <parameter name="providers"
                
value="org.globus.wsrf.impl.servicegroup.ServiceGroupRegistrationProvider
                       
org.globus.mds.usefulrp.rpprovider.ResourcePropertyProviderCollection
                       GetRPProvider
                       GetMRPProvider
                       QueryRPProvider
                       DestroyProvider
                       SetTerminationTimeProvider
                       SubscribeProvider
                       GetCurrentMessageProvider"/>

     <parameter name="handlerClass"
         value="org.globus.axis.providers.RPCProvider"/>
     <parameter name="scope" value="Application"/>
     <parameter name="allowedMethods" value="*"/>
     <parameter name="rpProviderConfigFile"
         value="/etc/globus_wsrf_mds_index/rp-provider-config.xml"/>
     <parameter name="className"
         value="org.globus.mds.index.impl.DefaultIndexService"/>
     <wsdlFile>share/schema/mds/index/index_service.wsdl</wsdlFile>
</service>
are they the same? Or both should be the the file (rp-provider-config.xml)? 
Should I only changed the  contents in the first code to suit the second? I am 
confused.

I got these errors when I ran it:

2007-08-04 00:10:46,896 ERROR rpprovider.ResourcePropertyProviderCollection 
[ServiceThread-12,processConfig:224] Exception while processing configuration 
file, some Resource Properties may not be available:
Deserialization failed
. Caused by
org.xml.sax.SAXParseException: The prefix "ns1" for element 
"ns1:resourcePropertyProviderConfiguration" is not bound.
        at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
 Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
        at 
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
        at 
org.globus.wsrf.encoding.ObjectDeserializer.deserialize(ObjectDeserializer.java:248)
        at 
org.globus.mds.usefulrp.rpprovider.ResourcePropertyProviderCollection.processConfig(ResourcePropertyProviderCollection.java:201)
        at 
org.globus.mds.usefulrp.rpprovider.ResourcePropertyProviderCollection.initialize(ResourcePropertyProviderCollection.java:129)
        at 
org.globus.mds.usefulrp.rpprovider.ResourcePropertyProviderCollection.<init>(ResourcePropertyProviderCollection.java:101)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:308)
        at java.lang.Class.newInstance(Class.java:261)
        at 
org.globus.axis.providers.RPCProvider.getNewServiceInstance(RPCProvider.java:115)
        at 
org.globus.axis.description.ServiceDescUtil.initializeProviders(ServiceDescUtil.java:266)
        at 
org.globus.axis.description.ServiceDescUtil.initializeService(ServiceDescUtil.java:135)
        at 
org.globus.wsrf.container.ServiceManager$InitPrivilegedAction.initialize(ServiceManager.java:260)
        at 
org.globus.wsrf.container.ServiceManager$InitPrivilegedAction.run(ServiceManager.java:272)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:379)
        at org.globus.gsi.jaas.GlobusSubject.runAs(GlobusSubject.java:55)
        at org.globus.gsi.jaas.JaasSubject.doAs(JaasSubject.java:90)
        at 
org.globus.wsrf.container.ServiceManager.initializeService(ServiceManager.java:218)
        at 
org.globus.axis.description.ServiceDescUtil.resetOperations(ServiceDescUtil.java:110)
        at 
org.globus.wsrf.handlers.AddressingHandler.resetOperations(AddressingHandler.java:256)
        at 
org.apache.axis.message.addressing.handler.AddressingHandler.processServerRequest(AddressingHandler.java:347)
        at 
org.globus.wsrf.handlers.AddressingHandler.processServerRequest(AddressingHandler.java:77)
        at 
org.apache.axis.message.addressing.handler.AddressingHandler.invoke(AddressingHandler.java:114)
        at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.server.AxisServer.invoke(AxisServer.java:248)
        at 
org.globus.wsrf.container.ServiceThread.doPost(ServiceThread.java:664)
        at 
org.globus.wsrf.container.ServiceThread.process(ServiceThread.java:382)
        at 
org.globus.wsrf.container.GSIServiceThread.process(GSIServiceThread.java:147)
        at org.globus.wsrf.container.ServiceThread.run(ServiceThread.java:291)
2007-08-04 00:10:47,935 ERROR impl.QueryAggregatorSource 
[Thread-14,pollGetMultiple:149] Exception Getting Multiple Resource Properties 
from 
https://138.250.104.231:8443/wsrf/services/ReliableFileTransferFactoryService: 
java.rmi.RemoteException: Failed to serialize resource property [EMAIL 
PROTECTED]; nested exception is:
        org.apache.commons.dbcp.DbcpException: Connection refused. Check that 
the hostname and port are correct and that the postmaster is accepting TCP/IP 
connections.
 
I also got these errors when I tried to query:

[EMAIL PROTECTED] bin]$ ./wsrf-query -s 
https://127.0.0.1:8443/wsrf/services/DefaultIndexService 
"//*[local-name()='fortuneInformation']"
Error: ; nested exception is:
        GSSException: Defective credential detected [Caused by: Proxy file 
(/tmp/x509up_u501) not found.]
[EMAIL PROTECTED] bin]$ ./wsrf-query -s 
https://138.250.104.231:8443/wsrf/services/DefaultIndexService 
"//*[local-name()='fortuneInformation']"
Error: ; nested exception is:
        GSSException: Defective credential detected [Caused by: Proxy file 
(/tmp/x509up_u501) not found.]

Although I could see the registrations on the WebMDS. Please any reason for 
this? Any help is appreciated.

Regards
Gokop


 
       
---------------------------------
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. 

Reply via email to