You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by ant elder <an...@gmail.com> on 2009/08/10 15:32:22 UTC

XMLSchema validation error Attribute 'value' is not allowed to appear in element 'property'

I'm still getting property xsd schema validation errors when running
the otests in eclipse even though that problem is fixed now and it
runs fine when i run the tests with mvn. Does anyone else see get this
problem? Is there something unusual going on with the otest eclipse
setup that could cause it to pick up some previously built jar?

   ...ant

Re: XMLSchema validation error Attribute 'value' is not allowed to appear in element 'property'

Posted by Simon Laws <si...@googlemail.com>.
Have restarted and I still don't see any extra validation errors in
otest in eclipse as far as I can tell.Which tests did you try?

Simon

Re: XMLSchema validation error Attribute 'value' is not allowed to appear in element 'property'

Posted by Simon Laws <si...@googlemail.com>.
On Mon, Aug 10, 2009 at 2:32 PM, ant elder<an...@gmail.com> wrote:
> I'm still getting property xsd schema validation errors when running
> the otests in eclipse even though that problem is fixed now and it
> runs fine when i run the tests with mvn. Does anyone else see get this
> problem? Is there something unusual going on with the otest eclipse
> setup that could cause it to pick up some previously built jar?
>
>   ...ant
>

I'm not see anything unusual in Eclipse so I set my log level to FINE
in my JDK logging properties file and ran the maven build and am now
seeing a validation in samples/dosgi-calculator amongst others.

Still don't see errors in Eclipse. Could mean a restart I guess. Am
trying that now.

Simon

Re: XMLSchema validation error Attribute 'value' is not allowed to appear in element 'property'

Posted by Raymond Feng <en...@gmail.com>.
In sca-core-1.1-cd04.xsd, property under <component> is typed by 
"PropertyValue". But the property under <composite> or <componentType> are 
typed by "Property" which doesn't have an @value attribute. It seems to be 
bug in the SCA XSD.

Thanks,
Raymond
--------------------------------------------------
From: "ant elder" <an...@gmail.com>
Sent: Monday, August 10, 2009 2:10 PM
To: <de...@tuscany.apache.org>
Subject: Re: XMLSchema validation error Attribute 'value' is not allowed to 
appear in element 'property'

> On Mon, Aug 10, 2009 at 9:47 PM, Mike
> Edwards<mi...@gmail.com> wrote:
>> Ant,
>>
>>
>> ant elder wrote:
>>>
>>> I'm still getting property xsd schema validation errors when running
>>> the otests in eclipse even though that problem is fixed now and it
>>> runs fine when i run the tests with mvn. Does anyone else see get this
>>> problem? Is there something unusual going on with the otest eclipse
>>> setup that could cause it to pick up some previously built jar?
>>>
>>>   ...ant
>>>
>>
>> What are your Eclipse settings?  Have you got Eclipse configured to 
>> resolve
>> the SCA XSDs to a fixed location that you have not changed?  Note that we
>> had to move from sca-1.1-cd03.xsd to sca-1.1-cd04.xsd for the fix and 
>> that
>> if your Eclipse setup is still pointing to cd03, then you would see the
>> error still.
>>
>>
>> Yours,  Mike.
>>
>
> I've been getting this also on a fresh checkout of the otests and a
> clean eclipse workspace. On IRC Luciano suggested changing the
> Property complex type in sca-core-1.1-cd04.xsd from <anyAttribute
> namespace="##other" processContents="lax"/> to <anyAttribute
> namespace="##any" processContents="lax"/> trying that does get passed
> all the failures.
>
>   ...ant 


Re: XMLSchema validation error Attribute 'value' is not allowed to appear in element 'property'

Posted by ant elder <an...@gmail.com>.
This is all working fine now with the recent fixes to the OASIS test composites.

   ...ant

