[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [sca-bpel] Instructions on how to download and run the BPEL Testcaseswith Apache Tuscany
Thanks for that. I did't know exactly which schema/NS version the Tuscany drop from Mike supported. I'll make those changes and rerun it later today. -Anish -- On 2/25/2010 9:51 AM, Luciano Resende wrote: > The problem seems to be the sca-contribution.xml > > [junit] SEVERE: Element > {http://docs.oasis-open.org/ns/opencsa/sca/200903}contribution cannot be > > Shouldn't the namespace be 200912 > http://docs.oasis-open.org/ns/opencsa/sca/200912 > <http://docs.oasis-open.org/ns/opencsa/sca/200903> > > - Luciano > ------------------------------------------------------------------------ > *Luciano Resende* > Open Source SOA - _Apache Tuscany_ <http://incubator.apache.org/tuscany/> > 4400 N 1st St, San Jose - CA > notes: _Luciano Resende/Westford/IBM_ <mailto:Luciano Resende/Westford/IBM> > internet IBM: _luciano_resende@us.ibm.com_ > <mailto:luciano_resende@us.ibm.com> > internet ASF: _lresende@apache.org_ <mailto:lresende@apache.org> > Personal blog @ developerWorks : _link_ > <http://www-03.ibm.com/developerworks/blogs/page/lresende> > Apache Tuscany blog: _link_ <http://apache-tuscany.blogspot.com/> > ------------------------------------------------------------------------ > Great things are not done by impulse but by a series of small things > brought together > - Vincent Van Gogh > > > > > > > From: Anish Karmarkar <Anish.Karmarkar@oracle.com> > To: sca-bpel@lists.oasis-open.org > Date: 02/25/2010 08:48 AM > Subject: Re: [sca-bpel] Instructions on how to download and run the BPEL > Testcases with Apache Tuscany > ------------------------------------------------------------------------ > > > > Here is the full stack trace. The problem seems to be schema validation > error. > > ----------------------------------------------------- > Buildfile: e:\akarmark\share\stds\sca\svn\sca-bpel\TestCases\build.xml > > run: > [junit] Testsuite: client_sbpel.SBPEL_2001_TestCase > [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 11.812 sec > [junit] ------------- Standard Output --------------- > [junit] Implementation language set to: _BPEL > [junit] Exception during startup: java.lang.ClassCastException: > org.apache.tuscany.sca.assembly.impl.ExtensionImpl cannot be cast to > org.apache.tuscany.sca.contribution.ContributionMetadata > [junit] Exception received during startup - detail: > java.lang.ClassCastException: > org.apache.tuscany.sca.assembly.impl.ExtensionImpl cannot be cast to > org.apache.tuscany.sca.contribution.ContributionMetadata > [junit] ------------- ---------------- --------------- > [junit] ------------- Standard Error ----------------- > [junit] Feb 25, 2010 8:46:00 AM > org.apache.tuscany.sca.node.impl.NodeImpl start > [junit] INFO: Starting node: > http://tuscany.apache.org/sca/1.1/nodes/default0 domain: tuscany.apache.org > [junit] Feb 25, 2010 8:46:02 AM > org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions > [junit] INFO: Loading contribution: > file:/E:/akarmark/share/stds/sca/svn/sca-bpel/TestCases/SBPEL_General/target/classes/ > [junit] Feb 25, 2010 8:46:06 AM > org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader > [Contribution: SBPEL_General, Artifact: META-INF/sca-contribution.xml] > (SchemaError) > [junit] SEVERE: XMLSchema validation error occured in: > file:/E:/akarmark/share/stds/sca/svn/sca-bpel/TestCases/SBPEL_General/target/classes/META-INF/sca-contribution.xml > > ,line = 9, column = 1, Message = cvc-elt.1: Cannot find the declaration > of element 'contribution'. > [junit] Feb 25, 2010 8:46:06 AM > org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor > > [Contribution: SBPEL_General, Artifact: META-INF/sca-contribution.xml] > (ElementCannotBeProcessed) > [junit] SEVERE: Element > {http://docs.oasis-open.org/ns/opencsa/sca/200903}contribution cannot be > processed. ([row,col,system-id]: > [9,1,"file:/E:/akarmark/share/stds/sca/svn/sca-bpel/TestCases/SBPEL_General/target/classes/META-INF/sca-contribution.xml"]) > [junit] java.lang.IllegalStateException: > java.lang.ClassCastException: > org.apache.tuscany.sca.assembly.impl.ExtensionImpl cannot be cast to > org.apache.tuscany.sca.contribution.ContributionMetadata > [junit] at > org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:175) > [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [junit] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [junit] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [junit] at java.lang.reflect.Method.invoke(Method.java:597) > [junit] at > org.apache.tuscany.sca.node.NodeFactory$NodeProxy.start(NodeFactory.java:116) > [junit] at > client.TuscanyRuntimeBridge.startContribution(TuscanyRuntimeBridge.java:82) > [junit] at > client.BaseJAXWSTestRunner.startContribution(BaseJAXWSTestRunner.java:238) > [junit] at > client.BaseJAXWSTestRunner.setUp(BaseJAXWSTestRunner.java:147) > [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [junit] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [junit] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [junit] at java.lang.reflect.Method.invoke(Method.java:597) > [junit] at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) > [junit] at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) > [junit] at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) > [junit] at > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27) > [junit] at > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) > [junit] at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73) > [junit] at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) > [junit] at > org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) > [junit] at > org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) > [junit] at > org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) > [junit] at > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) > [junit] at > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) > [junit] at org.junit.runners.ParentRunner.run(ParentRunner.java:220) > [junit] at > junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:422) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:931) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:785) > [junit] Caused by: java.lang.ClassCastException: > org.apache.tuscany.sca.assembly.impl.ExtensionImpl cannot be cast to > org.apache.tuscany.sca.contribution.ContributionMetadata > [junit] at > org.apache.tuscany.sca.contribution.xml.ContributionMetadataDocumentProcessor.read(ContributionMetadataDocumentProcessor.java:85) > [junit] at > org.apache.tuscany.sca.contribution.xml.ContributionMetadataDocumentProcessor.read(ContributionMetadataDocumentProcessor.java:1) > [junit] at > org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExtensionPoint$LazyURLArtifactProcessor.read(DefaultURLArtifactProcessorExtensionPoint.java:288) > [junit] at > org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.read(ExtensibleURLArtifactProcessor.java:109) > [junit] at > org.apache.tuscany.sca.contribution.processor.impl.ContributionContentProcessor.read(ContributionContentProcessor.java:152) > [junit] at > org.apache.tuscany.sca.contribution.processor.impl.ContributionContentProcessor.read(ContributionContentProcessor.java:1) > [junit] at > org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExtensionPoint$LazyURLArtifactProcessor.read(DefaultURLArtifactProcessorExtensionPoint.java:288) > [junit] at > org.apache.tuscany.sca.deployment.impl.DeployerImpl.loadContribution(DeployerImpl.java:549) > [junit] at > org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(NodeFactoryImpl.java:295) > [junit] at > org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:131) > [junit] ... 29 more > [junit] Feb 25, 2010 8:46:06 AM > org.apache.tuscany.sca.node.impl.NodeImpl stop > [junit] INFO: Stopping node: > http://tuscany.apache.org/sca/1.1/nodes/default0 > [junit] ------------- ---------------- --------------- > [junit] > [junit] Testcase: testDummy took 11.797 sec > [junit] FAILED > [junit] expected:<[SBPEL_2001 request service1 operation1 invoked]> > but was:<[exception]> > [junit] junit.framework.AssertionFailedError: expected:<[SBPEL_2001 > request service1 operation1 invoked]> but was:<[exception]> > [junit] at > client.BaseJAXWSTestRunner.checkException(BaseJAXWSTestRunner.java:223) > [junit] at > client.BaseJAXWSTestRunner.setUp(BaseJAXWSTestRunner.java:152) > [junit] > > -------------------------------------------------------------------- > > > -Anish > -- > > On 2/23/2010 5:02 PM, Anish Karmarkar wrote: > > I found two issues: > > > > 1) minor one: the instructions talk about the build.xml file in a way > > that leads one to think that there is a build.xml in SVN, whereas one is > > supposed to copy/modify/save the build.xml from the instruction. > > > > 2) The two files: > > > sca-bpel/TestCases/Test_client_SBPEL/src/main/resources/oasis-sca-tests.properties > > > > > sca-bpel/TestCases/Test_client_SBPEL/target/classes/oasis-sca-tests.properties > > > > > > have a hard-coded value for the property > > "org.oasis.sca.tests.assembly.contribution.location" (set to > > "file:/C:/OASIS_TESTS/SCA-BPEL/TestCases/%1/target/classes/"). This, > > obviously, has to be customized. > > > > > > Once I had the setup right (or think I got it right), I ran ant and got > > the following error: > > > > [junit] Exception during startup: java.lang.ClassCastException: > > org.apache.tuscany.sca.assembly.impl.ExtensionImpl cannot be cast to > > org.apache.tuscany.sca.contribution.ContributionMetadata > > [junit] Exception received during startup - detail: > > java.lang.ClassCastException: > > org.apache.tuscany.sca.assembly.impl.ExtensionImpl cannot be cast to > > org.apache.tuscany.sca.contribution.ContributionMetadata > > > > > > -Anish > > -- > > > > On 2/19/2010 1:02 PM, Patil, Sanjay wrote: > >> Hi Mike, > >> > >> Thanks for sending the instructions. I could proceed up to the last step > >> by following your instructions except for one minor glitch: The > >> build.xml uses the filename Test_Client.jar where as the actual file > >> name is Test_Client-1.0.jar. > >> > >> However, I am still unable to launch the runtime and execute the test > >> from the last step. I am getting the following class def error although > >> I can very much see that the NodeLauncher class is included in the > >> tuscany-node-launcher-equinox-2.0-SNAPSHOT.jar file, which is added to > >> the class path in the build.xml. I am guessing that there is some other > >> configuration which I may be missing. Perhaps you have some insight > here. > >> > >> Please see below for the error message I am getting. > >> > >> Thanks, > >> > >> Sanjay > >> > >> Buildfile: C:\Users\SCA\BPEL TC\Tesiting\TestCases\build.xml > >> > >> C:\Users\SCA\BPEL TC\Tesiting\TestCases>ant > >> > >> Buildfile: C:\Users\SCA\BPEL TC\Tesiting\TestCases\build.xml > >> > >> run: > >> > >> [junit] Testsuite: client_sbpel.SBPEL_2001_TestCase > >> > >> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.11 sec > >> > >> [junit] ------------- Standard Output --------------- > >> > >> [junit] Implementation language set to: _BPEL > >> > >> [junit] ------------- ---------------- --------------- > >> > >> [junit] > >> > >> [junit] Testcase: testDummy took 0.094 sec > >> > >> [junit] Caused an ERROR > >> > >> [junit] org/apache/tuscany/sca/node/equinox/launcher/NodeLauncher > >> > >> [junit] java.lang.NoClassDefFoundError: > >> org/apache/tuscany/sca/node/equinox/ > >> > >> launcher/NodeLauncher > >> > >> [junit] at client.TuscanyRuntimeBridge.startContribution(TuscanyRuntimeB > >> > >> ridge.java:72) > >> > >> [junit] at client.BaseJAXWSTestRunner.startContribution(BaseJAXWSTestRun > >> > >> ner.java:238) > >> > >> [junit] at client.BaseJAXWSTestRunner.setUp(BaseJAXWSTestRunner.java:147 > >> > >> ) > >> > >> [junit] Caused by: java.lang.ClassNotFoundException: > >> org.apache.tuscany.sca. > >> > >> node.equinox.launcher.NodeLauncher > >> > >> [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > >> > >> [junit] at java.security.AccessController.doPrivileged(Native Method) > >> > >> [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > >> > >> [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > >> > >> [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > >> > >> [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > >> > >> [junit] > >> > >> BUILD FAILED > >> > >> C:\Users\SCA\BPEL TC\Tesiting\TestCases\build.xml:22: Test > >> client_sbpel.SBPEL_20 > >> > >> 01_TestCase failed > >> > >> *From:* Mike Edwards [mailto:mike_edwards@uk.ibm.com] > >> *Sent:* Friday, February 05, 2010 4:13 AM > >> *To:* OASIS BPEL > >> *Subject:* [sca-bpel] Instructions on how to download and run the BPEL > >> Testcases with Apache Tuscany > >> > >> > >> Folks, > >> > >> (Finally !!!) > >> > >> I have completed the work item to describe how to download, build and > >> run the SCA BPEL test suite. > >> > >> You can get a copy of the document which describes the steps required > >> here: > >> > >> > http://www.oasis-open.org/apps/org/workgroup/sca-bpel/download.php/36285/Running_SCA_BPEL_TestCases.odt > >> > >> > >> > http://www.oasis-open.org/apps/org/workgroup/sca-bpel/download.php/36286/Running_SCA_BPEL_TestCases.pdf > >> > >> > >> > >> > >> Happy testing!! > >> > >> Yours, Mike. > >> > >> Strategist - Emerging Technologies, SCA & SDO. > >> Co Chair OASIS SCA Assembly TC. > >> IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain. > >> Phone & FAX: +44-1962-818014 Mobile: +44-7802-467431 > >> Email: mike_edwards@uk.ibm.com > >> > >> ------------------------------------------------------------------------ > >> > >> /Unless stated otherwise above: > >> IBM United Kingdom Limited - Registered in England and Wales with number > >> 741598. > >> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 > >> 3AU/ > >> > >> > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe from this mail list, you must leave the OASIS TC that > > generates this mail. Follow this link to all your TCs in OASIS at: > > https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php > > > > --------------------------------------------------------------------- > To unsubscribe from this mail list, you must leave the OASIS TC that > generates this mail. Follow this link to all your TCs in OASIS at: > https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]