Tomasz,

I ran into the same problem you're having when I tried to create Tuscany
Eclipse plug-ins.  I'm assuming you have Tuscany in several different
plug-ins, like org.apache.tuscany.sdo.api, org.apache.tuscany.sdo.impl,
org.apache.tuscany.sdo.lib and org.apache.tuscany.sdo.tools.  If that's the
way yours are set up, you'll need to make use of Eclipse buddy policy,
described in http://www.eclipsezone.com/articles/eclipse-vms/ (look at the
ClassLoaders, Bundles and Buddies section).  Basically, you need to add
Eclipse-BuddyPolicy: dependent to the MANIFEST.MF in the api, impl and lib
plug-ins.  Then, make whatever plug-in your void exmp() code is in depend
on the Tuscany plug-ins and everything should work.

Hope that helps,

Eric


|------------>
| From:      |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Tomasz Klukowski <[EMAIL PROTECTED]>                                         
                                                        |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |[email protected]                                                   
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |05/12/2008 05:08 PM                                                          
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |SDO in Eclipse Plug-in                                                       
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|





I want to make an Eclipse Plug-in that uses Apache Tuscany SDO library.
Unfortunatelly I've come into a severe problem that I can't overcome. I've
tried many different things but nothing has worked and I'm very desperete
for any help.
Here's a description of my problem:

At the moment of calling SDOUtil.createHelperContex() the execution of the
calling method stops. Nothing happens and no exception is thrown.
For example calling of this method causes nothing more than writing "look!"
on the console:

void exmp() {
  System.out.println("look!");
  SDOUtil.createHelperContext();
  System.out.println("I'm on TV!");
}

A similar problem is with HelperProvider.getDefaultContext().

I suppose the problem is that not all needed libraries are
loaded\initialized as I run the project as the Eclipse Plug-in.
When I used the SDO-Tuscany in application compiled as the SWT Application
everything worked fine!

Is there any way to make the SDO-Tuscany library work in an Eclipse
Plug-in?


Reply via email to