On Tue, Aug 11, 2009 at 7:34 AM, ant elder<an...@gmail.com> wrote:
> Meant to add...it is interesting that no one else seemed to be getting
> the error even though they said they were on the latest code, and that
> it was only happening for me when running in eclipse but the mvn build
> was working fine.
>
>   ...ant
>
> On Tue, Aug 11, 2009 at 7:33 AM, ant elder<an...@gmail.com> wrote:
>> On Tue, Aug 11, 2009 at 7:29 AM, Mike
>> Edwards<mi...@gmail.com> wrote:
>>> Ant,
>>>
>>> Can you give me more detail on the problems that are being reported, please?
>>>
>>> eg. Which testcases, which artifacts.
>>>
>>>
>>> Yours,  Mike.
>>>
>>
>> Sure, here's an example console output. It effected most of the otests
>> as i guess lots are using one of the composites with a property value.
>>
>>   ...ant
>>
>> SCA Node API ClassLoader: sun.misc.Launcher$AppClassLoader@11b86e7
>> 10-Aug-2009 11:59:59 org.apache.tuscany.sca.node.impl.NodeImpl start
>> INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0
>> domain: tuscany.apache.org
>> 2009-08-10 11:59:59.468::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
>> 10-Aug-2009 11:59:59 org.apache.tuscany.sca.node.impl.NodeFactoryImpl
>> loadContributions
>> INFO: Loading contribution:
>> file:/C:/Tuscany/SVN/otests2/tests/../General/target/tuscany-otests-asm-General.jar
>> 10-Aug-2009 12:00:01
>> org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
>> [] (SchemaError)
>> SEVERE: XMLSchema validation error occured in:
>> TestComposite50.composite ,line = 25, column = 5, Message =
>> cvc-complex-type.3.2.2: Attribute 'value' is not allowed to appear in
>> element 'property'.
>> 10-Aug-2009 12:00:01
>> org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
>> [] (SchemaError)
>> SEVERE: XMLSchema validation error occured in:
>> TestComposite50.composite ,line = 26, column = 5, Message =
>> cvc-complex-type.3.2.2: Attribute 'value' is not allowed to appear in
>> element 'property'.
>> java.lang.IllegalStateException:
>> org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema validation
>> error occured in: TestComposite50.composite ,line = 25, column = 5,
>> Message = cvc-complex-type.3.2.2: Attribute 'value' is not allowed to
>> appear in element 'property'.
>>        at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:140)
>>        at org.apache.tuscany.sca.otest.TuscanyRuntimeBridge.startContribution(TuscanyRuntimeBridge.java:67)
>>        at client.BaseJAXWSTestCase.startContribution(BaseJAXWSTestCase.java:233)
>>        at client.BaseJAXWSTestCase.setUp(BaseJAXWSTestCase.java:148)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>>        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>>        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>>        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
>>        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>>        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
>>        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
>>        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
>>        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
>>        at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
>>        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>>        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>>        at org.junit.runners.ParentRunner.run(ParentRunner.java:220)org.oasisopen.sca.ServiceRuntimeException:
>> [] - XMLSchema validation error occured in: TestComposite50.composite
>> ,line = 25, column = 5, Message = cvc-complex-type.3.2.2: Attribute
>> 'value' is not allowed to appear in element 'property'.
>>
>>        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
>>        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)Exception
>> received during startup - detail:
>> org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema validation
>> error occured in: TestComposite50.composite ,line = 25, column = 5,
>> Message = cvc-complex-type.3.2.2: Attribute 'value' is not allowed to
>> appear in element 'property'.
>>
>> Caused by: org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema
>> validation error occured in: TestComposite50.composite ,line = 25,
>> column = 5, Message = cvc-complex-type.3.2.2: Attribute 'value' is not
>> allowed to appear in element 'property'.
>>        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.analyzeProblems(NodeFactoryImpl.java:284)
>>        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(NodeFactoryImpl.java:611)
>>        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.configureNode(NodeFactoryImpl.java:474)SCA
>> Node API ClassLoader: sun.misc.Launcher$AppClassLoader@11b86e7
>> 10-Aug-2009 11:59:59 org.apache.tuscany.sca.node.impl.NodeImpl start
>> INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0
>> domain: tuscany.apache.org
>> 2009-08-10 11:59:59.468::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
>> 10-Aug-2009 11:59:59 org.apache.tuscany.sca.node.impl.NodeFactoryImpl
>> loadContributions
>> INFO: Loading contribution:
>> file:/C:/Tuscany/SVN/otests2/tests/../General/target/tuscany-otests-asm-General.jar
>> 10-Aug-2009 12:00:01
>> org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
>> [] (SchemaError)
>> SEVERE: XMLSchema validation error occured in:
>> TestComposite50.composite ,line = 25, column = 5, Message =
>> cvc-complex-type.3.2.2: Attribute 'value' is not allowed to appear in
>> element 'property'.
>> 10-Aug-2009 12:00:01
>> org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
>> [] (SchemaError)
>> SEVERE: XMLSchema validation error occured in:
>> TestComposite50.composite ,line = 26, column = 5, Message =
>> cvc-complex-type.3.2.2: Attribute 'value' is not allowed to appear in
>> element 'property'.
>> java.lang.IllegalStateException:
>> org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema validation
>> error occured in: TestComposite50.composite ,line = 25, column = 5,
>> Message = cvc-complex-type.3.2.2: Attribute 'value' is not allowed to
>> appear in element 'property'.
>>        at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:140)
>>        at org.apache.tuscany.sca.otest.TuscanyRuntimeBridge.startContribution(TuscanyRuntimeBridge.java:67)
>>        at client.BaseJAXWSTestCase.startContribution(BaseJAXWSTestCase.java:233)
>>        at client.BaseJAXWSTestCase.setUp(BaseJAXWSTestCase.java:148)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>>        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>>        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>>        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
>>        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>>        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
>>        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
>>        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
>>        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
>>        at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
>>        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>>        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>>        at org.junit.runners.ParentRunner.run(ParentRunner.java:220)org.oasisopen.sca.ServiceRuntimeException:
>> [] - XMLSchema validation error occured in: TestComposite50.composite
>> ,line = 25, column = 5, Message = cvc-complex-type.3.2.2: Attribute
>> 'value' is not allowed to appear in element 'property'.
>>
>>        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
>>        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)Exception
>> received during startup - detail:
>> org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema validation
>> error occured in: TestComposite50.composite ,line = 25, column = 5,
>> Message = cvc-complex-type.3.2.2: Attribute 'value' is not allowed to
>> appear in element 'property'.
>>
>> Caused by: org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema
>> validation error occured in: TestComposite50.composite ,line = 25,
>> column = 5, Message = cvc-complex-type.3.2.2: Attribute 'value' is not
>> allowed to appear in element 'property'.
>>        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.analyzeProblems(NodeFactoryImpl.java:284)
>>        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(NodeFactoryImpl.java:611)
>>        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.configureNode(NodeFactoryImpl.java:474)
>>        at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:108)
>>        ... 26 more
>> 10-Aug-2009 12:00:01 org.apache.tuscany.sca.node.impl.NodeImpl stop
>> INFO: Stopping node: http://tuscany.apache.org/sca/1.1/nodes/default0
>>
>>        at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:108)
>>        ... 26 more
>> 10-Aug-2009 12:00:01 org.apache.tuscany.sca.node.impl.NodeImpl stop
>> INFO: Stopping node: http://tuscany.apache.org/sca/1.1/nodes/default0
>>
>

