Jean,

Are you running with Java 6? We have had a report of this problem previously when people were running Tuscany with Java 6.

Without having checked in detail, I suspect that this problem is caused because we build and test Tuscany on Java 5. In Java 5, the XML stream API is not part of the JDK and so Tuscany adds it in through the use of the the Woodstox streaming parser. In Java 6, there is an implementation of the XML stream API built into the base JDK. I suspect that there must be a clash between the Woodstox parser and the built-in parser. We shall have to investigate further to find a fix.

In the short run, I'd recommend running Tuscany with some version of Java 5.


Yours,  Mike.


Jean Georges Perrin wrote:
Hi,

Downloaded SCA v0.9 / Java. When I try the calculator example, I get:

C:\...\org.apache.tuscany.sca\samples\calculator>ant run
Buildfile: build.xml

run:
     [java] Exception in thread "main"
javax.xml.stream.FactoryConfigurationError: Provider
javax.xml.stream.XMLInputFactory could not be instantiated:
java.lang.InstantiationException
     [java]     at
javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:158)
     [java]     at
org.apache.tuscany.sca.contribution.service.impl.ContributionRepositoryImpl.
<init>(ContributionRepositoryImpl.java:88)
     [java]     at
org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntimeBuilder.createCo
ntributionService(ReallySmallRuntimeBuilder.java:184)
     [java]     at
org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.start(ReallySma
llRuntime.java:93)
     [java]     at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCA
Domain.java:86)
     [java]     at
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.j
ava:229)
     [java]     at
org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:68
)
     [java]     at
calculator.CalculatorClient.main(CalculatorClient.java:31)
     [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 12 seconds

I guess I miss something in the classpath, but I am a little lost.

jgp


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to