Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoad
ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoad [message #136422] Wed, 14 March 2007 07:12 Go to next message
Allen Wang is currently offline Allen WangFriend
Messages: 28
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_002A_01C7664B.38EFF9E0
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable

Hi, All.

I come across a ClassNotFoundException when I extend my own customized =
cell editor to my customized swt widget according to the article: =
Extending The Visual Editor Tutorial.
When I click the property cell editor, this exception appears, what =
should I do to avoid this?

java.lang.ClassNotFoundException: =
org.eclipse.customize.example.CustomLabelEditor
at =
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoa=
der.java:402)
at =
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoa=
der.java:347)
at =
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(Defaul=
tClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:494)
at =
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoa=
der.java:278)
at =
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.=
java:227)
at =
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(Abstrac=
tBundle.java:1245)
at =
org.eclipse.ve.internal.cde.core.CDEPlugin.getClassFromStrin g(CDEPlugin.j=
ava:139)
at =
org.eclipse.ve.internal.cde.core.CDEPlugin.getClassFromStrin g(CDEPlugin.j=
ava:96)
at =
org.eclipse.ve.internal.java.core.BeanPropertyDescriptorAdap ter.createPro=
pertyEditor(BeanPropertyDescriptorAdapter.java:215)
at =
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.getEdito=
r(AbstractPropertySheetEntry.java:465)
at =
org.eclipse.ui.views.properties.PropertySheetViewer.activate CellEditor(Pr=
opertySheetViewer.java:154)
at =
org.eclipse.ui.views.properties.PropertySheetViewer.handleSe lect(Property=
SheetViewer.java:702)
at =
org.eclipse.ui.views.properties.PropertySheetViewer.access$7 (PropertyShee=
tViewer.java:680)
at =
org.eclipse.ui.views.properties.PropertySheetViewer$5.mouseD own(PropertyS=
heetViewer.java:790)
at =
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:133)=

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at =
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:41=
9)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at =
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at =
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivat=
or.java:78)
at =
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplicati=
on(EclipseAppLauncher.java:92)
at =
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Eclips=
eAppLauncher.java:68)
at =
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:4=
00)
at =
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:1=
77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at =
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java=
:85)
at =
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java=
:58)
at =
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorI=
mpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

Waiting for your kindly reply!
Thanks.

Hexise


------=_NextPart_000_002A_01C7664B.38EFF9E0
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dgb2312">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi, All.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I come across a ClassNotFoundException =
when I=20
extend my own customized cell editor to my customized swt widget =
according to=20
the article: Extending The Visual Editor Tutorial.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>When I click the property cell editor, =
this=20
exception appears, what should I do to avoid this?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>java.lang.ClassNotFoundException:=20
org.eclipse.customize.example.CustomLabelEditor<BR>&nbsp;at=20
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoa=
der.java:402)<BR>&nbsp;at=20
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoa=
der.java:347)<BR>&nbsp;at=20
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(Defaul=
tClassLoader.java:83)<BR>&nbsp;at=20
java.lang.ClassLoader.loadClass(ClassLoader.java:494)<BR>&nbsp;at=20
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoa=
der.java:278)<BR>&nbsp;at=20
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.=
java:227)<BR>&nbsp;at=20
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(Abstrac=
tBundle.java:1245)<BR>&nbsp;at=20
org.eclipse.ve.internal.cde.core.CDEPlugin.getClassFromStrin g(CDEPlugin.j=
ava:139)<BR>&nbsp;at=20
org.eclipse.ve.internal.cde.core.CDEPlugin.getClassFromStrin g(CDEPlugin.j=
ava:96)<BR>&nbsp;at=20
org.eclipse.ve.internal.java.core.BeanPropertyDescriptorAdap ter.createPro=
pertyEditor(BeanPropertyDescriptorAdapter.java:215)<BR>&nbsp;at=20
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.getEdito=
r(AbstractPropertySheetEntry.java:465)<BR>&nbsp;at=20
org.eclipse.ui.views.properties.PropertySheetViewer.activate CellEditor(Pr=
opertySheetViewer.java:154)<BR>&nbsp;at=20
org.eclipse.ui.views.properties.PropertySheetViewer.handleSe lect(Property=
SheetViewer.java:702)<BR>&nbsp;at=20
org.eclipse.ui.views.properties.PropertySheetViewer.access$7 (PropertyShee=
tViewer.java:680)<BR>&nbsp;at=20
org.eclipse.ui.views.properties.PropertySheetViewer$5.mouseD own(PropertyS=
heetViewer.java:790)<BR>&nbsp;at=20
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:133)=
<BR>&nbsp;at=20
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66) <BR>&nbsp=
;at=20
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)<BR >&nbsp;at=20
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348) <BR>&=
nbsp;at=20
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968) <BR>&nb=
sp;at=20
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914) <BR>&n=
bsp;at=20
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) <BR>&nbsp;at =

