Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Class loader problems
Class loader problems [message #328198] Fri, 16 May 2008 17:46 Go to next message
Eclipse UserFriend
Originally posted by: andreas-scharf.gmx.de

Hi all,

I have a strange problem concerning loading a class from the batik plugin.
Short description: I'm playing with the GMF Taipan example and the batik
plugin. I added the batik plugin to the Taipan dependencies and at compile
time everything works fine.
If I start a new workbench, create a diagram and add an element which needs
a class which belongs to the org.apache.batik.bridge package, I get an error
loading the class I need:

Caused by: java.lang.NoClassDefFoundError:
org/apache/batik/bridge/UserAgentAdapter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

I really don't know why it's working, maybe u can give me a hint.

Cheers,
Andreas
Re: Class loader problems [message #328202 is a reply to message #328198] Fri, 16 May 2008 21:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Andreas,

Did you add the dependency by editing the MANIFEST.MF using the
Dependencies tab? It's a common mistake to edit the project's
properties directly...


Andreas Scharf wrote:
> Hi all,
>
> I have a strange problem concerning loading a class from the batik plugin.
> Short description: I'm playing with the GMF Taipan example and the batik
> plugin. I added the batik plugin to the Taipan dependencies and at compile
> time everything works fine.
> If I start a new workbench, create a diagram and add an element which needs
> a class which belongs to the org.apache.batik.bridge package, I get an error
> loading the class I need:
>
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/batik/bridge/UserAgentAdapter
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>
> I really don't know why it's working, maybe u can give me a hint.
>
> Cheers,
> Andreas
>
>
>
Re: Class loader problems [message #328205 is a reply to message #328202] Sat, 17 May 2008 08:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: master_andy.gmx.de

Hi Ed,

ok, my fault - I of course added the dependencie via the manifest file. But
I made that mistake
as I started to develop plugins ;). Any other hints?

Greetings,
Andreas

"Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag
news:g0kteh$h49$2@build.eclipse.org...
> Andreas,
>
> Did you add the dependency by editing the MANIFEST.MF using the
> Dependencies tab? It's a common mistake to edit the project's properties
> directly...
>
>
> Andreas Scharf wrote:
>> Hi all,
>>
>> I have a strange problem concerning loading a class from the batik
>> plugin. Short description: I'm playing with the GMF Taipan example and
>> the batik plugin. I added the batik plugin to the Taipan dependencies and
>> at compile time everything works fine.
>> If I start a new workbench, create a diagram and add an element which
>> needs a class which belongs to the org.apache.batik.bridge package, I get
>> an error loading the class I need:
>>
>> Caused by: java.lang.NoClassDefFoundError:
>> org/apache/batik/bridge/UserAgentAdapter
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>
>> I really don't know why it's working, maybe u can give me a hint.
>>
>> Cheers,
>> Andreas
>>
>>
Re: Class loader problems [message #328206 is a reply to message #328205] Sat, 17 May 2008 14:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------070907070000000304010407
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Andreas,

Are the required plugins included in the set of plugins specified in the
launcher's Plug-in tab? Running with the -debug flag will produce
diagnostic information in the Error log that might be helpful;
-consolelog is useful for spitting that out to the console as they are
produced.


Andreas wrote:
> Hi Ed,
>
> ok, my fault - I of course added the dependencie via the manifest file. But
> I made that mistake
> as I started to develop plugins ;). Any other hints?
>
> Greetings,
> Andreas
>
> "Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag
> news:g0kteh$h49$2@build.eclipse.org...
>
>> Andreas,
>>
>> Did you add the dependency by editing the MANIFEST.MF using the
>> Dependencies tab? It's a common mistake to edit the project's properties
>> directly...
>>
>>
>> Andreas Scharf wrote:
>>
>>> Hi all,
>>>
>>> I have a strange problem concerning loading a class from the batik
>>> plugin. Short description: I'm playing with the GMF Taipan example and
>>> the batik plugin. I added the batik plugin to the Taipan dependencies and
>>> at compile time everything works fine.
>>> If I start a new workbench, create a diagram and add an element which
>>> needs a class which belongs to the org.apache.batik.bridge package, I get
>>> an error loading the class I need:
>>>
>>> Caused by: java.lang.NoClassDefFoundError:
>>> org/apache/batik/bridge/UserAgentAdapter
>>> at java.lang.ClassLoader.defineClass1(Native Method)
>>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>>
>>> I really don't know why it's working, maybe u can give me a hint.
>>>
>>> Cheers,
>>> Andreas
>>>
>>>
>>>
>
>
>


--------------070907070000000304010407
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Andreas,<br>
<br>
Are the required plugins included in the set of plugins specified in
the launcher's Plug-in tab?&nbsp; Running with the -debug flag will produce
diagnostic information in the Error log that might be helpful;
-consolelog is useful for spitting that out to the console as they are
produced.<br>
<br>
<br>
Andreas wrote:
<blockquote cite="mid:g0m4lm$hfj$1@build.eclipse.org" type="cite">
<pre wrap="">Hi Ed,

ok, my fault - I of course added the dependencie via the manifest file. But
I made that mistake
as I started to develop plugins ;). Any other hints?

Greetings,
Andreas

"Ed Merks" <a class="moz-txt-link-rfc2396E" href="mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</a> schrieb im Newsbeitrag
<a class="moz-txt-link-freetext" href="news:g0kteh$h49$2@build.eclipse.org">news:g0kteh$h49$2@build.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Andreas,

Did you add the dependency by editing the MANIFEST.MF using the
Dependencies tab? It's a common mistake to edit the project's properties
directly...


Andreas Scharf wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi all,

I have a strange problem concerning loading a class from the batik
plugin. Short description: I'm playing with the GMF Taipan example and
the batik plugin. I added the batik plugin to the Taipan dependencies and
at compile time everything works fine.
If I start a new workbench, create a diagram and add an element which
needs a class which belongs to the org.apache.batik.bridge package, I get
an error loading the class I need:

Caused by: java.lang.NoClassDefFoundError:
org/apache/batik/bridge/UserAgentAdapter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

I really don't know why it's working, maybe u can give me a hint.

Cheers,
Andreas


</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
<br>
</body>
</html>

--------------070907070000000304010407--
Re: Class loader problems [message #328211 is a reply to message #328206] Sun, 18 May 2008 14:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andreas-scharf.gmx.de

This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C8B906.3CCADFD0
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0010_01C8B906.3CCADFD0"


------=_NextPart_001_0010_01C8B906.3CCADFD0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Ed,

yes, the required plugins are already containted in the target platform. =
It seems like the platform even doesn't try to load the classes I need. =
I attached
the error log - maybe that helps...


"Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag =
news:g0mqn3$kmn$3@build.eclipse.org...
Andreas,

Are the required plugins included in the set of plugins specified in =
the launcher's Plug-in tab? Running with the -debug flag will produce =
diagnostic information in the Error log that might be helpful; =
-consolelog is useful for spitting that out to the console as they are =
produced.


Andreas wrote:=20
Hi Ed,

ok, my fault - I of course added the dependencie via the manifest file. =
But=20
I made that mistake
as I started to develop plugins ;). Any other hints?

Greetings,
Andreas

"Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag=20
news:g0kteh$h49$2@build.eclipse.org...
Andreas,

Did you add the dependency by editing the MANIFEST.MF using the=20
Dependencies tab? It's a common mistake to edit the project's =
properties=20
directly...


Andreas Scharf wrote:
Hi all,

I have a strange problem concerning loading a class from the batik=20
plugin. Short description: I'm playing with the GMF Taipan example and=20
the batik plugin. I added the batik plugin to the Taipan dependencies =
and=20
at compile time everything works fine.
If I start a new workbench, create a diagram and add an element which=20
needs a class which belongs to the org.apache.batik.bridge package, I =
get=20
an error loading the class I need:

Caused by: java.lang.NoClassDefFoundError:=20
org/apache/batik/bridge/UserAgentAdapter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

I really don't know why it's working, maybe u can give me a hint.

Cheers,
Andreas


=20

=20

------=_NextPart_001_0010_01C8B906.3CCADFD0
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=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.2900.3086" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Ed,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yes, the required plugins are already =
containted in=20
the target platform. It seems like the platform even doesn't try to load =
the=20
classes I need. I attached</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the error log - maybe that =
helps...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
schrieb im Newsbeitrag <A=20
=
href=3D"news:g0mqn3$kmn$3@build.eclipse.org">news:g0mqn3$kmn$3@build.ecli=
pse.org</A>...</DIV>Andreas,<BR><BR>Are=20
the required plugins included in the set of plugins specified in the=20
launcher's Plug-in tab?&nbsp; Running with the -debug flag will =
produce=20
diagnostic information in the Error log that might be helpful; =
-consolelog is=20
useful for spitting that out to the console as they are=20
produced.<BR><BR><BR>Andreas wrote:=20
<BLOCKQUOTE cite=3Dmid:g0m4lm$hfj$1@build.eclipse.org =
type=3D"cite"><PRE wrap=3D"">Hi Ed,

ok, my fault - I of course added the dependencie via the manifest file. =
But=20
I made that mistake
as I started to develop plugins ;). Any other hints?

