On Thu, Dec 3, 2009 at 3:10 PM, amit patel <amitp...@gmail.com> wrote: > I had to add wstx-asl-3.2.4.jar to fix the NPE > > now I am getting > > > Starting ... > > Dec 3, 2009 5:08:28 PM org.apache.tuscany.sca.node.impl.NodeImpl start > > INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0 > domain: tuscany.apache.org > > Dec 3, 2009 5:08:28 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl > loadContributions > > INFO: Loading contribution: file:/C:/workspaces/ast/tuscany1/store/target/ > > Dec 3, 2009 5:08:29 PM > org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader > [Contribution: test, Artifact: store.composite] (SchemaError) > > SEVERE: XMLSchema validation error occured in: store.composite ,line = 8, > column = 9, Message = cvc-complex-type.2.4.a: Invalid content was found > starting with element 'service'. One of > '{"http://docs.oasis-open.org/ns/opencsa/sca/200903":documentation, > "http://docs.oasis-open.org/ns/opencsa/sca/200903":implementation}' is > expected. > > Dec 3, 2009 5:08:29 PM > org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor > [Contribution: test, Artifact: store.composite] (ElementCannotBeProcessed) > > SEVERE: Element > {http://tuscany.apache.org/xmlns/sca/1.1}implementation.widget cannot be > processed. ([row,col {unknown-source}]: [14,9]) > > Exception in thread "main" > > java.lang.IllegalStateException: org.oasisopen.sca.ServiceRuntimeException: > [Contribution: test, Artifact: store.composite] - XMLSchema validation error > occured in: store.composite ,line = 8, column = 9, Message = > cvc-complex-type.2.4.a: Invalid content was found starting with element > 'service'. One of > '{"http://docs.oasis-open.org/ns/opencsa/sca/200903":documentation, > "http://docs.oasis-open.org/ns/opencsa/sca/200903":implementation}' is > expected. > > at org.apache.tuscany.sca.node.impl.NodeImpl.start( > > NodeImpl.java:176) > > at launch.Launch.main( > > Launch.java:15) > > Caused by: > > org.oasisopen.sca.ServiceRuntimeException: [Contribution: test, Artifact: > store.composite] - XMLSchema validation error occured in: store.composite > ,line = 8, column = 9, Message = cvc-complex-type.2.4.a: Invalid content was > found starting with element 'service'. One of > '{"http://docs.oasis-open.org/ns/opencsa/sca/200903":documentation, > "http://docs.oasis-open.org/ns/opencsa/sca/200903":implementation}' is > expected. > > at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.analyzeProblems( > > NodeFactoryImpl.java:174) > > at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions( > > NodeFactoryImpl.java:333) > > at org.apache.tuscany.sca.node.impl.NodeImpl.start( > > NodeImpl.java:133) > > ... 1 more
You are using the 2.x Runtime, but the guide you mentioned was designed to the 1.x runtime. Please try with our latest 1.x release. -- Luciano Resende http://people.apache.org/~lresende http://lresende.blogspot.com/