org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:41=
9)<BR>&nbsp;at=20
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149) <BR>&=
nbsp;at=20
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95) <BR=
>&nbsp;at=20
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivat=
or.java:78)<BR>&nbsp;at=20
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplicati=
on(EclipseAppLauncher.java:92)<BR>&nbsp;at=20
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Eclips=
eAppLauncher.java:68)<BR>&nbsp;at=20
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:4=
00)<BR>&nbsp;at=20
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:1=
77)<BR>&nbsp;at=20
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<BR>&nbsp;at=20
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java=
:85)<BR>&nbsp;at=20
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java=
:58)<BR>&nbsp;at=20
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorI=
mpl.java:60)<BR>&nbsp;at=20
java.lang.reflect.Method.invoke(Method.java:391)<BR>&nbsp;at=20
org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 ) <BR>&nbsp;at=
=20
org.eclipse.core.launcher.Main.basicRun(Main.java:280)<BR>&nbsp;at=20
org.eclipse.core.launcher.Main.run(Main.java:977)<BR>&nbsp;at=20
org.eclipse.core.launcher.Main.main(Main.java:952)</FONT></DIV >
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Waiting for your kindly =
reply!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Hexise</DIV>
<DIV><BR></DIV></FONT></BODY></HTML>

------=_NextPart_000_002A_01C7664B.38EFF9E0--
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #136438 is a reply to message #136422] Wed, 14 March 2007 14:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

How did you define your customized editor to the system? In other words
where did you tell it to use your editor. The exact XMI is needed.

--
Thanks,
Rich Kulp
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #136462 is a reply to message #136438] Thu, 15 March 2007 05:26 Go to previous messageGo to next message
Allen Wang is currently offline Allen WangFriend
Messages: 28
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_001A_01C76705.9158ECD0
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable

Thanks for your reply!

I use override method to define my customized editor.

In plugin.xml, add this extention:

<extension
point=3D"org.eclipse.jem.beaninfo.registrations">
<registration
container=3D"org.eclipse.customize.example.container">
<override
package=3D"org.eclipse.customize.example"
path=3D"overrides/org/eclipse/customize/example">
</override>
</registration> =20
</extension>

And an override file under folder =
"overrides/org/eclipse/customize/example":

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<xmi:XMI xmi:version=3D"2.0" xmlns:xmi=3D"http://www.omg.org/XMI"
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
=
xmlns:org.eclipse.ve.internal.cde.decorators=3D"http:///org/eclipse/ve/in=
ternal/cde/decorators.ecore"
xmlns:ecore=3D"http://www.eclipse.org/emf/2002/Ecore"
xmlns:event=3D"event.xmi">
<event:Add featureName=3D"eStructuralFeatures">
<addedEObjects xsi:type=3D"ecore:EReference" name=3D"text" =
unsettable=3D"true">
<eAnnotations
=
xsi:type=3D" org.eclipse.ve.internal.cde.decorators:BasePropertyDecorator "=

=
cellEditorClassname=3D"org.eclipse.customize.example/org.eclipse.customiz=
e.example.CustomLabelEditor" />
</addedEObjects>
</event:Add>
</xmi:XMI>

And the name "text" is the name of a property I declared in my beaninfo =
class.

Are there anything wrong? It seems that the BundleLoader know my editor =
name(org.eclipse.customize.example.CustomLabelEditor) but can't find my =
editor class.

Best regards,

Hexise


"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message =
news:et8v94$mt4$1@utils.eclipse.org...
> How did you define your customized editor to the system? In other =
words
> where did you tell it to use your editor. The exact XMI is needed.
>=20
> --=20
> Thanks,
> Rich Kulp
------=_NextPart_000_001A_01C76705.9158ECD0
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dgb2312">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2></FONT>
<DIV><FONT face=3DArial size=3D2>Thanks for your reply</FONT>!</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I use override method to define my =
customized=20
editor.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>In plugin.xml, add this =
extention:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;=20
&lt;extension<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;=20
point=3D"org.eclipse.jem.beaninfo.registrations"&gt;<BR >&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;=20
&lt;registration<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;=20
container=3D"org.eclipse.customize.example.container"&gt; <BR>&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =20
&lt;override<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
package=3D"org.eclipse.customize.example"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;=20
path=3D"overrides/org/eclipse/customize/example"&gt;<BR >&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/override&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/registration&gt;&nbsp;&nbsp;&nbsp;& amp;nbsp; <BR>&nbsp;&nbsp;&nbsp;=20
&lt;/extension&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>And an override file under folder=20
"overrides/org/eclipse/customize/example":</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;?xml version=3D"1.0"=20
encoding=3D"UTF-8"?&gt;<BR>&lt;xmi:XMI xmi:version=3D"2.0" =
xmlns:xmi=3D"<A=20
href=3D"http://www.omg.org/XMI">http://www.omg.org/XMI</A>"<BR>&nbsp;xmln=
s:xsi=3D"<A=20
href=3D"http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001=
/XMLSchema-instance</A>"<BR>&nbsp;xmlns:org.eclipse.ve.internal.cde.decor=
ators=3D"<A=20
href=3D"http:///org/eclipse/ve/internal/cde/decorators.ecore">http:///org=
/eclipse/ve/internal/cde/decorators.ecore</A>"<BR>&nbsp;xmlns:ecore=3D "<A=
=20
href=3D"http://www.eclipse.org/emf/2002/Ecore">http://www.eclipse.org/emf=
/2002/Ecore</A>"<BR>&nbsp;xmlns:event=3D"event.xmi"&gt; <BR>&nbsp;&lt;even=
t:Add=20
featureName=3D"eStructuralFeatures"&gt;<BR>&nbsp;&nbsp;&lt;addedEObjects =