Re: XMLSchema validation error Attribute 'value' is not allowed to appear in element 'property'

Posted by ant elder <an...@gmail.com>.
Meant to add...it is interesting that no one else seemed to be getting
the error even though they said they were on the latest code, and that
it was only happening for me when running in eclipse but the mvn build
was working fine.

   ...ant

On Tue, Aug 11, 2009 at 7:33 AM, ant elder<an...@gmail.com> wrote:
> On Tue, Aug 11, 2009 at 7:29 AM, Mike
> Edwards<mi...@gmail.com> wrote:
>> Ant,
>>
>> Can you give me more detail on the problems that are being reported, please?
>>
>> eg. Which testcases, which artifacts.
>>
>>
>> Yours,  Mike.
>>
>
> Sure, here's an example console output. It effected most of the otests
> as i guess lots are using one of the composites with a property value.
>
>   ...ant
>
> SCA Node API ClassLoader: sun.misc.Launcher$AppClassLoader@11b86e7
> 10-Aug-2009 11:59:59 org.apache.tuscany.sca.node.impl.NodeImpl start
> INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0
> domain: tuscany.apache.org
> 2009-08-10 11:59:59.468::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
> 10-Aug-2009 11:59:59 org.apache.tuscany.sca.node.impl.NodeFactoryImpl
> loadContributions
> INFO: Loading contribution:
> file:/C:/Tuscany/SVN/otests2/tests/../General/target/tuscany-otests-asm-General.jar
> 10-Aug-2009 12:00:01
> org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
> [] (SchemaError)
> SEVERE: XMLSchema validation error occured in:
> TestComposite50.composite ,line = 25, column = 5, Message =
> cvc-complex-type.3.2.2: Attribute 'value' is not allowed to appear in
> element 'property'.
> 10-Aug-2009 12:00:01
> org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
> [] (SchemaError)
> SEVERE: XMLSchema validation error occured in:
> TestComposite50.composite ,line = 26, column = 5, Message =
> cvc-complex-type.3.2.2: Attribute 'value' is not allowed to appear in
> element 'property'.
> java.lang.IllegalStateException:
> org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema validation
> error occured in: TestComposite50.composite ,line = 25, column = 5,
> Message = cvc-complex-type.3.2.2: Attribute 'value' is not allowed to
> appear in element 'property'.
>        at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:140)
>        at org.apache.tuscany.sca.otest.TuscanyRuntimeBridge.startContribution(TuscanyRuntimeBridge.java:67)
>        at client.BaseJAXWSTestCase.startContribution(BaseJAXWSTestCase.java:233)
>        at client.BaseJAXWSTestCase.setUp(BaseJAXWSTestCase.java:148)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
>        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
>        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
>        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
>        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
>        at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
>        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>        at org.junit.runners.ParentRunner.run(ParentRunner.java:220)org.oasisopen.sca.ServiceRuntimeException:
> [] - XMLSchema validation error occured in: TestComposite50.composite
> ,line = 25, column = 5, Message = cvc-complex-type.3.2.2: Attribute
> 'value' is not allowed to appear in element 'property'.
>
>        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
>        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)Exception
> received during startup - detail:
> org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema validation
> error occured in: TestComposite50.composite ,line = 25, column = 5,
> Message = cvc-complex-type.3.2.2: Attribute 'value' is not allowed to
> appear in element 'property'.
>
> Caused by: org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema
> validation error occured in: TestComposite50.composite ,line = 25,
> column = 5, Message = cvc-complex-type.3.2.2: Attribute 'value' is not
> allowed to appear in element 'property'.
>        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.analyzeProblems(NodeFactoryImpl.java:284)
>        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(NodeFactoryImpl.java:611)
>        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.configureNode(NodeFactoryImpl.java:474)SCA
> Node API ClassLoader: sun.misc.Launcher$AppClassLoader@11b86e7
> 10-Aug-2009 11:59:59 org.apache.tuscany.sca.node.impl.NodeImpl start
> INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0
> domain: tuscany.apache.org
> 2009-08-10 11:59:59.468::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
> 10-Aug-2009 11:59:59 org.apache.tuscany.sca.node.impl.NodeFactoryImpl
> loadContributions
> INFO: Loading contribution:
> file:/C:/Tuscany/SVN/otests2/tests/../General/target/tuscany-otests-asm-General.jar
> 10-Aug-2009 12:00:01
> org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
> [] (SchemaError)
> SEVERE: XMLSchema validation error occured in:
> TestComposite50.composite ,line = 25, column = 5, Message =
> cvc-complex-type.3.2.2: Attribute 'value' is not allowed to appear in
> element 'property'.
> 10-Aug-2009 12:00:01
> org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
> [] (SchemaError)
> SEVERE: XMLSchema validation error occured in:
> TestComposite50.composite ,line = 26, column = 5, Message =
> cvc-complex-type.3.2.2: Attribute 'value' is not allowed to appear in
> element 'property'.
> java.lang.IllegalStateException:
> org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema validation
> error occured in: TestComposite50.composite ,line = 25, column = 5,
> Message = cvc-complex-type.3.2.2: Attribute 'value' is not allowed to
> appear in element 'property'.
>        at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:140)
>        at org.apache.tuscany.sca.otest.TuscanyRuntimeBridge.startContribution(TuscanyRuntimeBridge.java:67)
>        at client.BaseJAXWSTestCase.startContribution(BaseJAXWSTestCase.java:233)
>        at client.BaseJAXWSTestCase.setUp(BaseJAXWSTestCase.java:148)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
>        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
>        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
>        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
>        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
>        at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
>        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>        at org.junit.runners.ParentRunner.run(ParentRunner.java:220)org.oasisopen.sca.ServiceRuntimeException:
> [] - XMLSchema validation error occured in: TestComposite50.composite
> ,line = 25, column = 5, Message = cvc-complex-type.3.2.2: Attribute
> 'value' is not allowed to appear in element 'property'.
>
>        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
>        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)Exception
> received during startup - detail:
> org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema validation
> error occured in: TestComposite50.composite ,line = 25, column = 5,
> Message = cvc-complex-type.3.2.2: Attribute 'value' is not allowed to
> appear in element 'property'.
>
> Caused by: org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema
> validation error occured in: TestComposite50.composite ,line = 25,
> column = 5, Message = cvc-complex-type.3.2.2: Attribute 'value' is not
> allowed to appear in element 'property'.
>        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.analyzeProblems(NodeFactoryImpl.java:284)
>        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(NodeFactoryImpl.java:611)
>        at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.configureNode(NodeFactoryImpl.java:474)
>        at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:108)
>        ... 26 more
> 10-Aug-2009 12:00:01 org.apache.tuscany.sca.node.impl.NodeImpl stop
> INFO: Stopping node: http://tuscany.apache.org/sca/1.1/nodes/default0
>
>        at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:108)
>        ... 26 more
> 10-Aug-2009 12:00:01 org.apache.tuscany.sca.node.impl.NodeImpl stop
> INFO: Stopping node: http://tuscany.apache.org/sca/1.1/nodes/default0
>