Greetings,
Andreas

"Ed Merks" <A class=3Dmoz-txt-link-rfc2396E =
href=3D"mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</A> schrieb im =
Newsbeitrag=20
<A class=3Dmoz-txt-link-freetext =
href=3D"news:g0kteh$h49$2@build.eclipse.org">news:g0kteh$h49$2@build.ecli=
pse.org</A>...
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Andreas,

Did you add the dependency by editing the MANIFEST.MF using the=20
Dependencies tab? It's a common mistake to edit the project's =
properties=20
directly...


Andreas Scharf wrote:
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Hi all,

I have a strange problem concerning loading a class from the batik=20
plugin. Short description: I'm playing with the GMF Taipan example and=20
the batik plugin. I added the batik plugin to the Taipan dependencies =
and=20
at compile time everything works fine.
If I start a new workbench, create a diagram and add an element which=20
needs a class which belongs to the org.apache.batik.bridge package, I =
get=20
an error loading the class I need:

Caused by: java.lang.NoClassDefFoundError:=20
org/apache/batik/bridge/UserAgentAdapter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

I really don't know why it's working, maybe u can give me a hint.

Cheers,
Andreas


</PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap=3D""><!---->

</PRE></BLOCKQUOTE><BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_001_0010_01C8B906.3CCADFD0--

------=_NextPart_000_000F_01C8B906.3CCADFD0
Content-Type: text/plain;
name="errorLog.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="errorLog.txt"

Configuration location:
file:/C:/Dokumente und =
Einstellungen/Zenobios/Svg/.metadata/.plugins/org.eclipse.pd e.core/Taipan=
Plugin/
Configuration file:
file:/C:/Dokumente und =
Einstellungen/Zenobios/Svg/.metadata/.plugins/org.eclipse.pd e.core/Taipan=
Plugin/config.ini loaded
Install location:
file:/D:/Internet/Programme/Eclipse 3.3.2/eclipse/
Framework located:
file:/D:/Internet/Programme/Eclipse =
3.3.2/eclipse/plugins/org.eclipse.osgi_3.3.2.R33x_v20080105. jar
Framework classpath:
file:/D:/Internet/Programme/Eclipse =
3.3.2/eclipse/plugins/org.eclipse.osgi_3.3.2.R33x_v20080105. jar
Splash location:
D:\Internet\Programme\Eclipse =
3.3.2\eclipse\plugins\org.eclipse.platform_3.3.3.r33x_r20080 129\splash.bm=
p
Debug options:
file:/D:/Internet/Programme/Eclipse 3.3.2/eclipse/.options not found
Time to load bundles: 78
!SESSION 2008-05-18 16:39:55.046 =
-----------------------------------------------
eclipse.buildId=3DM20080221-1800
java.version=3D1.6.0
java.vendor=3DSun Microsystems Inc.
BootLoader constants: OS=3Dwin32, ARCH=3Dx86, WS=3Dwin32, NL=3Dde_DE
Framework arguments: -product org.eclipse.sdk.ide
Command-line arguments: -product org.eclipse.sdk.ide -data C:\Dokumente =
und Einstellungen\Zenobios\Svg/../runtime-New_configuration -dev =
file:C:/Dokumente und =
Einstellungen/Zenobios/Svg/.metadata/.plugins/org.eclipse.pd e.core/Taipan=
Plugin/dev.properties -clean -consolelog -debug

!ENTRY org.eclipse.update.configurator 2008-05-18 16:39:56.718
!MESSAGE Could not install bundle =
plugins/net.sourceforge.lpg.lpgjavaruntime.source_1.1.0.v200 706111738.jar=
Bundle "net.sourceforge.lpg.lpgjavaruntime.source" version =
"1.1.0.v200706111738" has already been installed from: =
update@plugins /net.sourceforge.lpg.lpgjavaruntime.source_1.1.0.v200706111=
738

!ENTRY org.eclipse.osgi 2 0 2008-05-18 16:40:00.015
!MESSAGE The following is a complete list of bundles which are not =
resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-18 16:40:00.015
!MESSAGE Bundle update@plugins/com.ibm.icu.base.source_3.4.5 [6] was not =
resolved.
!SUBENTRY 2 com.ibm.icu.base.source 2 0 2008-05-18 16:40:00.015
!MESSAGE Another singleton version selected: =
com.ibm.icu.base.source_3.6.1.v20070417
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-18 16:40:00.015
!MESSAGE Bundle update@plugins/com.ibm.icu.base.source_3.6.0.20061215 =
[7] was not resolved.
!SUBENTRY 2 com.ibm.icu.base.source 2 0 2008-05-18 16:40:00.015
!MESSAGE Another singleton version selected: =
com.ibm.icu.base.source_3.6.1.v20070417
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-18 16:40:00.015
!MESSAGE Bundle update@plugins/com.ibm.icu.source_3.4.5 [12] was not =
resolved.
!SUBENTRY 2 com.ibm.icu.source 2 0 2008-05-18 16:40:00.015
!MESSAGE Another singleton version selected: =
com.ibm.icu.source_3.6.1.v20070906
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-18 16:40:00.015
!MESSAGE Bundle update@plugins/com.ibm.icu.source_3.6.0.20061215 [13] =
was not resolved.
!SUBENTRY 2 com.ibm.icu.source 2 0 2008-05-18 16:40:00.015
!MESSAGE Another singleton version selected: =
com.ibm.icu.source_3.6.1.v20070906
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-18 16:40:00.015
!MESSAGE Bundle update@plugins/com.ibm.icu.source_3.6.1.v20070417 [14] =
was not resolved.
!SUBENTRY 2 com.ibm.icu.source 2 0 2008-05-18 16:40:00.015
!MESSAGE Another singleton version selected: =
com.ibm.icu.source_3.6.1.v20070906
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-18 16:40:00.015
!MESSAGE Bundle update@plugins/com.ibm.icu_3.4.5.jar [15] was not =
resolved.
!SUBENTRY 2 com.ibm.icu 2 0 2008-05-18 16:40:00.015
!MESSAGE Another singleton version selected: com.ibm.icu_3.6.1.v20070906
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-18 16:40:00.015
!MESSAGE Bundle update@plugins/com.ibm.icu_3.6.0.20061215.jar [16] was =
not resolved.
!SUBENTRY 2 com.ibm.icu 2 0 2008-05-18 16:40:00.015
!MESSAGE Another singleton version selected: com.ibm.icu_3.6.1.v20070906
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-18 16:40:00.015
!MESSAGE Bundle update@plugins/com.ibm.icu_3.6.1.v20070417.jar [17] was =
not resolved.
!SUBENTRY 2 com.ibm.icu 2 0 2008-05-18 16:40:00.015
!MESSAGE Another singleton version selected: com.ibm.icu_3.6.1.v20070906
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-18 16:40:00.015
!MESSAGE Bundle update@C:/Dokumente und =
Einstellungen/Zenobios/Svg/org.eclipse.gmf.examples.taipan.e ditor.rcp/ =
[411] was not resolved.
!SUBENTRY 2 org.eclipse.gmf.examples.taipan.editor 2 0 2008-05-18 =
16:40:00.015
!MESSAGE Another singleton version selected: =
org.eclipse.gmf.examples.taipan.editor_1.0.0.qualifier
Starting application: 4985

