On Sun, May 18, 2008 at 12:03 PM, Simon Laws <[EMAIL PROTECTED]> wrote:
> > > On Sun, May 18, 2008 at 11:22 AM, ant elder <[EMAIL PROTECTED]> wrote: > >> I'm seeing the same problem. (... and it doesn't seem very intermittent) >> >> ...ant >> >> On Sun, May 18, 2008 at 10:59 AM, Rajini Sivaram < >> [EMAIL PROTECTED]> wrote: >> >> > Hello, >> > >> > With the latest codebase, I get intermittent exceptions thrown from the >> > extension samples - the following exception is from >> samples/binding-echo. >> > It >> > looks like the schemas are not in the order they are expected to be in >> > (sample-binding-echo.xsd and tuscany-sca.xsd). Since the schema list is >> > obtained using classLoader.getResources (through ServiceDiscovery) their >> > ordering cannot really be guaranteed. >> > >> > >> > org.osoa.sca.ServiceRuntimeException: >> org.osoa.sca.ServiceRuntimeException: >> > org.apache.tuscany.sca.contribution.service.ContributionException: >> > java.lang.IllegalStateException: org.xml.sax.SAXParseException: >> > src-resolve: >> > Cannot resolve the name 'sca:Binding' to a(n) 'type definition' >> component. >> > at >> > >> > >> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:276) >> > at >> > >> > >> org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:70) >> > at echo.EchoBindingTestCase.setUp(EchoBindingTestCase.java:35) >> > at junit.framework.TestCase.runBare(TestCase.java:132) >> > at junit.framework.TestResult$1.protect(TestResult.java:110) >> > at junit.framework.TestResult.runProtected(TestResult.java:128) >> > at junit.framework.TestResult.run(TestResult.java:113) >> > at junit.framework.TestCase.run(TestCase.java:124) >> > at junit.framework.TestSuite.runTest(TestSuite.java:232) >> > at junit.framework.TestSuite.run(TestSuite.java:227) >> > at >> > >> > >> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35) >> > at >> > >> > >> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) >> > 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) >> > Caused by: org.osoa.sca.ServiceRuntimeException: >> > org.apache.tuscany.sca.contribution.service.ContributionException: >> > java.lang.IllegalStateException: org.xml.sax.SAXParseException: >> > src-resolve: >> > Cannot resolve the name 'sca:Binding' to a(n) 'type definition' >> component. >> > at >> > >> > >> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContribution(DefaultSCADomain.java:293) >> > at >> > >> > >> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:171) >> > at >> > >> > >> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:113) >> > at >> > >> > >> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:242) >> > ... 16 more >> > Caused by: >> > org.apache.tuscany.sca.contribution.service.ContributionException: >> > java.lang.IllegalStateException: org.xml.sax.SAXParseException: >> > src-resolve: >> > Cannot resolve the name 'sca:Binding' to a(n) 'type definition' >> component. >> > at >> > >> > >> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:362) >> > at >> > >> > >> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:165) >> > at >> > >> > >> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.addContribution(DefaultSCADomain.java:291) >> > ... 19 more >> > Caused by: java.lang.IllegalStateException: >> org.xml.sax.SAXParseException: >> > src-resolve: Cannot resolve the name 'sca:Binding' to a(n) 'type >> > definition' >> > component. >> > at >> > >> > >> org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory.initializeSchemas(DefaultValidatingXMLInputFactory.java:147) >> > at >> > >> > >> org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory.createXMLStreamReader(DefaultValidatingXMLInputFactory.java:200) >> > at >> > >> > >> org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.read(CompositeDocumentProcessor.java:106) >> > at >> > >> > >> org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.read(CompositeDocumentProcessor.java:55) >> > at >> > >> > >> org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.read(ExtensibleURLArtifactProcessor.java:76) >> > at >> > >> > >> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processReadPhase(ContributionServiceImpl.java:465) >> > at >> > >> > >> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:360) >> > ... 21 more >> > Caused by: org.xml.sax.SAXParseException: src-resolve: Cannot resolve >> the >> > name 'sca:Binding' to a(n) 'type definition' component. >> > at >> > >> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown >> > Source) >> > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) >> > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) >> > at >> > >> org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown >> > Source) >> > at >> org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(Unknown >> > Source) >> > at >> > >> > >> org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexContent(Unknown >> > Source) >> > at >> > >> > >> org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexTypeDecl(Unknown >> > Source) >> > at >> > >> > >> org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.traverseGlobal(Unknown >> > Source) >> > at >> org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(Unknown >> > Source) >> > at >> > >> > >> org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseNamedElement(Unknown >> > Source) >> > at >> > >> > >> org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseGlobal(Unknown >> > Source) >> > at >> org.apache.xerces.impl.xs.traversers.XSDHandler.traverseSchemas(Unknown >> > Source) >> > at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown >> > Source) >> > at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source) >> > at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown >> Source) >> > at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown >> Source) >> > at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown >> > Source) >> > at >> > >> > >> org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory$2.run(DefaultValidatingXMLInputFactory.java:136) >> > at >> > >> > >> org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory$2.run(DefaultValidatingXMLInputFactory.java:1) >> > at >> java.security.AccessController.doPrivileged(AccessController.java:246) >> > at >> > >> > >> org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory.initializeSchemas(DefaultValidatingXMLInputFactory.java:134) >> > ... 27 more >> > >> > >> > >> > Thank you... >> > >> > Regards, >> > >> > Rajini >> > >> > I've just done a full build and see... > > [INFO] Error for project: Apache Tuscany SCA Echo Binding Extension Sample > (duri > ng install) > [INFO] > ------------------------------------------------------------------------ > [INFO] There are test failures. > > Please refer to > C:\simon\tuscany\java-head\sca\samples\binding-echo-extension\ta > rget\surefire-reports for the individual test results. > [INFO] > ------------------------------------------------------------------------ > [INFO] Error for project: Apache Tuscany SCA CRUD Implementation Extension > Sampl > e (during install) > [INFO] > ------------------------------------------------------------------------ > [INFO] There are test failures. > > Please refer to > C:\simon\tuscany\java-head\sca\samples\implementation-crud-exten > sion\target\surefire-reports for the individual test results. > [INFO] > ------------------------------------------------------------------------ > [INFO] Error for project: Apache Tuscany SCA Tutorial Integration Test > (during i > nstall) > [INFO] > ------------------------------------------------------------------------ > [INFO] There are test failures. > > Please refer to > C:\simon\tuscany\java-head\sca\tutorial\store-test\target\surefi > re-reports for the individual test results. > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD ERRORS > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 58 minutes 29 seconds > [INFO] Finished at: Sun May 18 11:34:14 BST 2008 > [INFO] Final Memory: 103M/160M > [INFO] > ------------------------------------------------------------------------ > Indeed, sample-echo-binding has two tests and the order of the schema that are found are different in each case. I have a local fix that forces "tuscany-sca.xsd" to always be the first schema that I can check in if people want me to. Simon