xsi:type=3D"ecore:EReference" name=3D"text"=20
unsettable=3D"true"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;eAnnotations <BR>&nbsp;&n=
bsp;&nbsp;&nbsp;xsi:type=3D"org.eclipse.ve.internal.cde.decorators:BasePr=
opertyDecorator"<BR> &nbsp;&nbsp;&nbsp;&nbsp;cellEditorClassname= 3D "org.ec=
lipse.customize.example/org.eclipse.customize.example.Custom LabelEditor " =

/&gt;<BR>&nbsp;&nbsp;&lt;/addedEObjects&gt; <BR>&nbsp;&lt;/event:Add&gt;<B=
R>&lt;/xmi:XMI&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>And the name "text" is the name of a =
property I=20
declared in my beaninfo class.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Are there anything wrong? It seems that =
the=20
BundleLoader know my editor=20
name(org.eclipse.customize.example.CustomLabelEditor) but can't find my =
editor=20
class.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Best regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Hexise</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></DIV>
<DIV><FONT face=3DArial size=3D2>"Rich Kulp" &lt;</FONT><A=20
href=3D"mailto:richkulp@us.NO_SPAM.ibm.com"><FONT face=3DArial=20
size=3D2>richkulp@us.NO_SPAM.ibm.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote=20
in message </FONT><A href=3D"news:et8v94$mt4$1@utils.eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:et8v94$mt4$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; How did you =
define your=20
customized editor to the system? In other words<BR>&gt; where did you =
tell it to=20
use your editor. The exact XMI is needed.<BR>&gt; <BR>&gt; -- <BR>&gt;=20
Thanks,<BR>&gt; Rich Kulp</FONT></BODY></HTML>

------=_NextPart_000_001A_01C76705.9158ECD0--
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #136494 is a reply to message #136462] Thu, 15 March 2007 14:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Is the class in the org.eclipse.customize.example plugin? Verify that
the .class file is there.

Hexise wrote:
> xsi:type=" org.eclipse.ve.internal.cde.decorators:BasePropertyDecorator "
> cellEditorClassname=" org.eclipse.customize.example/org.eclipse.customize.example. CustomLabelEditor "
> />

--
Thanks,
Rich Kulp
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #136597 is a reply to message #136494] Mon, 19 March 2007 04:57 Go to previous messageGo to next message
Allen Wang is currently offline Allen WangFriend
Messages: 28
Registered: July 2009
Junior Member
I debug this plugin in runtime environment, not export it to a plugin jar
file.
And the .class file do exists in the bin folder of my project, I don't know
why the BundleLoader can't find it? Did I miss something?
Thanks again for your reply!

Best Regards,
Hexise

----- Original Message -----
From: "Rich Kulp" <richkulp@us.NO_SPAM.ibm.com>
Newsgroups: eclipse.tools.ve
Sent: Thursday, March 15, 2007 10:59 PM
Subject: Re: ClassNotFoundException at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:402)


> Is the class in the org.eclipse.customize.example plugin? Verify that
> the .class file is there.
>
> Hexise wrote:
>>
>> xsi:type=" org.eclipse.ve.internal.cde.decorators:BasePropertyDecorator "
>>
>> cellEditorClassname=" org.eclipse.customize.example/org.eclipse.customize.example. CustomLabelEditor "
>> />
>
> --
> Thanks,
> Rich Kulp
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #136609 is a reply to message #136597] Mon, 19 March 2007 13:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

But is it in the project that is your development plugin
org.eclipse.customize.example? It needs to be in a plugin, whether
plugin is a jar or is the development project that you are using to
development the plugin (i.e. the projqct that contains the MANFIEST.mf
that defines your org.eclipse.customize.example plugin).

Hexise wrote:
> I debug this plugin in runtime environment, not export it to a plugin jar
> file.
> And the .class file do exists in the bin folder of my project, I don't know
> why the BundleLoader can't find it? Did I miss something?
> Thanks again for your reply!
>
> Best Regards,
> Hexise
>
> ----- Original Message -----
> From: "Rich Kulp" <richkulp@us.NO_SPAM.ibm.com>
> Newsgroups: eclipse.tools.ve
> Sent: Thursday, March 15, 2007 10:59 PM
> Subject: Re: ClassNotFoundException at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:402)
>
>
>> Is the class in the org.eclipse.customize.example plugin? Verify that
>> the .class file is there.
>>
>> Hexise wrote:
>>> xsi:type=" org.eclipse.ve.internal.cde.decorators:BasePropertyDecorator "
>>>
>>> cellEditorClassname=" org.eclipse.customize.example/org.eclipse.customize.example. CustomLabelEditor "
>>> />
>> --
>> Thanks,
>> Rich Kulp
>
>

--
Thanks,
Rich Kulp
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #136633 is a reply to message #136609] Tue, 20 March 2007 01:57 Go to previous messageGo to next message
Allen Wang is currently offline Allen WangFriend
Messages: 28
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0014_01C76AD6.2CFBBEF0
Content-Type: text/plain;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

I have verified that the .class file exists in the bin folder of =
org.eclipse.customize.example plugin project, but why the BundleLoader =
can't find it?
Another phenomenon is that, I have an Activator class extends from =
AbstractUIPlugin, I set it to be the activator of this plugin, but it =
has never been accessed during my debugging. I think there should be =
some problems.

Thanks.