Re: XMLSchema validation error Attribute 'value' is not allowed to appear in element 'property'

Posted by ant elder <an...@gmail.com>.
On Tue, Aug 11, 2009 at 7:29 AM, Mike
Edwards<mi...@gmail.com> wrote:
> Ant,
>
> Can you give me more detail on the problems that are being reported, please?
>
> eg. Which testcases, which artifacts.
>
>
> Yours,  Mike.
>

Sure, here's an example console output. It effected most of the otests
as i guess lots are using one of the composites with a property value.

   ...ant

SCA Node API ClassLoader: sun.misc.Launcher$AppClassLoader@11b86e7
10-Aug-2009 11:59:59 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0
domain: tuscany.apache.org
2009-08-10 11:59:59.468::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
10-Aug-2009 11:59:59 org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions
INFO: Loading contribution:
file:/C:/Tuscany/SVN/otests2/tests/../General/target/tuscany-otests-asm-General.jar
10-Aug-2009 12:00:01
org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
[] (SchemaError)
SEVERE: XMLSchema validation error occured in:
TestComposite50.composite ,line = 25, column = 5, Message =
cvc-complex-type.3.2.2: Attribute 'value' is not allowed to appear in
element 'property'.
10-Aug-2009 12:00:01
org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
[] (SchemaError)
SEVERE: XMLSchema validation error occured in:
TestComposite50.composite ,line = 26, column = 5, Message =
cvc-complex-type.3.2.2: Attribute 'value' is not allowed to appear in
element 'property'.
java.lang.IllegalStateException:
org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema validation
error occured in: TestComposite50.composite ,line = 25, column = 5,
Message = cvc-complex-type.3.2.2: Attribute 'value' is not allowed to
appear in element 'property'.
	at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:140)
	at org.apache.tuscany.sca.otest.TuscanyRuntimeBridge.startContribution(TuscanyRuntimeBridge.java:67)
	at client.BaseJAXWSTestCase.startContribution(BaseJAXWSTestCase.java:233)
	at client.BaseJAXWSTestCase.setUp(BaseJAXWSTestCase.java:148)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
	at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:220)org.oasisopen.sca.ServiceRuntimeException:
