On Fri, Mar 7, 2008 at 7:33 PM, Rajini Sivaram <[EMAIL PROTECTED]>
wrote:

> itest/osgi-tuscany contains tests for an OSGi-based Tuscany runtime. I
> haven't included the tests in itests/pom.xml because they need to create
> bundles corresponding to Tuscany, and hence require around 100 megabytes.
> Since we currently dont have other tests for a multi-classloader Tuscany
> environment, and because it is very difficult to ensure that changes to
> Tuscany dont add more problems for an OSGi-based Tuscany, I would like to
> add itest/osgi-tuscany to the main build if there are no objections.
>
> There are still many outstanding issues with running Tuscany under OSGi,
> but
> the test directory contains a harness to enable Tuscany samples to be run
> using an OSGi-based Tuscany runtime, and hence provides test cases for all
> the known outstanding issues (the broken tests are currently commented
> out,
> but can be turned on as each problem is fixed).
>
> Thoughts? Objections?
>
> Thank you...
>
> Regards,
>
> Rajini
>


I had a look at building this and get the test failure below, any ideas what
could be going wrong?

   ...ant

testOSGiTuscany_BindingWS(
org.apache.tuscany.sca.test.osgi.tuscany.OSGiTuscanyRuntimeTestCase)  Time
elapsed: 14.782 sec  <<< ERROR!
org.osgi.framework.BundleException: Unresolved package in bundle 11:
package; (&(package=org.apache.tuscany.sca.extensibility)(version>=0.0.
0))
        at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1711)
        at org.apache.felix.framework.Felix._startBundle(Felix.java:1579)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1532)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:354)
        at
org.apache.tuscany.sca.test.util.TuscanyLoader.loadTuscanyIntoOSGi(
TuscanyLoader.java:76)
        at
org.apache.tuscany.sca.test.osgi.tuscany.OSGiTuscanyRuntimeTestCase.testOSGiTuscanyUsingOSGiClient
(OSGiTuscanyRuntimeTestCase.jav
a:87)
        at
org.apache.tuscany.sca.test.osgi.tuscany.OSGiTuscanyRuntimeTestCase.testOSGiTuscany_BindingWS
(OSGiTuscanyRuntimeTestCase.java:81)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.junit.internal.runners.TestMethodRunner.executeMethodBody(
TestMethodRunner.java:99)
        at org.junit.internal.runners.TestMethodRunner.runUnprotected(
TestMethodRunner.java:81)
        at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:34)
        at org.junit.internal.runners.TestMethodRunner.runMethod(
TestMethodRunner.java:75)
        at org.junit.internal.runners.TestMethodRunner.run(
TestMethodRunner.java:45)
        at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(
TestClassMethodsRunner.java:75)
        at org.junit.internal.runners.TestClassMethodsRunner.run(
TestClassMethodsRunner.java:36)
        at org.junit.internal.runners.TestClassRunner$1.runUnprotected(
TestClassRunner.java:42)
        at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:34)
        at org.junit.internal.runners.TestClassRunner.run(
TestClassRunner.java:52)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(
JUnit4TestSet.java:62)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
AbstractDirectoryTestSuite.java:138)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
AbstractDirectoryTestSuite.java:125)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
SurefireBooter.java:308)
        at org.apache.maven.surefire.booter.SurefireBooter.main(
SurefireBooter.java:879)


Results :

Tests in error:
  startTuscanyRuntimeInOSGi(
org.apache.tuscany.sca.test.osgi.tuscany.OSGiTuscanyRuntimeTestCase)
  testOSGiTuscany_ImplementationJava(
org.apache.tuscany.sca.test.osgi.tuscany.OSGiTuscanyRuntimeTestCase)
  testOSGiTuscany_BindingWS(
org.apache.tuscany.sca.test.osgi.tuscany.OSGiTuscanyRuntimeTestCase)

Reply via email to