Best Regards,
Hexise

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message =
news:etm45b$dg0$1@utils.eclipse.org...
> But is it in the project that is your development plugin=20
> org.eclipse.customize.example? It needs to be in a plugin, whether=20
> plugin is a jar or is the development project that you are using to=20
> development the plugin (i.e. the projqct that contains the MANFIEST.mf =

> that defines your org.eclipse.customize.example plugin).
>=20
> Hexise wrote:
>> I debug this plugin in runtime environment, not export it to a plugin =
jar=20
>> file.
>> And the .class file do exists in the bin folder of my project, I =
don't know=20
>> why the BundleLoader can't find it? Did I miss something?
>> Thanks again for your reply!
>>=20
>> Best Regards,
>> Hexise
>>=20
>> ----- Original Message -----=20
>> From: "Rich Kulp" <richkulp@us.NO_SPAM.ibm.com>
>> Newsgroups: eclipse.tools.ve
>> Sent: Thursday, March 15, 2007 10:59 PM
>> Subject: Re: ClassNotFoundException at=20
>> =
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoa=
der.java:402)
>>=20
>>=20
>>> Is the class in the org.eclipse.customize.example plugin? Verify =
that
>>> the .class file is there.
>>>
>>> Hexise wrote:
>>>> =
xsi:type=3D" org.eclipse.ve.internal.cde.decorators:BasePropertyDecorator "=

>>>>
>>>> =
cellEditorClassname=3D"org.eclipse.customize.example/org.eclipse.customiz=
e.example.CustomLabelEditor"
>>>> />
>>> --=20
>>> Thanks,
>>> Rich Kulp=20
>>=20
>>=20
>=20
> --=20
> Thanks,
> Rich Kulp
------=_NextPart_000_0014_01C76AD6.2CFBBEF0
Content-Type: text/html;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>I have verified that the .class file =
exists in the=20
bin folder of org.eclipse.customize.example plugin project, but why the=20
BundleLoader can't find it?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Another phenomenon is that, I have an =
Activator=20
class extends from AbstractUIPlugin, I set it to be the activator of =
this=20
plugin, but it has never been accessed during my debugging. I think =
there should=20
be some problems.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Best Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hexise</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Rich Kulp" &lt;</FONT><A=20
href=3D"mailto:richkulp@us.NO_SPAM.ibm.com"><FONT face=3DArial=20
size=3D2>richkulp@us.NO_SPAM.ibm.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote=20
in message </FONT><A href=3D"news:etm45b$dg0$1@utils.eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:etm45b$dg0$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; But is it in =
the project=20
that is your development plugin <BR>&gt; org.eclipse.customize.example? =
It needs=20
to be in a plugin, whether <BR>&gt; plugin is a jar or is the =
development=20
project that you are using to <BR>&gt; development the plugin (i.e. the =
projqct=20
that contains the MANFIEST.mf <BR>&gt; that defines your=20
org.eclipse.customize.example plugin).<BR>&gt; <BR>&gt; Hexise=20
wrote:<BR>&gt;&gt; I debug this plugin in runtime environment, not =
export it to=20
a plugin jar <BR>&gt;&gt; file.<BR>&gt;&gt; And the .class file do =
exists in the=20
bin folder of my project, I don't know <BR>&gt;&gt; why the BundleLoader =
can't=20
find it? Did I miss something?<BR>&gt;&gt; Thanks again for your=20
reply!<BR>&gt;&gt; <BR>&gt;&gt; Best Regards,<BR>&gt;&gt; =
Hexise<BR>&gt;&gt;=20
<BR>&gt;&gt; ----- Original Message ----- <BR>&gt;&gt; From: "Rich Kulp" =

&lt;</FONT><A href=3D"mailto:richkulp@us.NO_SPAM.ibm.com"><FONT =
face=3DArial=20
size=3D2>richkulp@us.NO_SPAM.ibm.com</FONT></A><FONT face=3DArial=20
size=3D2>&gt;<BR>&gt;&gt; Newsgroups: eclipse.tools.ve<BR>&gt;&gt; Sent: =
Thursday,=20
March 15, 2007 10:59 PM<BR>&gt;&gt; Subject: Re: ClassNotFoundException =
at=20
<BR>&gt;&gt;=20
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoa=
der.java:402)<BR>&gt;&gt;=20
<BR>&gt;&gt; <BR>&gt;&gt;&gt; Is the class in the =
org.eclipse.customize.example=20
plugin? Verify that<BR>&gt;&gt;&gt; the .class file is=20
there.<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Hexise wrote:<BR>&gt;&gt;&gt;&gt; =

xsi:type=3D" org.eclipse.ve.internal.cde.decorators:BasePropertyDecorator "=
<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;=20
cellEditorClassname=3D"org.eclipse.customize.example/org.eclipse.customiz=
e.example.CustomLabelEditor"<BR>&gt;&gt;&gt;&gt;=20
/&gt;<BR>&gt;&gt;&gt; -- <BR>&gt;&gt;&gt; Thanks,<BR>&gt;&gt;&gt; Rich =
Kulp=20
<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; Thanks,<BR>&gt; =
Rich=20
Kulp</FONT></BODY></HTML>

------=_NextPart_000_0014_01C76AD6.2CFBBEF0--
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #136656 is a reply to message #136633] Tue, 20 March 2007 18:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I don't know why it isn't working. That is straight OSGi. You'll need to
do some debugging of the findClass code to see why it can't find it.