[] - XMLSchema validation error occured in: TestComposite50.composite
,line = 25, column = 5, Message = cvc-complex-type.3.2.2: Attribute
'value' is not allowed to appear in element 'property'.

	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)Exception
received during startup - detail:
org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema validation
error occured in: TestComposite50.composite ,line = 25, column = 5,
Message = cvc-complex-type.3.2.2: Attribute 'value' is not allowed to
appear in element 'property'.

Caused by: org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema
validation error occured in: TestComposite50.composite ,line = 25,
column = 5, Message = cvc-complex-type.3.2.2: Attribute 'value' is not
allowed to appear in element 'property'.
	at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.analyzeProblems(NodeFactoryImpl.java:284)
	at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(NodeFactoryImpl.java:611)
	at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.configureNode(NodeFactoryImpl.java:474)SCA
Node API ClassLoader: sun.misc.Launcher$AppClassLoader@11b86e7
10-Aug-2009 11:59:59 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0
domain: tuscany.apache.org
2009-08-10 11:59:59.468::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
10-Aug-2009 11:59:59 org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions
INFO: Loading contribution:
file:/C:/Tuscany/SVN/otests2/tests/../General/target/tuscany-otests-asm-General.jar
10-Aug-2009 12:00:01
org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
[] (SchemaError)
SEVERE: XMLSchema validation error occured in:
TestComposite50.composite ,line = 25, column = 5, Message =
cvc-complex-type.3.2.2: Attribute 'value' is not allowed to appear in
element 'property'.
10-Aug-2009 12:00:01
org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
[] (SchemaError)
SEVERE: XMLSchema validation error occured in:
TestComposite50.composite ,line = 26, column = 5, Message =
cvc-complex-type.3.2.2: Attribute 'value' is not allowed to appear in
element 'property'.
java.lang.IllegalStateException:
org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema validation
error occured in: TestComposite50.composite ,line = 25, column = 5,
Message = cvc-complex-type.3.2.2: Attribute 'value' is not allowed to
appear in element 'property'.
	at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:140)
	at org.apache.tuscany.sca.otest.TuscanyRuntimeBridge.startContribution(TuscanyRuntimeBridge.java:67)
	at client.BaseJAXWSTestCase.startContribution(BaseJAXWSTestCase.java:233)
	at client.BaseJAXWSTestCase.setUp(BaseJAXWSTestCase.java:148)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
	at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:220)org.oasisopen.sca.ServiceRuntimeException:
