On Tue, Dec 9, 2008 at 2:29 PM, Ramkumar R <[EMAIL PROTECTED]> wrote:

> I believe the sca-contribution.xsd schema needs a change in this case as
> shown here....
>
> For <import> and <export> element, only namespace attribute is required...
> rest should be optional, as read from NamespaceImportProcessor and
> NamespaceExportProcessor.
> For <import.java> and <export.java> element, only package attribute is
> required... rest should be optional, as read from JavaImportProcessor and
> JavaExportProcessor.
> For <import.resource> and <export.resource> element, only uri attribute is
> required.... rest should be optional, as read from ResourceImportProcessor
> and ResourceExportProcessor.
>
>
>
> On Tue, Dec 9, 2008 at 7:23 PM, Ramkumar R <[EMAIL PROTECTED]> wrote:
>
>> Hi All,
>>
>> An instance of the validation messages from the sca-contribution.xml file
>> are shown from demo/bigbank module is shown below......
>> In previous releases, there were no issue as we did not have
>> sca-contribution.xsd schema in place.
>>
>>      [java] SEVERE: XMLSchema validation error occured in:
>> file:/C:/Tuscany/1.4RC1/demos/bigbank/target/classes/META-INF/sca-contribution.xml
>> ,line = 26, column = 4, Message = cvc-complex-type.4: Attribute 'namespace'
>> must appear on element
>>  'import.java'.
>>      [java] Dec 9, 2008 5:49:27 PM
>> org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
>>      [java] SEVERE: XMLSchema validation error occured in:
>> file:/C:/Tuscany/1.4RC1/demos/bigbank/target/classes/META-INF/sca-contribution.xml
>> ,line = 26, column = 4, Message = cvc-complex-type.4: Attribute 'location'
>> must appear on element
>> 'import.java'.
>>      [java] Dec 9, 2008 5:49:28 PM
>> org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
>>      [java] SEVERE: XMLSchema validation error occured in:
>> file:/C:/Tuscany/1.4RC1/demos/bigbank/target/classes/META-INF/sca-contribution.xml
>> ,line = 30, column = 4, Message = cvc-complex-type.4: Attribute 'location'
>> must appear on element
>> 'import'.
>>      [java] Dec 9, 2008 5:49:28 PM
>> org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
>>      [java] SEVERE: XMLSchema validation error occured in:
>> file:/C:/Tuscany/1.4RC1/demos/bigbank/target/classes/META-INF/sca-contribution.xml
>> ,line = 31, column = 4, Message = cvc-complex-type.4: Attribute 'location'
>> must appear on element
>> 'import'.
>>      [java] Dec 9, 2008 5:49:28 PM
>> org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
>>      [java] SEVERE: XMLSchema validation error occured in:
>> file:/C:/Tuscany/1.4RC1/demos/bigbank/target/classes/META-INF/sca-contribution.xml
>> ,line = 32, column = 4, Message = cvc-complex-type.4: Attribute 'location'
>> must appear on element
>> 'import'.
>>      [java] Dec 9, 2008 5:49:28 PM
>> org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
>>      [java] SEVERE: XMLSchema validation error occured in:
>> file:/C:/Tuscany/1.4RC1/demos/bigbank/target/classes/META-INF/sca-contribution.xml
>> ,line = 34, column = 4, Message = cvc-complex-type.4: Attribute 'namespace'
>> must appear on element
>>  'import.resource'.
>>      [java] Dec 9, 2008 5:49:28 PM
>> org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
>>      [java] SEVERE: XMLSchema validation error occured in:
>> file:/C:/Tuscany/1.4RC1/demos/bigbank/target/classes/META-INF/sca-contribution.xml
>> ,line = 34, column = 4, Message = cvc-complex-type.4: Attribute 'location'
>> must appear on element
>> 'import.resource'.
>>
>> And the sca-contribution.xml file for demo/bigbank
>>
>> <contribution xmlns="http://www.osoa.org/xmlns/sca/1.0";
>>     xmlns:sca="http://www.osoa.org/xmlns/sca/1.0";
>>     targetNamespace="http://bigbank";
>>     xmlns:bb="http://bigbank";>
>>
>>    <deployable composite="bb:BigBank"/>
>>
>>    <import.java package="bigbank.account.checking"/>
>>    <import.java package="bigbank.account.savings"/>
>>    <import.java package="bigbank.account.stock"/>
>>
>>    <import namespace="http://bigbank/checkings"/>
>>    <import namespace="http://bigbank/savings"/>
>>    <import namespace="http://bigbank/stock"/>
>>
>>    <import.resource uri="definitions.xml"/>
>>  </contribution>
>>
>> Looking at the validation message, I have no idea about what the location
>> attribute should look like for import.resource, import.java and import
>> elements.
>>
>> Please suggest.
>>
>> --
>> Thanks & Regards,
>> Ramkumar Ramalingam
>>
>
>
>
> --
> Thanks & Regards,
> Ramkumar Ramalingam
>

Hi Ram

Yes, according to the pseudo schema in the assembly spec the location
attribute is optional.

I agree with what you say about import.java/resource. Also from a previous
thread [1] import/export.java/resource are tuscany specific so should be in
the tuscany namespace. I thought I had gone and fixed that but I don't see
any check ins so I must be dreaming. Or I made the change and threw it away
by accident :-(

Simon

Reply via email to