hello,

i have the problem that follows...

i have a grid service written in java... when i try to register in the
DefaultIndexService the  resource that i have just created it throws the
next error:

*Exception when trying to register this Auction: org.xml.sax.SAXException:
Fatal Error: URI=null Line=12: The prefix "xsi" for attribute "xsi:type"
associated with an element type "Content" is not bound.
*


the registration file es the next: registrationRBS.xml

<ServiceGroupRegistrationParameters
  xmlns="http://mds.globus.org/servicegroup/client";>
*xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"*
  xmlns:sgc=" http://mds.globus.org/servicegroup/client";
  xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing";
  xmlns:agg="http://mds.globus.org/aggregator/types";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

  <RefreshIntervalSecs>60</RefreshIntervalSecs>

  <Content
    *xsi:type="agg:AggregatorContent"*
        xmlns:agg="http://mds.globus.org/aggregator/types";
    xmlns:tns="http://www.globus.org/namespaces/wsrf/ResourceBrokerService";>

    <agg:AggregatorConfig xsi:type="agg:AggregatorConfig">

      <agg:GetResourcePropertyPollType
xmlns:tns="http://www.globus.org/namespaces/wsrf/ResourceBrokerService";>

        <agg:PollIntervalMillis>5000</agg:PollIntervalMillis>

        <agg:ResourcePropertyName>tns:Value</agg:ResourcePropertyName>

      </agg:GetResourcePropertyPollType>
    </agg:AggregatorConfig>
    <agg:AggregatorData/>

  </Content>

</ServiceGroupRegistrationParameters>




(as you can see, i have highlighted the xsi definition).




I think it is not necessary, but just in case, the part of the code where i
register the resource in the DefaultIndexService is the next one.


/* File ResourceHome.java */

    protected void add(ResourceKey key, Resource resource)
    {
        super.add(key, resource);

        ResourceContext ctx;
        try{
            ctx = ResourceContext.getResourceContext();
        }catch(ResourceContextException e){
            System.out.println("Could not get ResourceContext: " + e);
            return;
        }

        EndpointReferenceType epr;
        try{
            epr = AddressingUtils.createEndpointReference(ctx, key);
        } catch(Exception e){
            System.out.println("Could not form EPR: " + e);
            return;
        }

        String regPath = ContainerConfig.getGlobusLocation() +
"/registrationRBS.xml";
        System.out.println("reg.xml file: " + regPath);

        try{
            ServiceGroupRegistrationParameters params =
            ServiceGroupRegistrationClient.readParams(regPath);

            params.setRegistrantEPR(epr);

            ServiceGroupRegistrationClient client =
            ServiceGroupRegistrationClient.getContainerClient();

            client.register(params);
        } catch(Exception e){
            System.out.println("Exception when trying to register this
Auction: " + e);
        }
    }





which could be the problem?

Thanks a lot.
marta.

Reply via email to