[] - XMLSchema validation error occured in: TestComposite50.composite
,line = 25, column = 5, Message = cvc-complex-type.3.2.2: Attribute
'value' is not allowed to appear in element 'property'.

	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)Exception
received during startup - detail:
org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema validation
error occured in: TestComposite50.composite ,line = 25, column = 5,
Message = cvc-complex-type.3.2.2: Attribute 'value' is not allowed to
appear in element 'property'.

Caused by: org.oasisopen.sca.ServiceRuntimeException: [] - XMLSchema
validation error occured in: TestComposite50.composite ,line = 25,
column = 5, Message = cvc-complex-type.3.2.2: Attribute 'value' is not
allowed to appear in element 'property'.
	at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.analyzeProblems(NodeFactoryImpl.java:284)
	at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(NodeFactoryImpl.java:611)
	at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.configureNode(NodeFactoryImpl.java:474)
	at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:108)
	... 26 more
10-Aug-2009 12:00:01 org.apache.tuscany.sca.node.impl.NodeImpl stop
INFO: Stopping node: http://tuscany.apache.org/sca/1.1/nodes/default0

	at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:108)
	... 26 more
10-Aug-2009 12:00:01 org.apache.tuscany.sca.node.impl.NodeImpl stop
INFO: Stopping node: http://tuscany.apache.org/sca/1.1/nodes/default0