--
Thanks,
Rich Kulp
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #136668 is a reply to message #136656] Wed, 21 March 2007 01:29 Go to previous messageGo to next message
Allen Wang is currently offline Allen WangFriend
Messages: 28
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0049_01C76B9B.76693DE0
Content-Type: text/plain;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks for your help, Rich!=20
I will try to find the answer.

Best regards,
Hexise

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message =
news:etp8fh$dv3$2@utils.eclipse.org...
>I don't know why it isn't working. That is straight OSGi. You'll need =
to=20
> do some debugging of the findClass code to see why it can't find it.
>=20
> --=20
> Thanks,
> Rich Kulp
------=_NextPart_000_0049_01C76B9B.76693DE0
Content-Type: text/html;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Thanks for your help, Rich! =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I will try to find the =
answer.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Best regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hexise</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Rich Kulp" &lt;</FONT><A=20
href=3D"mailto:richkulp@us.NO_SPAM.ibm.com"><FONT face=3DArial=20
size=3D2>richkulp@us.NO_SPAM.ibm.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote=20
in message </FONT><A href=3D"news:etp8fh$dv3$2@utils.eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:etp8fh$dv3$2@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt;I don't know =
why it isn't=20
working. That is straight OSGi. You'll need to <BR>&gt; do some =
debugging of the=20
findClass code to see why it can't find it.<BR>&gt; <BR>&gt; -- <BR>&gt; =

Thanks,<BR>&gt; Rich Kulp</FONT></BODY></HTML>

------=_NextPart_000_0049_01C76B9B.76693DE0--
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #136775 is a reply to message #136668] Fri, 23 March 2007 09:41 Go to previous messageGo to next message
Allen Wang is currently offline Allen WangFriend
Messages: 28
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0019_01C76D72.884E9860
Content-Type: text/plain;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

I find the answer to this problem...
The first half of the cellEditorClassname definition in override file is =
the plugin id, I missunderstood it to be the package name...So lead to =
this exception.
Thanks for your help, Rich! Thanks for your time!

Best Regards,
Hexise
------=_NextPart_000_0019_01C76D72.884E9860
Content-Type: text/html;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I find the answer to this =
problem...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The first half of the =
cellEditorClassname=20
definition&nbsp;in override file is the plugin id, I missunderstood it =
to be the=20
package name...So lead to this exception.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for your help, Rich! Thanks for =
your=20
time!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Best Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hexise</FONT></DIV></BODY></HTML>

------=_NextPart_000_0019_01C76D72.884E9860--
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #136788 is a reply to message #136775] Fri, 23 March 2007 13:55 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I'm glad you found the problem.

Hexise wrote:
> I find the answer to this problem...
> The first half of the cellEditorClassname definition in override file is
> the plugin id, I missunderstood it to be the package name...So lead to
> this exception.
> Thanks for your help, Rich! Thanks for your time!
>
> Best Regards,
> Hexise

--
Thanks,
Rich Kulp
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #615123 is a reply to message #136422] Wed, 14 March 2007 14:02 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

How did you define your customized editor to the system? In other words
where did you tell it to use your editor. The exact XMI is needed.

--
Thanks,
Rich Kulp
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #615125 is a reply to message #136438] Thu, 15 March 2007 05:26 Go to previous message
Allen Wang is currently offline Allen WangFriend
Messages: 28
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_001A_01C76705.9158ECD0
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable

Thanks for your reply!

I use override method to define my customized editor.

In plugin.xml, add this extention:

<extension
point=3D"org.eclipse.jem.beaninfo.registrations">
<registration
container=3D"org.eclipse.customize.example.container">
<override
package=3D"org.eclipse.customize.example"
path=3D"overrides/org/eclipse/customize/example">
</override>
</registration> =20
</extension>

And an override file under folder =
"overrides/org/eclipse/customize/example":

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<xmi:XMI xmi:version=3D"2.0" xmlns:xmi=3D"http://www.omg.org/XMI"
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
=
xmlns:org.eclipse.ve.internal.cde.decorators=3D"http:///org/eclipse/ve/in=
ternal/cde/decorators.ecore"
xmlns:ecore=3D"http://www.eclipse.org/emf/2002/Ecore"
xmlns:event=3D"event.xmi">
<event:Add featureName=3D"eStructuralFeatures">
<addedEObjects xsi:type=3D"ecore:EReference" name=3D"text" =
unsettable=3D"true">
<eAnnotations
=
xsi:type=3D" org.eclipse.ve.internal.cde.decorators:BasePropertyDecorator "=

=
cellEditorClassname=3D"org.eclipse.customize.example/org.eclipse.customiz=
e.example.CustomLabelEditor" />
</addedEObjects>
</event:Add>
</xmi:XMI>

And the name "text" is the name of a property I declared in my beaninfo =
class.

Are there anything wrong? It seems that the BundleLoader know my editor =
name(org.eclipse.customize.example.CustomLabelEditor) but can't find my =
editor class.

Best regards,

Hexise


