Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » createSharedObject in RCP leads to ClassNotFoundException
createSharedObject in RCP leads to ClassNotFoundException [message #581311] Mon, 16 May 2005 03:46 Go to next message
Simon Li is currently offline Simon Li
Messages: 16
Registered: July 2009
Junior Member
Hi,

I'm studying ECF by writing some code. When I tried adapt ECF hello sample
into an RCP, I encountered strange "java.lang.ClassNotFoundException". Can
anybody give some hint?

What I've done:
1. create a RCP application with a SWT button on the view.
2. import org.eclipse.ecf.provider.app.ClientApplication from the ECF cvs
and rename it as communication.EcfComponent in my project.
3. write a public class MySharedObject implements ISharedObject

The strange thing is:
If I run communication.EcfComponent as Java application, with application "-
communication.MySharedObject" it works fine.
If I want to init the EcfComponent in RCP, the
java.lang.ClassNotFoundException will be raised.

I attached the log for your reference.
Best Regards!
Simon Li


  • Attachment: err.log
    (Size: 7.98KB, Downloaded 76 times)
Re: createSharedObject in RCP leads to ClassNotFoundException [message #581324 is a reply to message #581311] Mon, 16 May 2005 09:38 Go to previous messageGo to next message
Simon Li is currently offline Simon Li
Messages: 16
Registered: July 2009
Junior Member
Hi,

I've found the problem. I didn't export the package in plugin.xml.

Thank you for your attention.

Best Regards!
Simon

"Simon Li" <ali_fred@21cn.com> wrote in message
news:d69jmf$3np$1@news.eclipse.org...
> Hi,
>
> I'm studying ECF by writing some code. When I tried adapt ECF hello sample
> into an RCP, I encountered strange "java.lang.ClassNotFoundException". Can
> anybody give some hint?
>
> What I've done:
> 1. create a RCP application with a SWT button on the view.
> 2. import org.eclipse.ecf.provider.app.ClientApplication from the ECF cvs
> and rename it as communication.EcfComponent in my project.
> 3. write a public class MySharedObject implements ISharedObject
>
> The strange thing is:
> If I run communication.EcfComponent as Java application, with application
"-
> communication.MySharedObject" it works fine.
> If I want to init the EcfComponent in RCP, the
> java.lang.ClassNotFoundException will be raised.
>
> I attached the log for your reference.
> Best Regards!
> Simon Li
>
>
>
Re: createSharedObject in RCP leads to ClassNotFoundException [message #581376 is a reply to message #581324] Tue, 17 May 2005 11:03 Go to previous message
Scott Lewis is currently offline Scott Lewis
Messages: 970
Registered: July 2009
Senior Member
Hi Simon,

Simon Li wrote:
> Hi,
>
> I've found the problem. I didn't export the package in plugin.xml.

Right. Note that the new 'buddy loader' addition to OSGI will help with
preventing this problem in the near future (3.1).

We also will add this question to the FAQ. Thanks.

Scott
Previous Topic:Using ECF on RCP
Next Topic:ECF Discovery API: NEW
Goto Forum:
  


Current Time: Fri Aug 22 23:39:35 EDT 2014

Powered by FUDForum. Page generated in 0.01573 seconds