Re: XMLSchema validation error Attribute 'value' is not allowed to appear in element 'property'

Posted by Mike Edwards <mi...@gmail.com>.
Ant,

Can you give me more detail on the problems that are being reported, please?

eg. Which testcases, which artifacts.


Yours,  Mike.

ant elder wrote:
> On Mon, Aug 10, 2009 at 9:47 PM, Mike
> Edwards<mi...@gmail.com> wrote:
>> Ant,
>>
>>
>> ant elder wrote:
>>> I'm still getting property xsd schema validation errors when running
>>> the otests in eclipse even though that problem is fixed now and it
>>> runs fine when i run the tests with mvn. Does anyone else see get this
>>> problem? Is there something unusual going on with the otest eclipse
>>> setup that could cause it to pick up some previously built jar?
>>>
>>>   ...ant
>>>
>> What are your Eclipse settings?  Have you got Eclipse configured to resolve
>> the SCA XSDs to a fixed location that you have not changed?  Note that we
>> had to move from sca-1.1-cd03.xsd to sca-1.1-cd04.xsd for the fix and that
>> if your Eclipse setup is still pointing to cd03, then you would see the
>> error still.
>>
>>
>> Yours,  Mike.
>>
> 
> I've been getting this also on a fresh checkout of the otests and a
> clean eclipse workspace. On IRC Luciano suggested changing the
> Property complex type in sca-core-1.1-cd04.xsd from <anyAttribute
> namespace="##other" processContents="lax"/> to <anyAttribute
> namespace="##any" processContents="lax"/> trying that does get passed
> all the failures.
> 
>    ...ant
> 


Re: XMLSchema validation error Attribute 'value' is not allowed to appear in element 'property'

Posted by Luciano Resende <lu...@gmail.com>.
On Mon, Aug 10, 2009 at 2:10 PM, ant elder<an...@gmail.com> wrote:
> On Mon, Aug 10, 2009 at 9:47 PM, Mike
> Edwards<mi...@gmail.com> wrote:
>> Ant,
>>
>>
>> ant elder wrote:
>>>
>>> I'm still getting property xsd schema validation errors when running
>>> the otests in eclipse even though that problem is fixed now and it
>>> runs fine when i run the tests with mvn. Does anyone else see get this
>>> problem? Is there something unusual going on with the otest eclipse
>>> setup that could cause it to pick up some previously built jar?
>>>
>>>   ...ant
>>>
>>
>> What are your Eclipse settings?  Have you got Eclipse configured to resolve
>> the SCA XSDs to a fixed location that you have not changed?  Note that we
>> had to move from sca-1.1-cd03.xsd to sca-1.1-cd04.xsd for the fix and that
>> if your Eclipse setup is still pointing to cd03, then you would see the
>> error still.
>>
>>
>> Yours,  Mike.
>>
>
> I've been getting this also on a fresh checkout of the otests and a
> clean eclipse workspace. On IRC Luciano suggested changing the
> Property complex type in sca-core-1.1-cd04.xsd from <anyAttribute
> namespace="##other" processContents="lax"/> to <anyAttribute
> namespace="##any" processContents="lax"/> trying that does get passed
> all the failures.
>
>   ...ant
>