"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message =
news:et8v94$mt4$1@utils.eclipse.org...
> How did you define your customized editor to the system? In other =
words
> where did you tell it to use your editor. The exact XMI is needed.
>=20
> --=20
> Thanks,
> Rich Kulp
------=_NextPart_000_001A_01C76705.9158ECD0
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dgb2312">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2></FONT>
<DIV><FONT face=3DArial size=3D2>Thanks for your reply</FONT>!</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I use override method to define my =
customized=20
editor.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>In plugin.xml, add this =
extention:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;=20
&lt;extension<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;=20
point=3D"org.eclipse.jem.beaninfo.registrations"&gt;<BR >&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;=20
&lt;registration<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;=20
container=3D"org.eclipse.customize.example.container"&gt; <BR>&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =20
&lt;override<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=20
package=3D"org.eclipse.customize.example"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;=20
path=3D"overrides/org/eclipse/customize/example"&gt;<BR >&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/override&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/registration&gt;&nbsp;&nbsp;&nbsp;& amp;nbsp; <BR>&nbsp;&nbsp;&nbsp;=20
&lt;/extension&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>And an override file under folder=20
"overrides/org/eclipse/customize/example":</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;?xml version=3D"1.0"=20
encoding=3D"UTF-8"?&gt;<BR>&lt;xmi:XMI xmi:version=3D"2.0" =
xmlns:xmi=3D"<A=20
href=3D"http://www.omg.org/XMI">http://www.omg.org/XMI</A>"<BR>&nbsp;xmln=
s:xsi=3D"<A=20
href=3D"http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001=
/XMLSchema-instance</A>"<BR>&nbsp;xmlns:org.eclipse.ve.internal.cde.decor=
ators=3D"<A=20
href=3D"http:///org/eclipse/ve/internal/cde/decorators.ecore">http:///org=
/eclipse/ve/internal/cde/decorators.ecore</A>"<BR>&nbsp;xmlns:ecore=3D "<A=
=20
href=3D"http://www.eclipse.org/emf/2002/Ecore">http://www.eclipse.org/emf=
/2002/Ecore</A>"<BR>&nbsp;xmlns:event=3D"event.xmi"&gt; <BR>&nbsp;&lt;even=
t:Add=20
featureName=3D"eStructuralFeatures"&gt;<BR>&nbsp;&nbsp;&lt;addedEObjects =

xsi:type=3D"ecore:EReference" name=3D"text"=20
unsettable=3D"true"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;eAnnotations <BR>&nbsp;&n=
bsp;&nbsp;&nbsp;xsi:type=3D"org.eclipse.ve.internal.cde.decorators:BasePr=
opertyDecorator"<BR> &nbsp;&nbsp;&nbsp;&nbsp;cellEditorClassname= 3D "org.ec=
lipse.customize.example/org.eclipse.customize.example.Custom LabelEditor " =

/&gt;<BR>&nbsp;&nbsp;&lt;/addedEObjects&gt; <BR>&nbsp;&lt;/event:Add&gt;<B=
R>&lt;/xmi:XMI&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>And the name "text" is the name of a =
property I=20
declared in my beaninfo class.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Are there anything wrong? It seems that =
the=20
BundleLoader know my editor=20
name(org.eclipse.customize.example.CustomLabelEditor) but can't find my =
editor=20
class.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Best regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Hexise</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></DIV>
<DIV><FONT face=3DArial size=3D2>"Rich Kulp" &lt;</FONT><A=20
href=3D"mailto:richkulp@us.NO_SPAM.ibm.com"><FONT face=3DArial=20
size=3D2>richkulp@us.NO_SPAM.ibm.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote=20
in message </FONT><A href=3D"news:et8v94$mt4$1@utils.eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:et8v94$mt4$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; How did you =
define your=20
customized editor to the system? In other words<BR>&gt; where did you =
tell it to=20
use your editor. The exact XMI is needed.<BR>&gt; <BR>&gt; -- <BR>&gt;=20
Thanks,<BR>&gt; Rich Kulp</FONT></BODY></HTML>

------=_NextPart_000_001A_01C76705.9158ECD0--
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #615128 is a reply to message #136462] Thu, 15 March 2007 14:59 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Is the class in the org.eclipse.customize.example plugin? Verify that
the .class file is there.

Hexise wrote:
> xsi:type=" org.eclipse.ve.internal.cde.decorators:BasePropertyDecorator "
> cellEditorClassname=" org.eclipse.customize.example/org.eclipse.customize.example. CustomLabelEditor "
> />

--
Thanks,
Rich Kulp
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #615137 is a reply to message #136494] Mon, 19 March 2007 04:57 Go to previous message
Allen Wang is currently offline Allen WangFriend
Messages: 28
Registered: July 2009
Junior Member
I debug this plugin in runtime environment, not export it to a plugin jar
file.
And the .class file do exists in the bin folder of my project, I don't know
why the BundleLoader can't find it? Did I miss something?
Thanks again for your reply!

Best Regards,
Hexise

----- Original Message -----
From: "Rich Kulp" <richkulp@us.NO_SPAM.ibm.com>
Newsgroups: eclipse.tools.ve
Sent: Thursday, March 15, 2007 10:59 PM
Subject: Re: ClassNotFoundException at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:402)


> Is the class in the org.eclipse.customize.example plugin? Verify that
> the .class file is there.
>
> Hexise wrote:
>>
>> xsi:type=" org.eclipse.ve.internal.cde.decorators:BasePropertyDecorator "
>>
>> cellEditorClassname=" org.eclipse.customize.example/org.eclipse.customize.example. CustomLabelEditor "
>> />
>
> --
> Thanks,
> Rich Kulp
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #615138 is a reply to message #136597] Mon, 19 March 2007 13:45 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

