I am trying to get the supply chain sample to work on chianti to have a test
case for the one-way rework based on the callback discussion. I copied the
supplychain dir from the main trunk and changed pom.xml, the stand-alone client
and the test case, and I moved sca.module to default.scdl under META-INF/sca
and changed it to conform to the latest spec.
When I try to build it with mvn from chianti\sca\samples\supplychain I get the
following error:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running supplychain.SupplyChainClientTestCase
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.459 sec <<< FA
ILURE!
test(supplychain.SupplyChainClientTestCase) Time elapsed: 0.429 sec <<< ERROR!
org.apache.tuscany.spi.component.ScopeNotFoundException: Scope object factory no
t registered for scope [STATELESS]
at org.apache.tuscany.core.component.scope.ScopeRegistryImpl.getScopeCon
tainer(ScopeRegistryImpl.java:47)
at org.apache.tuscany.core.implementation.java.JavaComponentBuilder.buil
d(JavaComponentBuilder.java:72)
at org.apache.tuscany.core.implementation.java.JavaComponentBuilder.buil
d(JavaComponentBuilder.java:56)
at org.apache.tuscany.core.builder.BuilderRegistryImpl.build(BuilderRegi
stryImpl.java:99)
at org.apache.tuscany.core.implementation.system.builder.SystemComposite
Builder.build(SystemCompositeBuilder.java:96)
at org.apache.tuscany.core.builder.BuilderRegistryImpl.build(BuilderRegi
stryImpl.java:99)
at org.apache.tuscany.core.deployer.DeployerImpl.build(DeployerImpl.java
:125)
at org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.jav
a:91)
at org.apache.tuscany.core.launcher.Launcher.bootApplication(Launcher.ja
va:188)
at org.apache.tuscany.test.SCATestCase.setUp(SCATestCase.java:40)
at supplychain.SupplyChainClientTestCase.setUp(SupplyChainClientTestCase
.java:35)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.jav
a:210)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
tSet(AbstractDirectoryTestSuite.java:135)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
stractDirectoryTestSuite.java:122)
at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:225)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:747)
...
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Fri Jul 14 12:46:50 EDT 2006
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------
Notice that I have not been able to complete an entire build due to the
jaxb/databinding
integration test. Interestingly, if I do a mvn clean at the root and then mvn
-e from sca
(after commenting out databinding-jaxb from sca/databinding/pom.xml) then I get
a
successful build, but I still can't get it to build from the top.
In any case, I can zip and post the contents of the supplychain sample if it
would help.
Help is appreciated.
Thanks