This is a workaround, the proper fix should be to create the value
attribute on the Property complexType.
I have raised a issue with the OASIS spec group for this.



-- 
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Re: XMLSchema validation error Attribute 'value' is not allowed to appear in element 'property'

Posted by ant elder <an...@gmail.com>.
On Mon, Aug 10, 2009 at 9:47 PM, Mike
Edwards<mi...@gmail.com> wrote:
> Ant,
>
>
> ant elder wrote:
>>
>> I'm still getting property xsd schema validation errors when running
>> the otests in eclipse even though that problem is fixed now and it
>> runs fine when i run the tests with mvn. Does anyone else see get this
>> problem? Is there something unusual going on with the otest eclipse
>> setup that could cause it to pick up some previously built jar?
>>
>>   ...ant
>>
>
> What are your Eclipse settings?  Have you got Eclipse configured to resolve
> the SCA XSDs to a fixed location that you have not changed?  Note that we
> had to move from sca-1.1-cd03.xsd to sca-1.1-cd04.xsd for the fix and that
> if your Eclipse setup is still pointing to cd03, then you would see the
> error still.
>
>
> Yours,  Mike.
>

I've been getting this also on a fresh checkout of the otests and a
clean eclipse workspace. On IRC Luciano suggested changing the
Property complex type in sca-core-1.1-cd04.xsd from <anyAttribute
namespace="##other" processContents="lax"/> to <anyAttribute
namespace="##any" processContents="lax"/> trying that does get passed
all the failures.

   ...ant

Re: XMLSchema validation error Attribute 'value' is not allowed to appear in element 'property'

Posted by Mike Edwards <mi...@gmail.com>.
Ant,


ant elder wrote:
> I'm still getting property xsd schema validation errors when running
> the otests in eclipse even though that problem is fixed now and it
> runs fine when i run the tests with mvn. Does anyone else see get this
> problem? Is there something unusual going on with the otest eclipse
> setup that could cause it to pick up some previously built jar?
> 
>    ...ant
> 

What are your Eclipse settings?  Have you got Eclipse configured to resolve the SCA XSDs to a fixed 
location that you have not changed?  Note that we had to move from sca-1.1-cd03.xsd to 
sca-1.1-cd04.xsd for the fix and that if your Eclipse setup is still pointing to cd03, then you 
would see the error still.


Yours,  Mike.

Re: XMLSchema validation error Attribute 'value' is not allowed to appear in element 'property'

Posted by Luciano Resende <lu...@gmail.com>.
On Mon, Aug 10, 2009 at 6:32 AM, ant elder<an...@gmail.com> wrote:
> I'm still getting property xsd schema validation errors when running
> the otests in eclipse even though that problem is fixed now and it
> runs fine when i run the tests with mvn. Does anyone else see get this
> problem? Is there something unusual going on with the otest eclipse
> setup that could cause it to pick up some previously built jar?
>
>   ...ant
>

Is this the same issue I described in [1] ? I believe Mike has
provided a fix, but in a different place so the actual problem is
still happening and I guess we need to create a value attribute in the
Property complex type... Having said this, I have stopped being able
to see any schema validation issues in both Eclipse or Maven when
running oTests, so I can' t tell you that this fix solve all the
issues.


[1] http://markmail.org/thread/kgs7vqskhvjfh6mt


-- 
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/