But is it in the project that is your development plugin
org.eclipse.customize.example? It needs to be in a plugin, whether
plugin is a jar or is the development project that you are using to
development the plugin (i.e. the projqct that contains the MANFIEST.mf
that defines your org.eclipse.customize.example plugin).

Hexise wrote:
> I debug this plugin in runtime environment, not export it to a plugin jar
> file.
> And the .class file do exists in the bin folder of my project, I don't know
> why the BundleLoader can't find it? Did I miss something?
> Thanks again for your reply!
>
> Best Regards,
> Hexise
>
> ----- Original Message -----
> From: "Rich Kulp" <richkulp@us.NO_SPAM.ibm.com>
> Newsgroups: eclipse.tools.ve
> Sent: Thursday, March 15, 2007 10:59 PM
> Subject: Re: ClassNotFoundException at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:402)
>
>
>> Is the class in the org.eclipse.customize.example plugin? Verify that
>> the .class file is there.
>>
>> Hexise wrote:
>>> xsi:type=" org.eclipse.ve.internal.cde.decorators:BasePropertyDecorator "
>>>
>>> cellEditorClassname=" org.eclipse.customize.example/org.eclipse.customize.example. CustomLabelEditor "
>>> />
>> --
>> Thanks,
>> Rich Kulp
>
>

--
Thanks,
Rich Kulp
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #615140 is a reply to message #136609] Tue, 20 March 2007 01:57 Go to previous message
Allen Wang is currently offline Allen WangFriend
Messages: 28
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0014_01C76AD6.2CFBBEF0
Content-Type: text/plain;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

I have verified that the .class file exists in the bin folder of =
org.eclipse.customize.example plugin project, but why the BundleLoader =
can't find it?
Another phenomenon is that, I have an Activator class extends from =
AbstractUIPlugin, I set it to be the activator of this plugin, but it =
has never been accessed during my debugging. I think there should be =
some problems.

Thanks.

Best Regards,
Hexise

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message =
news:etm45b$dg0$1@utils.eclipse.org...
> But is it in the project that is your development plugin=20
> org.eclipse.customize.example? It needs to be in a plugin, whether=20
> plugin is a jar or is the development project that you are using to=20
> development the plugin (i.e. the projqct that contains the MANFIEST.mf =

> that defines your org.eclipse.customize.example plugin).
>=20
> Hexise wrote:
>> I debug this plugin in runtime environment, not export it to a plugin =
jar=20
>> file.
>> And the .class file do exists in the bin folder of my project, I =
don't know=20
>> why the BundleLoader can't find it? Did I miss something?
>> Thanks again for your reply!
>>=20
>> Best Regards,
>> Hexise
>>=20
>> ----- Original Message -----=20
>> From: "Rich Kulp" <richkulp@us.NO_SPAM.ibm.com>
>> Newsgroups: eclipse.tools.ve
>> Sent: Thursday, March 15, 2007 10:59 PM
>> Subject: Re: ClassNotFoundException at=20
>> =
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoa=
der.java:402)
>>=20
>>=20
>>> Is the class in the org.eclipse.customize.example plugin? Verify =
that
>>> the .class file is there.
>>>
>>> Hexise wrote:
>>>> =
xsi:type=3D" org.eclipse.ve.internal.cde.decorators:BasePropertyDecorator "=

>>>>
>>>> =
cellEditorClassname=3D"org.eclipse.customize.example/org.eclipse.customiz=
e.example.CustomLabelEditor"
>>>> />
>>> --=20
>>> Thanks,
>>> Rich Kulp=20
>>=20
>>=20
>=20
> --=20
> Thanks,
> Rich Kulp
------=_NextPart_000_0014_01C76AD6.2CFBBEF0
Content-Type: text/html;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>I have verified that the .class file =
exists in the=20
bin folder of org.eclipse.customize.example plugin project, but why the=20
BundleLoader can't find it?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Another phenomenon is that, I have an =
Activator=20
class extends from AbstractUIPlugin, I set it to be the activator of =
this=20
plugin, but it has never been accessed during my debugging. I think =
there should=20
be some problems.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Best Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hexise</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Rich Kulp" &lt;</FONT><A=20
href=3D"mailto:richkulp@us.NO_SPAM.ibm.com"><FONT face=3DArial=20
size=3D2>richkulp@us.NO_SPAM.ibm.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote=20
in message </FONT><A href=3D"news:etm45b$dg0$1@utils.eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:etm45b$dg0$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; But is it in =
the project=20
that is your development plugin <BR>&gt; org.eclipse.customize.example? =
It needs=20
to be in a plugin, whether <BR>&gt; plugin is a jar or is the =
development=20
project that you are using to <BR>&gt; development the plugin (i.e. the =
projqct=20
that contains the MANFIEST.mf <BR>&gt; that defines your=20
org.eclipse.customize.example plugin).<BR>&gt; <BR>&gt; Hexise=20
wrote:<BR>&gt;&gt; I debug this plugin in runtime environment, not =
export it to=20
a plugin jar <BR>&gt;&gt; file.<BR>&gt;&gt; And the .class file do =
exists in the=20
bin folder of my project, I don't know <BR>&gt;&gt; why the BundleLoader =
can't=20
find it? Did I miss something?<BR>&gt;&gt; Thanks again for your=20
reply!<BR>&gt;&gt; <BR>&gt;&gt; Best Regards,<BR>&gt;&gt; =
Hexise<BR>&gt;&gt;=20
<BR>&gt;&gt; ----- Original Message ----- <BR>&gt;&gt; From: "Rich Kulp" =