!ENTRY org.eclipse.core.resources 2 10035 2008-05-18 16:40:00.671
!MESSAGE The workspace exited with unsaved changes in the previous =
session; refreshing workspace to recover changes.

!ENTRY org.eclipse.ui.workbench 2 0 2008-05-18 16:40:01.406
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2008-05-18 16:40:01.406
!MESSAGE Conflict for =
'org.eclipse.gmf.examples.taipan.gmf.editor.updateDiagram':
HandlerActivation(commandId=3Dorg.eclipse.gmf.examples.taipa n.gmf.editor.=
updateDiagram,
=
handler=3Dorg.eclipse.gmf.examples.taipan.gmf.editor.part.Ta iPanDiagramUp=
dateCommand,
expression=3D,sourcePriority=3D0)
HandlerActivation(commandId=3Dorg.eclipse.gmf.examples.taipa n.gmf.editor.=
updateDiagram,
=
handler=3Dorg.eclipse.gmf.examples.taipan.gmf.editor.part.Ta iPanDiagramUp=
dateCommand,
expression=3D,sourcePriority=3D0)

!ENTRY org.eclipse.ui.workbench 2 0 2008-05-18 16:40:01.562
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2008-05-18 16:40:01.562
!MESSAGE Conflict for =
'org.eclipse.gmf.examples.taipan.port.diagram.updateDiagram' :
HandlerActivation(commandId=3Dorg.eclipse.gmf.examples.taipa n.port.diagra=
m.updateDiagram,
=
handler=3Dorg.eclipse.gmf.examples.taipan.port.diagram.part. TaiPanDiagram=
UpdateCommand,
expression=3D,sourcePriority=3D0)
HandlerActivation(commandId=3Dorg.eclipse.gmf.examples.taipa n.port.diagra=
m.updateDiagram,
=
handler=3Dorg.eclipse.gmf.examples.taipan.port.diagram.part. TaiPanDiagram=
UpdateCommand,
expression=3D,sourcePriority=3D0)

