OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-bpel message

[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


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/
>
>
>
>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]