&lt;</FONT><A href=3D"mailto:richkulp@us.NO_SPAM.ibm.com"><FONT =
face=3DArial=20
size=3D2>richkulp@us.NO_SPAM.ibm.com</FONT></A><FONT face=3DArial=20
size=3D2>&gt;<BR>&gt;&gt; Newsgroups: eclipse.tools.ve<BR>&gt;&gt; Sent: =
Thursday,=20
March 15, 2007 10:59 PM<BR>&gt;&gt; Subject: Re: ClassNotFoundException =
at=20
<BR>&gt;&gt;=20
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoa=
der.java:402)<BR>&gt;&gt;=20
<BR>&gt;&gt; <BR>&gt;&gt;&gt; Is the class in the =
org.eclipse.customize.example=20
plugin? Verify that<BR>&gt;&gt;&gt; the .class file is=20
there.<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Hexise wrote:<BR>&gt;&gt;&gt;&gt; =

xsi:type=3D" org.eclipse.ve.internal.cde.decorators:BasePropertyDecorator "=
<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;=20
cellEditorClassname=3D"org.eclipse.customize.example/org.eclipse.customiz=
e.example.CustomLabelEditor"<BR>&gt;&gt;&gt;&gt;=20
/&gt;<BR>&gt;&gt;&gt; -- <BR>&gt;&gt;&gt; Thanks,<BR>&gt;&gt;&gt; Rich =
Kulp=20
<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; Thanks,<BR>&gt; =
Rich=20
Kulp</FONT></BODY></HTML>

------=_NextPart_000_0014_01C76AD6.2CFBBEF0--
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #615142 is a reply to message #136633] Tue, 20 March 2007 18:17 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I don't know why it isn't working. That is straight OSGi. You'll need to
do some debugging of the findClass code to see why it can't find it.

--
Thanks,
Rich Kulp
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #615143 is a reply to message #136656] Wed, 21 March 2007 01:29 Go to previous message
Allen Wang is currently offline Allen WangFriend
Messages: 28
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0049_01C76B9B.76693DE0
Content-Type: text/plain;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks for your help, Rich!=20
I will try to find the answer.

Best regards,
Hexise

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message =
news:etp8fh$dv3$2@utils.eclipse.org...
>I don't know why it isn't working. That is straight OSGi. You'll need =
to=20
> do some debugging of the findClass code to see why it can't find it.
>=20
> --=20
> Thanks,
> Rich Kulp
------=_NextPart_000_0049_01C76B9B.76693DE0
Content-Type: text/html;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Thanks for your help, Rich! =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I will try to find the =
answer.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Best regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hexise</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Rich Kulp" &lt;</FONT><A=20
href=3D"mailto:richkulp@us.NO_SPAM.ibm.com"><FONT face=3DArial=20
size=3D2>richkulp@us.NO_SPAM.ibm.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote=20
in message </FONT><A href=3D"news:etp8fh$dv3$2@utils.eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:etp8fh$dv3$2@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt;I don't know =
why it isn't=20
working. That is straight OSGi. You'll need to <BR>&gt; do some =
debugging of the=20
findClass code to see why it can't find it.<BR>&gt; <BR>&gt; -- <BR>&gt; =

Thanks,<BR>&gt; Rich Kulp</FONT></BODY></HTML>

------=_NextPart_000_0049_01C76B9B.76693DE0--
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #615152 is a reply to message #136668] Fri, 23 March 2007 09:41 Go to previous message
Allen Wang is currently offline Allen WangFriend
Messages: 28
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0019_01C76D72.884E9860
Content-Type: text/plain;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

I find the answer to this problem...
The first half of the cellEditorClassname definition in override file is =
the plugin id, I missunderstood it to be the package name...So lead to =
this exception.
Thanks for your help, Rich! Thanks for your time!

Best Regards,
Hexise
------=_NextPart_000_0019_01C76D72.884E9860
Content-Type: text/html;
charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I find the answer to this =
problem...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The first half of the =
cellEditorClassname=20
definition&nbsp;in override file is the plugin id, I missunderstood it =
to be the=20
package name...So lead to this exception.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for your help, Rich! Thanks for =
your=20
time!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Best Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hexise</FONT></DIV></BODY></HTML>

------=_NextPart_000_0019_01C76D72.884E9860--
Re: ClassNotFoundException at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundle [message #615153 is a reply to message #136775] Fri, 23 March 2007 13:55 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I'm glad you found the problem.

Hexise wrote:
> I find the answer to this problem...
> The first half of the cellEditorClassname definition in override file is
> the plugin id, I missunderstood it to be the package name...So lead to
> this exception.
> Thanks for your help, Rich! Thanks for your time!
>
> Best Regards,
> Hexise

--
Thanks,
Rich Kulp
Previous Topic:Eclipse 3.2.1 and VE on Ubuntu Edgy
Next Topic:Eclipse 3.2.1 and VE on Ubuntu Edgy
Goto Forum:
  


Current Time: Thu Apr 18 03:39:31 GMT 2024

Powered by FUDForum. Page generated in 0.02686 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top