Re: BundleException - unresolved package org.osgi.framework

2008-06-02 Thread Rajini Sivaram
Eugene, Thank you for the update. On 6/2/08, Yevgeniy Melnichuk <[EMAIL PROTECTED]> wrote: > > sorry, for the last email... copy'n'paste didn't work as expected. > > what i intended to say was: > > i solved the problem. I use ant for builing and running my application. > Running it in the same j

Re: BundleException - unresolved package org.osgi.framework

2008-06-01 Thread Rajini Sivaram
Eugene, Yes, org.osgi.framework is exported from the OSGi container. If you are running Tuscany outside of OSGi and using , the embedded Felix runtime started by Tuscany will export org.osgi.framework version 1.3.0. So your bundle should be able to import this package if you haven't specified any

Re: Jaxb & Tuscany Problems

2008-05-28 Thread Rajini Sivaram
On 5/27/08, Sebastian Voigt <[EMAIL PROTECTED]> wrote: > > In our application we use Jaxb for reading and storing of configurations. > This application is distributed and uses Tuscany for the remote > communication. > The first problem that we have is that we load a configuration file with > jaxb a

Re: OSGi service with SDO

2008-04-17 Thread Rajini Sivaram
tSCADomain. nit>(DefaultSCADomain.java:113) > [java] at > org.apache.tuscany.sca.host.embedded.SCADomain.createNewInsta > nce(SCADomain.java:245) > [java] at > org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SC > ADomain.java:73) > [java] at > suppl

Re: OSGi service with SDO

2008-04-13 Thread Rajini Sivaram
Roshan, I have added test bundles and testcases in itest/osgi-implementation which test both implementation.java components with references to OSGi services and implementation.osgi components with references to Java services where the parameters are SDOs. The code is in the directory helloworld.sd

Re: OSGi service with SDO

2008-04-10 Thread Rajini Sivaram
Roshan, The SDO packages required to create SDO instances from OSGi bundles are now exported by the system bundle of the embedded Felix runtime started by Tuscany. The changes have been committed under revision 646679. You should now be able to import these packages in your bundles without install

Re: Question about Conversational OSGi Services and Service References

2008-04-08 Thread Rajini Sivaram
Daniel, Looking at the invocation code for OSGi and Java which creates the instances for conversations, there shouldn't be any difference between the two (except that OSGi instance creation takes much longer). One of the differences between implementation.java and implementation.osgi is that the

Re: Question about Conversational OSGi Services and Service References

2008-04-07 Thread Rajini Sivaram
Daniel, You are on the right track. Sorry, I should have mentioned this before. The classes from which @Scope annotations are processed in implementation.osgi should be listed under the attribute "classes" in in the composite file. http://tuscany.apache.org/xmlns/sca/1.0bundleSymbolicName="g

Re: Question about Conversational OSGi Services and Service References

2008-04-07 Thread Rajini Sivaram
> This is my component description file: > > > > > > > > > > > Any ideas what's the issue here ? > Thanks in advance. > > Bye, > Daniel > > > > -Ursprüngliche Nachricht- > > Von: Rajini Sivar

Re: Question about Conversational OSGi Services and Service References

2008-04-06 Thread Rajini Sivaram
Daniel, The default scope for implementation.osgi components is COMPOSITE - this matches standard OSGi services where a single instance of the service is added to the OSGi service registry and the same instance is returned by any OSGi registry lookup. Other SCA scopes including CONVERSATION are su

Re: OSGi service with SDO

2008-03-30 Thread Rajini Sivaram
Roshan, The classes corresponding to the SDO datatype should be imported by (or contained in) the bundle implementing the OSGi service. And if you are using the default SCA binding, the Java service and the OSGi service should be using the same classes for the SDO datatypes. Which means that the J

Re: Tuscany in OSGi

2008-03-19 Thread Rajini Sivaram
On 3/19/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > I've done some experiments now and this leads me to another > question: In my sample a component A calls a component B > which in turn uses the ComponentContext to get a CallableReference > to start a conversation with a component

Re: Tuscany in OSGi

