Hi,
Does anyone see this error? It seems that the Apache Xerces jars on the
classpath is causing troubles.
java.lang.IllegalStateException: java.lang.NoSuchMethodError:
org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:173)
at launcher.RuntimeIntegration.startNode(RuntimeIntegration.java:35)
at
launcher.SampleJSELauncher.launchBindingSCACalculator(SampleJSELauncher.java:97)
at launcher.SampleJSELauncher.main(SampleJSELauncher.java:60)
at
launcher.LauncherTestCase.testContributionBindingSCACalculator(LauncherTestCase.java:30)
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.InvokeMethod.evaluate(InvokeMethod.java:20)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.NoSuchMethodError:
org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown
Source)
at
org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory$1.run(DefaultValidatingXMLInputFactory.java:214)
at
org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory$1.run(DefaultValidatingXMLInputFactory.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory.initializeSchemas(DefaultValidatingXMLInputFactory.java:212)
at
org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory.createXMLStreamReader(DefaultValidatingXMLInputFactory.java:350)
at
org.apache.tuscany.sca.definitions.xml.DefinitionsDocumentProcessor.read(DefinitionsDocumentProcessor.java:115)
at
org.apache.tuscany.sca.definitions.xml.DefinitionsDocumentProcessor.read(DefinitionsDocumentProcessor.java:1)
at
org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExtensionPoint$LazyURLArtifactProcessor.read(DefaultURLArtifactProcessorExtensionPoint.java:288)
at
org.apache.tuscany.sca.definitions.xml.DefaultDefinitionsExtensionPoint.getDefinitions(DefaultDefinitionsExtensionPoint.java:110)
at
org.apache.tuscany.sca.deployment.impl.DeployerImpl.loadSystemContribution(DeployerImpl.java:330)
at
org.apache.tuscany.sca.deployment.impl.DeployerImpl.init(DeployerImpl.java:314)
at
org.apache.tuscany.sca.deployment.impl.DeployerImpl.loadContribution(DeployerImpl.java:606)
at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(NodeFactoryImpl.java:394)
at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:125)
... 26 more
________________________________________________________________
Raymond Feng
[email protected]
Apache Tuscany PMC member and committer: tuscany.apache.org
Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
Personal Web Site: www.enjoyjava.com
________________________________________________________________