!ENTRY org.eclipse.jface 2 0 2008-05-18 16:40:05.984
!MESSAGE Keybinding conflicts occurred. They may interfere with normal =
accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2008-05-18 16:40:05.984
!MESSAGE A conflict occurred for CTRL+O:
Binding(CTRL+O,
=
ParameterizedCommand(Command(org.eclipse.gmf.examples.taipan .gmf.editor.r=
cp.OpenCommand,Open...,
Open file,
Category(org.eclipse.ui.category.file,File,null,true),
,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+O,
=
ParameterizedCommand(Command(org.eclipse.gmf.examples.taipan .port.diagram=
..rcp.OpenCommand,Open...,
Open file,
Category(org.eclipse.ui.category.file,File,null,true),
,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
!SUBENTRY 1 org.eclipse.jface 2 0 2008-05-18 16:40:06.015
!MESSAGE A conflict occurred for CTRL+U:
Binding(CTRL+U,
=
ParameterizedCommand(Command(org.eclipse.jdt.debug.ui.comman ds.Execute,Ex=
ecute,
Evaluate selected text,
Category(org.eclipse.debug.ui.category.run,Run/Debug,Run/Deb ug command =
category,true),
,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+U,
=
ParameterizedCommand(Command(org.eclipse.gmf.examples.taipan .gmf.editor.r=
cp.OpenURICommand,Open URI...,
Open file by URI,
Category(org.eclipse.ui.category.file,File,null,true),
,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+U,
=
ParameterizedCommand(Command(org.eclipse.gmf.examples.taipan .port.diagram=
..rcp.OpenURICommand,Open URI...,
Open file by URI,
Category(org.eclipse.ui.category.file,File,null,true),
,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Application Started: 11172

!ENTRY org.eclipse.emf.ecore 2 0 2008-05-18 16:40:09.468
!MESSAGE Both 'org.eclipse.gmf.examples.taipan.gmf.editor' and =
'org.eclipse.gmf.examples.taipan.gmf.editor.rcp' register an extension =
parser for 'taipan_diagram'

!ENTRY org.eclipse.emf.ecore 2 0 2008-05-18 16:40:09.468
!MESSAGE Both 'org.eclipse.gmf.examples.taipan.port.diagram' and =
'org.eclipse.gmf.examples.taipan.port.diagram.rcp' register an extension =
parser for 'port_diagram'

!ENTRY org.eclipse.jface 2 0 2008-05-18 16:40:13.609
!MESSAGE Keybinding conflicts occurred. They may interfere with normal =
accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2008-05-18 16:40:13.609
!MESSAGE A conflict occurred for F5:
Binding(F5,
ParameterizedCommand(Command(org.eclipse.ui.file.refresh,Ref resh,
Refresh the selected items,
Category(org.eclipse.ui.category.file,File,null,true),
ActionHandler(RetargetAction(refresh)),
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(F5,
=
ParameterizedCommand(Command(org.eclipse.gmf.examples.taipan .gmf.editor.u=
pdateDiagram,Update TaiPan diagram,
Perform TaiPan diagram update,
Category(org.eclipse.ui.category.edit,Edit,null,true),
,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.gmf.examples.taipan.gmf.editor.ui.diagramContext ,,,system)
Binding(F5,
=
ParameterizedCommand(Command(org.eclipse.gmf.examples.taipan .gmf.editor.u=
pdateDiagram,Update TaiPan diagram,
Perform TaiPan diagram update,
Category(org.eclipse.ui.category.edit,Edit,null,true),
,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.gmf.examples.taipan.gmf.editor.ui.diagramContext ,,,system)

!ENTRY org.eclipse.ui 4 0 2008-05-18 16:41:24.906
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable =
(java.lang.NoClassDefFoundError: =
org/apache/batik/bridge/UserAgentAdapter)
at org.eclipse.swt.SWT.error(SWT.java:3563)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at =
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:1=
32)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3296)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at =
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:2=
89)
at =
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:46=
1)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at =
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplicati=
on.java:106)
at =
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.ja=
va:169)
at =
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplicati=
on(EclipseAppLauncher.java:106)
at =
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Eclips=
eAppLauncher.java:76)
at =
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:3=
63)
at =
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:1=
76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at =
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java=
:39)
at =
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorI=
mpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Caused by: java.lang.NoClassDefFoundError: =
org/apache/batik/bridge/UserAgentAdapter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at =
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def ineClass(Defa=
ultClassLoader.java:161)
at =
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(Classpat=
hManager.java:501)
at =
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(Classp=
athManager.java:471)
at =
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassImpl(C=
lasspathManager.java:430)
at =
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(Class=
pathManager.java:413)
at =
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(D=
efaultClassLoader.java:189)
at =
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(Bund=
leLoader.java:340)
at =
org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(Si=
ngleSourcePackage.java:37)
at =
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(B=
undleLoader.java:405)
at =
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoa=
der.java:369)
at =
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoa=
der.java:357)
at =
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(Defaul=
tClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
at =
org.eclipse.gmf.examples.taipan.figures.SVGFigure.paintFigur e(SVGFigure.j=
ava:42)
at org.eclipse.draw2d.Figure.paint(Figure.java:1049)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1114)
at org.eclipse.draw2d.Viewport.paintClientArea(Viewport.java:15 6)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at =
org.eclipse.draw2d.ScalableFreeformLayeredPane.paintClientAr ea(ScalableFr=
eeformLayeredPane.java:61)
at =
org.eclipse.gmf.runtime.draw2d.ui.internal.graphics.Scalable FreeformLayer=
edPane.paintClientArea(ScalableFreeformLayeredPane.java:82)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at =
org.eclipse.draw2d.parts.Thumbnail$ThumbnailUpdater.run(Thum bnail.java:15=
9)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at =
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:1=
29)
... 23 more

------=_NextPart_000_000F_01C8B906.3CCADFD0--
Re: Class loader problems [message #328216 is a reply to message #328211] Mon, 19 May 2008 07:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: master_andy.gmx.de

This is a multi-part message in MIME format.

------=_NextPart_000_000D_01C8B990.DF17D790
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I reduced the problem to a simple action:

public void run(IAction action) {

URL svgURL =3D FileLocator.find(Platform.getBundle("com.example.svg"), =
new Path(

"images/box.svg"), null);


SVGUserAgent agent =3D new SVGUserAgent(12,null);

// UserAgent agent =3D new UserAgentAdapter();

The problem is the SVGUserAgentAdapter which extends from the =
UserAgentAdapter. When the platform try to load SVGUserAgentAdapter, I =
get an error that the class UserAgentAdapter cannot be resolved. BUT: If =
I just use the UserAgentAdapter (by commenting out the =
SVGUserAgentAdapter and commenting in the last line) the =
UserAgentAdapter can be loaded! So - strange problem here...

Greetings,=20

Andreas

"Andreas Scharf" <andreas-scharf@gmx.de> schrieb im Newsbeitrag =
news:g0pf77$pmb$1@build.eclipse.org...
Hi Ed,

yes, the required plugins are already containted in the target =
platform. It seems like the platform even doesn't try to load the =
classes I need. I attached
the error log - maybe that helps...


"Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag =
news:g0mqn3$kmn$3@build.eclipse.org...
Andreas,

Are the required plugins included in the set of plugins specified in =
the launcher's Plug-in tab? Running with the -debug flag will produce =
diagnostic information in the Error log that might be helpful; =
-consolelog is useful for spitting that out to the console as they are =
produced.


Andreas wrote:=20
Hi Ed,

ok, my fault - I of course added the dependencie via the manifest file. =
But=20
I made that mistake
as I started to develop plugins ;). Any other hints?

Greetings,
Andreas

"Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag=20
news:g0kteh$h49$2@build.eclipse.org...
Andreas,

Did you add the dependency by editing the MANIFEST.MF using the=20
Dependencies tab? It's a common mistake to edit the project's =
properties=20
directly...


Andreas Scharf wrote:
Hi all,

I have a strange problem concerning loading a class from the batik=20
plugin. Short description: I'm playing with the GMF Taipan example and=20
the batik plugin. I added the batik plugin to the Taipan dependencies =
and=20
at compile time everything works fine.
If I start a new workbench, create a diagram and add an element which=20
needs a class which belongs to the org.apache.batik.bridge package, I =
get=20
an error loading the class I need:

Caused by: java.lang.NoClassDefFoundError:=20
org/apache/batik/bridge/UserAgentAdapter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

I really don't know why it's working, maybe u can give me a hint.

Cheers,
Andreas


=20

=20

------=_NextPart_000_000D_01C8B990.DF17D790
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=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.6000.16640" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I reduced the problem to a simple=20
action:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>
<P align=3Dleft></FONT><B><FONT color=3D#7f0055 =
size=3D2>public</B></FONT><FONT=20
size=3D2> </FONT><B><FONT color=3D#7f0055 size=3D2>void</B></FONT><FONT =
size=3D2>=20
run(IAction action) {</P>
<P align=3Dleft>URL svgURL =3D=20
FileLocator.<I>find</I>(Platform.<I>getBundle</I>(</FONT ><FONT =
color=3D#2a00ff=20
size=3D2>"com.example.svg"</FONT><FONT size=3D2>), </FONT><B><FONT =
color=3D#7f0055=20
size=3D2>new</B></FONT><FONT size=3D2> Path(</P>
<P align=3Dleft></FONT><FONT color=3D#2a00ff =
size=3D2>"images/box.svg"</FONT><FONT=20
size=3D2>), </FONT><B><FONT color=3D#7f0055 =
size=3D2>null</B></FONT><FONT=20
size=3D2>);</P>
<P align=3Dleft></P>
<P align=3Dleft>SVGUserAgent agent =3D </FONT><B><FONT color=3D#7f0055=20
size=3D2>new</B></FONT><FONT size=3D2> SVGUserAgent(12,</FONT><B><FONT =
color=3D#7f0055=20
size=3D2>null</B></FONT><FONT size=3D2>);</P></FONT><FONT =
color=3D#3f7f5f size=3D2>
<P>// UserAgent agent =3D new UserAgentAdapter();</P>
<P><FONT face=3DArial color=3D#000000>The problem is the =
SVGUserAgentAdapter which=20
extends from the UserAgentAdapter. When the platform try to load=20
SVGUserAgentAdapter, I get an error that the class UserAgentAdapter =
cannot be=20
resolved. BUT: If I just use the UserAgentAdapter (by commenting out the =

SVGUserAgentAdapter and commenting in the last line) the =
UserAgentAdapter can be=20
loaded! So - strange problem here...</FONT></P>
<P><FONT face=3DArial color=3D#000000>Greetings, </FONT></P>
<P><FONT face=3DArial color=3D#000000>Andreas</FONT></P></FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Andreas Scharf" &lt;<A=20
href=3D"mailto:andreas-scharf@gmx.de">andreas-scharf@gmx.de</A>&gt; =
schrieb im=20
Newsbeitrag <A=20
=
href=3D"news:g0pf77$pmb$1@build.eclipse.org">news:g0pf77$pmb$1@build.ecli=
pse.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi Ed,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yes, the required plugins are already =
containted=20
in the target platform. It seems like the platform even doesn't try to =
load=20
the classes I need. I attached</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the error log - maybe that =
helps...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A=20
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt; schrieb im =

Newsbeitrag <A=20
=
href=3D"news:g0mqn3$kmn$3@build.eclipse.org">news:g0mqn3$kmn$3@build.ecli=
pse.org</A>...</DIV>Andreas,<BR><BR>Are=20
the required plugins included in the set of plugins specified in the =

launcher's Plug-in tab?&nbsp; Running with the -debug flag will =
produce=20
diagnostic information in the Error log that might be helpful; =
-consolelog=20
is useful for spitting that out to the console as they are=20
produced.<BR><BR><BR>Andreas wrote:=20
<BLOCKQUOTE cite=3Dmid:g0m4lm$hfj$1@build.eclipse.org =
type=3D"cite"><PRE wrap=3D"">Hi Ed,

ok, my fault - I of course added the dependencie via the manifest file. =
But=20
I made that mistake
as I started to develop plugins ;). Any other hints?

Greetings,
Andreas

"Ed Merks" <A class=3Dmoz-txt-link-rfc2396E =
href=3D"mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</A> schrieb im =
Newsbeitrag=20
<A class=3Dmoz-txt-link-freetext =
href=3D"news:g0kteh$h49$2@build.eclipse.org">news:g0kteh$h49$2@build.ecli=
pse.org</A>...
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Andreas,

Did you add the dependency by editing the MANIFEST.MF using the=20
Dependencies tab? It's a common mistake to edit the project's =
properties=20
directly...


Andreas Scharf wrote:
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Hi all,

I have a strange problem concerning loading a class from the batik=20
plugin. Short description: I'm playing with the GMF Taipan example and=20
the batik plugin. I added the batik plugin to the Taipan dependencies =
and=20
at compile time everything works fine.
If I start a new workbench, create a diagram and add an element which=20
needs a class which belongs to the org.apache.batik.bridge package, I =
get=20
an error loading the class I need:

Caused by: java.lang.NoClassDefFoundError:=20
org/apache/batik/bridge/UserAgentAdapter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

I really don't know why it's working, maybe u can give me a hint.

Cheers,
Andreas


</PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap=3D""><!---->

</PRE></BLOCKQUOTE><BR></BLOCKQUOTE></BLOCKQUOTE></BODY ></HTML>

------=_NextPart_000_000D_01C8B990.DF17D790--
Re: Class loader problems [message #328222 is a reply to message #328211] Mon, 19 May 2008 12:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------080402040509020102080907
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Andreas,

Did you try the -clean -debug flags I suggested? It doesn't look like
it... You might want to install in a fresh new location and try with
that installation instead...


Andreas Scharf wrote:
> Hi Ed,
>
> yes, the required plugins are already containted in the target
> platform. It seems like the platform even doesn't try to load the
> classes I need. I attached
> the error log - maybe that helps...
>
>
>
> "Ed Merks" <merks@ca.ibm.com <mailto:merks@ca.ibm.com>> schrieb im
> Newsbeitrag news:g0mqn3$kmn$3@build.eclipse.org...
> Andreas,
>
> Are the required plugins included in the set of plugins specified
> in the launcher's Plug-in tab? Running with the -debug flag will
> produce diagnostic information in the Error log that might be
> helpful; -consolelog is useful for spitting that out to the
> console as they are produced.
>
>
> Andreas wrote:
>> Hi Ed,
>>
>> ok, my fault - I of course added the dependencie via the manifest file. But
>> I made that mistake
>> as I started to develop plugins ;). Any other hints?
>>
>> Greetings,
>> Andreas
>>
>> "Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag
>> news:g0kteh$h49$2@build.eclipse.org...
>>
>>> Andreas,
>>>
>>> Did you add the dependency by editing the MANIFEST.MF using the
>>> Dependencies tab? It's a common mistake to edit the project's properties
>>> directly...
>>>
>>>
>>> Andreas Scharf wrote:
>>>
>>>> Hi all,
>>>>
>>>> I have a strange problem concerning loading a class from the batik
>>>> plugin. Short description: I'm playing with the GMF Taipan example and
>>>> the batik plugin. I added the batik plugin to the Taipan dependencies and
>>>> at compile time everything works fine.
>>>> If I start a new workbench, create a diagram and add an element which
>>>> needs a class which belongs to the org.apache.batik.bridge package, I get
>>>> an error loading the class I need:
>>>>
>>>> Caused by: java.lang.NoClassDefFoundError:
>>>> org/apache/batik/bridge/UserAgentAdapter
>>>> at java.lang.ClassLoader.defineClass1(Native Method)
>>>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>>>
>>>> I really don't know why it's working, maybe u can give me a hint.
>>>>
>>>> Cheers,
>>>> Andreas
>>>>
>>>>
>>>>
>>
>>
>>
>


--------------080402040509020102080907
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Andreas,<br>
<br>
Did you try the -clean -debug flags I suggested?&nbsp; It doesn't look like
it...&nbsp; You might want to install in a fresh new location and try with
that installation instead...<br>
<br>
<br>
Andreas Scharf wrote:
<blockquote cite="mid:g0pf77$pmb$1@build.eclipse.org" type="cite">
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<meta content="MSHTML 6.00.2900.3086" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2">Hi Ed,</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">yes, the required plugins are
already containted in the target platform. It seems like the platform
even doesn't try to load the classes I need. I attached</font></div>
<div><font face="Arial" size="2">the error log - maybe that helps...</font></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<blockquote
style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>"Ed Merks" &lt;<a moz-do-not-send="true"
href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>&gt; schrieb im
Newsbeitrag <a moz-do-not-send="true"
href="news:g0mqn3$kmn$3@build.eclipse.org">news:g0mqn3$kmn$3@build.eclipse.org</a>...</div>
Andreas,<br>
<br>
Are the required plugins included in the set of plugins specified in
the launcher's Plug-in tab?&nbsp; Running with the -debug flag will produce
diagnostic information in the Error log that might be helpful;
-consolelog is useful for spitting that out to the console as they are
produced.<br>
<br>
<br>
Andreas wrote:
<blockquote cite="mid:g0m4lm$hfj$1@build.eclipse.org" type="cite">
<pre wrap="">Hi Ed,

ok, my fault - I of course added the dependencie via the manifest file. But
I made that mistake
as I started to develop plugins ;). Any other hints?

Greetings,
Andreas

"Ed Merks" <a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</a> schrieb im Newsbeitrag
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="news:g0kteh$h49$2@build.eclipse.org">news:g0kteh$h49$2@build.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Andreas,

Did you add the dependency by editing the MANIFEST.MF using the
Dependencies tab? It's a common mistake to edit the project's properties
directly...


Andreas Scharf wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi all,

I have a strange problem concerning loading a class from the batik
plugin. Short description: I'm playing with the GMF Taipan example and
the batik plugin. I added the batik plugin to the Taipan dependencies and
at compile time everything works fine.
If I start a new workbench, create a diagram and add an element which
needs a class which belongs to the org.apache.batik.bridge package, I get
an error loading the class I need:

Caused by: java.lang.NoClassDefFoundError:
org/apache/batik/bridge/UserAgentAdapter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

I really don't know why it's working, maybe u can give me a hint.

Cheers,
Andreas


</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
<br>
</blockquote>
</blockquote>
<br>
</body>
</html>

--------------080402040509020102080907--
Re: Class loader problems [message #328231 is a reply to message #328222] Mon, 19 May 2008 15:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: master_andy.gmx.de

This is a multi-part message in MIME format.

------=_NextPart_000_000C_01C8B9D5.00D17A00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ed,

yes, I tried the flags. And I have that problem on two different =
machines, so I don't think it's workspace/installation related.=20
I found out, that I have problems using classes which belong to that =
single plugin. I can use classes of other batik plugins,=20
but not of that particular org.apache.batik.pdf plugin...

Andreas
"Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag =
news:g0rrrm$hes$2@build.eclipse.org...
Andreas,

Did you try the -clean -debug flags I suggested? It doesn't look like =
it... You might want to install in a fresh new location and try with =
that installation instead...


Andreas Scharf wrote:=20
Hi Ed,

yes, the required plugins are already containted in the target =
platform. It seems like the platform even doesn't try to load the =
classes I need. I attached
the error log - maybe that helps...


"Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag =
news:g0mqn3$kmn$3@build.eclipse.org...
Andreas,

Are the required plugins included in the set of plugins specified =
in the launcher's Plug-in tab? Running with the -debug flag will =
produce diagnostic information in the Error log that might be helpful; =
-consolelog is useful for spitting that out to the console as they are =
produced.


Andreas wrote:=20
Hi Ed,

ok, my fault - I of course added the dependencie via the manifest file. =
But=20
I made that mistake
as I started to develop plugins ;). Any other hints?

Greetings,
Andreas

"Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag=20
news:g0kteh$h49$2@build.eclipse.org...
Andreas,

Did you add the dependency by editing the MANIFEST.MF using the=20
Dependencies tab? It's a common mistake to edit the project's =
properties=20
directly...


Andreas Scharf wrote:
Hi all,

I have a strange problem concerning loading a class from the batik=20
plugin. Short description: I'm playing with the GMF Taipan example and=20
the batik plugin. I added the batik plugin to the Taipan dependencies =
and=20
at compile time everything works fine.
If I start a new workbench, create a diagram and add an element which=20
needs a class which belongs to the org.apache.batik.bridge package, I =
get=20
an error loading the class I need:

Caused by: java.lang.NoClassDefFoundError:=20
org/apache/batik/bridge/UserAgentAdapter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

I really don't know why it's working, maybe u can give me a hint.

Cheers,
Andreas


=20

=20



------=_NextPart_000_000C_01C8B9D5.00D17A00
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=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.6000.16640" name=3DGENERATOR></HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Ed,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yes, I tried the flags. And I have that =
problem on=20
two different machines, so I don't think it's workspace/installation =
related.=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I found out, that I have problems using =
classes=20
which belong to that single plugin. I can use classes of other batik =
plugins,=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>but not of that particular =
org.apache.batik.pdf=20
plugin...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Andreas</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
schrieb im Newsbeitrag <A=20
=
href=3D"news:g0rrrm$hes$2@build.eclipse.org">news:g0rrrm$hes$2@build.ecli=
pse.org</A>...</DIV>Andreas,<BR><BR>Did=20
you try the -clean -debug flags I suggested?&nbsp; It doesn't look =
like=20
it...&nbsp; You might want to install in a fresh new location and try =
with=20
that installation instead...<BR><BR><BR>Andreas Scharf wrote:=20
<BLOCKQUOTE cite=3Dmid:g0pf77$pmb$1@build.eclipse.org type=3D"cite">
<META content=3D"MSHTML 6.00.2900.3086" name=3DGENERATOR>
<STYLE></STYLE>

<DIV><FONT face=3DArial size=3D2>Hi Ed,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yes, the required plugins are =
already=20
containted in the target platform. It seems like the platform even =
doesn't=20
try to load the classes I need. I attached</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the error log - maybe that=20
helps...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A href=3D"mailto:merks@ca.ibm.com"=20
moz-do-not-send=3D"true">merks@ca.ibm.com</A>&gt; schrieb im =
Newsbeitrag <A=20
href=3D"news:g0mqn3$kmn$3@build.eclipse.org"=20
=
moz-do-not-send=3D"true">news:g0mqn3$kmn$3@build.eclipse.org</A>...</DIV>=
Andreas,<BR><BR>Are=20
the required plugins included in the set of plugins specified in =
the=20
launcher's Plug-in tab?&nbsp; Running with the -debug flag will =
produce=20
diagnostic information in the Error log that might be helpful; =
-consolelog=20
is useful for spitting that out to the console as they are=20
produced.<BR><BR><BR>Andreas wrote:=20
<BLOCKQUOTE cite=3Dmid:g0m4lm$hfj$1@build.eclipse.org =
type=3D"cite"><PRE wrap=3D"">Hi Ed,

ok, my fault - I of course added the dependencie via the manifest file. =
But=20
I made that mistake
as I started to develop plugins ;). Any other hints?

Greetings,
Andreas

"Ed Merks" <A class=3Dmoz-txt-link-rfc2396E =
href=3D"mailto:merks@ca.ibm.com" =
moz-do-not-send=3D"true">&lt;merks@ca.ibm.com&gt;</A> schrieb im =
Newsbeitrag=20
<A class=3Dmoz-txt-link-freetext =
href=3D"news:g0kteh$h49$2@build.eclipse.org" =
moz-do-not-send=3D"true">news:g0kteh$h49$2@build.eclipse.org</A>...
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Andreas,

Did you add the dependency by editing the MANIFEST.MF using the=20
Dependencies tab? It's a common mistake to edit the project's =
properties=20
directly...


Andreas Scharf wrote:
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Hi all,

I have a strange problem concerning loading a class from the batik=20
plugin. Short description: I'm playing with the GMF Taipan example and=20
the batik plugin. I added the batik plugin to the Taipan dependencies =
and=20
at compile time everything works fine.
If I start a new workbench, create a diagram and add an element which=20
needs a class which belongs to the org.apache.batik.bridge package, I =
get=20
an error loading the class I need:

Caused by: java.lang.NoClassDefFoundError:=20
org/apache/batik/bridge/UserAgentAdapter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

I really don't know why it's working, maybe u can give me a hint.

Cheers,
Andreas


</PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap=3D""><!---->

=
</PRE></BLOCKQUOTE><BR></BLOCKQUOTE></BLOCKQUOTE><BR></BLOCKQUOTE ></BODY>=
</HTML>

------=_NextPart_000_000C_01C8B9D5.00D17A00--
Re: Class loader problems [message #328233 is a reply to message #328231] Mon, 19 May 2008 16:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------080502050809080508060303
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Andreas,

I suppose it could be a bug. Or maybe the problem is with how the
plugin is packaged... Maybe you could describe the simplified scenario
in a bugzilla...


Andreas wrote:
> Ed,
>
> yes, I tried the flags. And I have that problem on two different
> machines, so I don't think it's workspace/installation related.
> I found out, that I have problems using classes which belong to that
> single plugin. I can use classes of other batik plugins,
> but not of that particular org.apache.batik.pdf plugin...
>
> Andreas
>
> "Ed Merks" <merks@ca.ibm.com <mailto:merks@ca.ibm.com>> schrieb im
> Newsbeitrag news:g0rrrm$hes$2@build.eclipse.org...
> Andreas,
>
> Did you try the -clean -debug flags I suggested? It doesn't look
> like it... You might want to install in a fresh new location and
> try with that installation instead...
>
>
> Andreas Scharf wrote:
>> Hi Ed,
>>
>> yes, the required plugins are already containted in the target
>> platform. It seems like the platform even doesn't try to load the
>> classes I need. I attached
>> the error log - maybe that helps...
>>
>>
>>
>> "Ed Merks" <merks@ca.ibm.com <mailto:merks@ca.ibm.com>>
>> schrieb im Newsbeitrag news:g0mqn3$kmn$3@build.eclipse.org...
>> Andreas,
>>
>> Are the required plugins included in the set of plugins
>> specified in the launcher's Plug-in tab? Running with the
>> -debug flag will produce diagnostic information in the Error
>> log that might be helpful; -consolelog is useful for spitting
>> that out to the console as they are produced.
>>
>>
>> Andreas wrote:
>>> Hi Ed,
>>>
>>> ok, my fault - I of course added the dependencie via the manifest file. But
>>> I made that mistake
>>> as I started to develop plugins ;). Any other hints?
>>>
>>> Greetings,
>>> Andreas
>>>
>>> "Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag
>>> news:g0kteh$h49$2@build.eclipse.org...
>>>
>>>> Andreas,
>>>>
>>>> Did you add the dependency by editing the MANIFEST.MF using the
>>>> Dependencies tab? It's a common mistake to edit the project's properties
>>>> directly...
>>>>
>>>>
>>>> Andreas Scharf wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I have a strange problem concerning loading a class from the batik
>>>>> plugin. Short description: I'm playing with the GMF Taipan example and
>>>>> the batik plugin. I added the batik plugin to the Taipan dependencies and
>>>>> at compile time everything works fine.
>>>>> If I start a new workbench, create a diagram and add an element which
>>>>> needs a class which belongs to the org.apache.batik.bridge package, I get
>>>>> an error loading the class I need:
>>>>>
>>>>> Caused by: java.lang.NoClassDefFoundError:
>>>>> org/apache/batik/bridge/UserAgentAdapter
>>>>> at java.lang.ClassLoader.defineClass1(Native Method)
>>>>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>>>>
>>>>> I really don't know why it's working, maybe u can give me a hint.
>>>>>
>>>>> Cheers,
>>>>> Andreas
>>>>>
>>>>>
>>>>>
>>>
>>>
>>>
>>
>


--------------080502050809080508060303
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Andreas,<br>
<br>
I suppose it could be a bug.&nbsp; Or maybe the problem is with how the
plugin is packaged...&nbsp; Maybe you could describe the simplified scenario
in a bugzilla...<br>
<br>
<br>
Andreas wrote:
<blockquote cite="mid:g0s60e$nn9$1@build.eclipse.org" type="cite">
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<meta content="MSHTML 6.00.6000.16640" name="GENERATOR">
<div><font face="Arial" size="2">Ed,</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">yes, I tried the flags. And I have
that problem on two different machines, so I don't think it's
workspace/installation related. </font></div>
<div><font face="Arial" size="2">I found out, that I have problems
using classes which belong to that single plugin. I can use classes of
other batik plugins, </font></div>
<div><font face="Arial" size="2">but not of that particular
org.apache.batik.pdf plugin...</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Andreas</font></div>
<blockquote
style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>"Ed Merks" &lt;<a moz-do-not-send="true"
href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>&gt; schrieb im
Newsbeitrag <a moz-do-not-send="true"
href="news:g0rrrm$hes$2@build.eclipse.org">news:g0rrrm$hes$2@build.eclipse.org</a>...</div>
Andreas,<br>
<br>
Did you try the -clean -debug flags I suggested?&nbsp; It doesn't look like
it...&nbsp; You might want to install in a fresh new location and try with
that installation instead...<br>
<br>
<br>
Andreas Scharf wrote:
<blockquote cite="mid:g0pf77$pmb$1@build.eclipse.org" type="cite">
<meta content="MSHTML 6.00.2900.3086" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2">Hi Ed,</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">yes, the required plugins are
already containted in the target platform. It seems like the platform
even doesn't try to load the classes I need. I attached</font></div>
<div><font face="Arial" size="2">the error log - maybe that
helps...</font></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<blockquote
style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>"Ed Merks" &lt;<a href="mailto:merks@ca.ibm.com"
moz-do-not-send="true">merks@ca.ibm.com</a>&gt; schrieb im Newsbeitrag
<a href="news:g0mqn3$kmn$3@build.eclipse.org"
moz-do-not-send="true">news:g0mqn3$kmn$3@build.eclipse.org</a>...</div>
Andreas,<br>
<br>
Are the required plugins included in the set of plugins specified in
the launcher's Plug-in tab?&nbsp; Running with the -debug flag will produce
diagnostic information in the Error log that might be helpful;
-consolelog is useful for spitting that out to the console as they are
produced.<br>
<br>
<br>
Andreas wrote:
<blockquote cite="mid:g0m4lm$hfj$1@build.eclipse.org"
type="cite">
<pre wrap="">Hi Ed,

ok, my fault - I of course added the dependencie via the manifest file. But
I made that mistake
as I started to develop plugins ;). Any other hints?

Greetings,
Andreas

"Ed Merks" <a class="moz-txt-link-rfc2396E"
href="mailto:merks@ca.ibm.com" moz-do-not-send="true">&lt;merks@ca.ibm.com&gt;</a> schrieb im Newsbeitrag
<a class="moz-txt-link-freetext"
href="news:g0kteh$h49$2@build.eclipse.org" moz-do-not-send="true">news:g0kteh$h49$2@build.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Andreas,

Did you add the dependency by editing the MANIFEST.MF using the
Dependencies tab? It's a common mistake to edit the project's properties
directly...


Andreas Scharf wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi all,

I have a strange problem concerning loading a class from the batik
plugin. Short description: I'm playing with the GMF Taipan example and
the batik plugin. I added the batik plugin to the Taipan dependencies and
at compile time everything works fine.
If I start a new workbench, create a diagram and add an element which
needs a class which belongs to the org.apache.batik.bridge package, I get
an error loading the class I need:

Caused by: java.lang.NoClassDefFoundError:
org/apache/batik/bridge/UserAgentAdapter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

I really don't know why it's working, maybe u can give me a hint.

Cheers,
Andreas


</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
<br>
</blockquote>
</blockquote>
<br>
</blockquote>
</blockquote>
<br>
</body>
</html>

--------------080502050809080508060303--
Re: Class loader problems [message #328346 is a reply to message #328216] Thu, 22 May 2008 14:08 Go to previous message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

I had a class loader problem myself, this was my scenario:

plugin_util was exporting xstream to other plugins

plugin_a depends on plugin_util.

I could serialize from plugin_a using xstream. However, deserialization
from plugin_a did not work: xstream could not find a class from plugin_a.

The problem was that xstream used the class loader of plugin_a which had
no clue about classes in plugin_a. My solution was to add xstream directly
to plugin_a. There might be a better way, using buddy plugins but I didn't
try that.

Maybe this helps.

vlad


On Mon, 19 May 2008 09:15:24 +0200, Andreas wrote:

> I reduced the problem to a simple action:
>
> public void run(IAction action) {
>
> URL svgURL = FileLocator.find(Platform.getBundle("com.example.svg"), new Path(
>
> "images/box.svg"), null);
>
>
> SVGUserAgent agent = new SVGUserAgent(12,null);
>
> // UserAgent agent = new UserAgentAdapter();
>
> The problem is the SVGUserAgentAdapter which extends from the UserAgentAdapter. When the platform try to load SVGUserAgentAdapter, I get an error that the class UserAgentAdapter cannot be resolved. BUT: If I just use the UserAgentAdapter (by commenting out the SVGUserAgentAdapter and commenting in the last line) the UserAgentAdapter can be loaded! So - strange problem here...
>
> Greetings,
>
> Andreas
>
> "Andreas Scharf" <andreas-scharf@gmx.de> schrieb im Newsbeitrag news:g0pf77$pmb$1@build.eclipse.org...
> Hi Ed,
>
> yes, the required plugins are already containted in the target platform. It seems like the platform even doesn't try to load the classes I need. I attached
> the error log - maybe that helps...
>
>
> "Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag news:g0mqn3$kmn$3@build.eclipse.org...
> Andreas,
>
> Are the required plugins included in the set of plugins specified in the launcher's Plug-in tab? Running with the -debug flag will produce diagnostic information in the Error log that might be helpful; -consolelog is useful for spitting that out to the console as they are produced.
>
>
> Andreas wrote:
> Hi Ed,
>
> ok, my fault - I of course added the dependencie via the manifest file. But
> I made that mistake
> as I started to develop plugins ;). Any other hints?
>
> Greetings,
> Andreas
>
> "Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag
> news:g0kteh$h49$2@build.eclipse.org...
> Andreas,
>
> Did you add the dependency by editing the MANIFEST.MF using the
> Dependencies tab? It's a common mistake to edit the project's properties
> directly...
>
>
> Andreas Scharf wrote:
> Hi all,
>
> I have a strange problem concerning loading a class from the batik
> plugin. Short description: I'm playing with the GMF Taipan example and
> the batik plugin. I added the batik plugin to the Taipan dependencies and
> at compile time everything works fine.
> If I start a new workbench, create a diagram and add an element which
> needs a class which belongs to the org.apache.batik.bridge package, I get
> an error loading the class I need:
>
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/batik/bridge/UserAgentAdapter
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>
> I really don't know why it's working, maybe u can give me a hint.
>
> Cheers,
> Andreas
>
>
>
>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
> <META content="MSHTML 6.00.6000.16640" name=GENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY text=#000000 bgColor=#ffffff>
> <DIV><FONT face=Arial size=2>I reduced the problem to a simple
> action:</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> <DIV><FONT size=2>
> <P align=left></FONT><B><FONT color=#7f0055 size=2>public</B></FONT><FONT
> size=2> </FONT><B><FONT color=#7f0055 size=2>void</B></FONT><FONT size=2>
> run(IAction action) {</P>
> <P align=left>URL svgURL =
> FileLocator.<I>find</I>(Platform.<I>getBundle</I>(</FONT ><FONT color=#2a00ff
> size=2>"com.example.svg"</FONT><FONT size=2>), </FONT><B><FONT color=#7f0055
> size=2>new</B></FONT><FONT size=2> Path(</P>
> <P align=left></FONT><FONT color=#2a00ff size=2>"images/box.svg"</FONT><FONT
> size=2>), </FONT><B><FONT color=#7f0055 size=2>null</B></FONT><FONT
> size=2>);</P>
> <P align=left></P>
> <P align=left>SVGUserAgent agent = </FONT><B><FONT color=#7f0055
> size=2>new</B></FONT><FONT size=2> SVGUserAgent(12,</FONT><B><FONT color=#7f0055
> size=2>null</B></FONT><FONT size=2>);</P></FONT><FONT color=#3f7f5f size=2>
> <P>// UserAgent agent = new UserAgentAdapter();</P>
> <P><FONT face=Arial color=#000000>The problem is the SVGUserAgentAdapter which
> extends from the UserAgentAdapter. When the platform try to load
> SVGUserAgentAdapter, I get an error that the class UserAgentAdapter cannot be
> resolved. BUT: If I just use the UserAgentAdapter (by commenting out the
> SVGUserAgentAdapter and commenting in the last line) the UserAgentAdapter can be
> loaded! So - strange problem here...</FONT></P>
> <P><FONT face=Arial color=#000000>Greetings, </FONT></P>
> <P><FONT face=Arial color=#000000>Andreas</FONT></P></FONT></DIV>
> <BLOCKQUOTE dir=ltr
> style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
> <DIV>"Andreas Scharf" &lt;<A
> href="mailto:andreas-scharf@gmx.de">andreas-scharf@gmx.de</A>&gt; schrieb im
> Newsbeitrag <A
> href="news:g0pf77$pmb$1@build.eclipse.org">news:g0pf77$pmb$1@build.eclipse.org</A>...</DIV>
> <DIV><FONT face=Arial size=2>Hi Ed,</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> <DIV><FONT face=Arial size=2>yes, the required plugins are already containted
> in the target platform. It seems like the platform even doesn't try to load
> the classes I need. I attached</FONT></DIV>
> <DIV><FONT face=Arial size=2>the error log - maybe that helps...</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> <DIV>&nbsp;</DIV>
> <BLOCKQUOTE
> style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
> <DIV>"Ed Merks" &lt;<A
> href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt; schrieb im
> Newsbeitrag <A
> href="news:g0mqn3$kmn$3@build.eclipse.org">news:g0mqn3$kmn$3@build.eclipse.org</A>...</DIV>Andreas,<BR><BR>Are
> the required plugins included in the set of plugins specified in the
> launcher's Plug-in tab?&nbsp; Running with the -debug flag will produce
> diagnostic information in the Error log that might be helpful; -consolelog
> is useful for spitting that out to the console as they are
> produced.<BR><BR><BR>Andreas wrote:
> <BLOCKQUOTE cite=mid:g0m4lm$hfj$1@build.eclipse.org type="cite"><PRE wrap="">Hi Ed,
>
> ok, my fault - I of course added the dependencie via the manifest file. But
> I made that mistake
> as I started to develop plugins ;). Any other hints?
>
> Greetings,
> Andreas
>
> "Ed Merks" <A class=moz-txt-link-rfc2396E href="mailto:merks@ca.ibm.com">&lt;merks@ca.ibm.com&gt;</A> schrieb im Newsbeitrag
> <A class=moz-txt-link-freetext href="news:g0kteh$h49$2@build.eclipse.org">news:g0kteh$h49$2@build.eclipse.org</A>...
> </PRE>
> <BLOCKQUOTE type="cite"><PRE wrap="">Andreas,
>
> Did you add the dependency by editing the MANIFEST.MF using the
> Dependencies tab? It's a common mistake to edit the project's properties
> directly...
>
>
> Andreas Scharf wrote:
> </PRE>
> <BLOCKQUOTE type="cite"><PRE wrap="">Hi all,
>
> I have a strange problem concerning loading a class from the batik
> plugin. Short description: I'm playing with the GMF Taipan example and
> the batik plugin. I added the batik plugin to the Taipan dependencies and
> at compile time everything works fine.
> If I start a new workbench, create a diagram and add an element which
> needs a class which belongs to the org.apache.batik.bridge package, I get
> an error loading the class I need:
>
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/batik/bridge/UserAgentAdapter
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>
> I really don't know why it's working, maybe u can give me a hint.
>
> Cheers,
> Andreas
>
>
> </PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap=""><!---->
>
> </PRE></BLOCKQUOTE><BR></BLOCKQUOTE></BLOCKQUOTE></BODY ></HTML>
Previous Topic:Developers beware: many eclipse filenames are getting too long for Windows...
Next Topic:p2 Installer Issues
Goto Forum:
  


Current Time: Thu Dec 26 19:52:41 GMT 2024

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

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

Back to the top