2008-03-19 Thread Rajini Sivaram
On 3/19/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Comments inline, > > > -Original Message----- > > From: Rajini Sivaram [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, March 19, 2008 9:58 AM > > To: tuscany-user@ws.apache.org > > S

Re: Tuscany in OSGi

2008-03-19 Thread Rajini Sivaram
Juergen, Comments inline. On 3/18/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi again, > > Ok, I'm getting further, i can use implementation.osgi now in > Eclipse/Equinox, > can call an OSGi service from an implementation.java component and expose > an > OSGi service using binding.ws.

Re: Tuscany in OSGi

2008-03-17 Thread Rajini Sivaram
Juergen, Could you try a newer build - I am struggling to keep up with changes to Tuscany. If the tests continue to fail, could you send me a full log please? On 3/17/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Rajini, > > >> org.apache.tuscany.sca.test.osgi.tuscany.OSGiTuscanyRuntimeT

Re: Tuscany in OSGi

2008-03-14 Thread Rajini Sivaram
On 3/14/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > Thanks for the advice, it seems that the missing bundle activator > was the basic problem, but then it started to get really funny (-; > > First, I just used the itest/osgi-tuscany bundles and got > an error "missing .componentTyp

Re: Tuscany in OSGi

2008-03-13 Thread Rajini Sivaram
Juergen, itests/osgi-tuscany generates Tuscany bundles for testing, and the Tuscany runtime bundle which contains modules/osgi-runtime uses org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator as its bundle activator. This bundle activator sets the bundleContext that Tuscany(including implement

Re: Tuscany in OSGi

2008-03-07 Thread Rajini Sivaram
Daniel, >From your stack trace, it looks like Tuscany didn't get as far as handling a bundleresource:// URL. It looks like "tuscany-sca.xsd" could not be located, using ReallySmallRuntimeBuilder.*class*.getClassLoader().getResource(" tuscany-sca.xsd"). Do you have Tuscany packaged as a single bund

Re: SDO Java 1.1-incubating release candidate 1

2008-02-25 Thread Rajini Sivaram
Amita, On 2/25/08, Amita Vadhavkar <[EMAIL PROTECTED]> wrote: > > Below are the things pending before I can form RC2, please see if anybody > have any inputs. > All others comments are acted on. > > Pending: > > 1) The src distro includes the impl/.felix folder - is that really > required > or > c

Re: Eclipse RCP apps and Tuscany

2008-01-11 Thread Rajini Sivaram
Simon, On 1/11/08, Simon Laws <[EMAIL PROTECTED]> wrote: > > Hi Rajini > > > > But the code that I have run into problems with are in > > > > > > > org.apache.tuscany.sca.node.util.SCAContributionUtil.findContributionFromResource > > (ClassLoader > > classLoader, String compositeString) > > > > w

Re: Eclipse RCP apps and Tuscany

2008-01-11 Thread Rajini Sivaram
es that use the > new APIs, see callback-ws-client, callback-ws-service and > calculator-distributed. > > Do the same issues apply to the new APIs, or only when the old > DefaultSCADomain class is used? > > Simon > > Rajini Sivaram wrote: > > > SCADomain.newInstance

Re: Re[2]: Eclipse RCP apps and Tuscany

2008-01-10 Thread Rajini Sivaram
SCADomain.newInstance(compositeName), which is used in many of the Tuscany samples to create a DefaultSCADomain works only if contextClassLoader.getResource(compositeName) returns a file:// or jar:// URL. This is broken when Tuscany is run under OSGi, since Apache Felix returns a bundle:// URL and

Re: NPE when calling webservice component

2007-12-21 Thread Rajini Sivaram
As far as I know Tuscany never handled the case where multiple copies of a module were available on the CLASSPATH. Tuscany uses classLoader.getResources("META-INF/services/org.apache.tuscany.sca.core.ModuleActivator) to read the list of module activators. If the same resource is available from tw

Re: can tuscany dynamically load components ala OSGi plug-in framework?

2007-12-03 Thread Rajini Sivaram
David, implementation.osgi enables OSGi bundles to be used as the implementation type for an SCA component. Static SCA wiring is used to wire services and references at the moment (OSGi bundles continue to use the OSGi programming model based on the OSGi service registry). Tuscany runtime does not

Re: Eclipse RCP apps and Tuscany

2007-11-23 Thread Rajini Sivaram
Hi, Tuscany supports OSGi bundle contributions which are currently loaded using the Apache Felix OSGi runtime by default. These contributions can contain composite files and other meta-data which are loaded using OSGi and passed around as URLs. Tests for OSGi contributions are run under Felix wit