Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » NoClassDefFoundError org/eclipse/rwt/widgets/GCCanvas
NoClassDefFoundError org/eclipse/rwt/widgets/GCCanvas [message #500381] Wed, 25 November 2009 20:21 Go to next message
hannes is currently offline hannesFriend
Messages: 12
Registered: October 2009
Location: Germany
Junior Member
Im trying to use the GCCanvas widget.
But if i start my Canavas WebApp, i always get the error
java.lang.NoClassDefFoundError: org/eclipse/rwt/widgets/GCCanvas
.
Im using RAP 1.3 M3.
I tried several ways to import the widget, but nothing worked for me.

Whats the right way to include this widget in my RAP Project ?

Thanks,

Regards
hannes

Re: NoClassDefFoundError org/eclipse/rwt/widgets/GCCanvas [message #500384 is a reply to message #500381] Wed, 25 November 2009 20:41 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,

add "org.eclipse.rwt.widgets.GCCanvas" bundle to your bundle dependencies.

HTH,
Ivan

On 11/25/2009 22:21, h4nn3s@inbox.com wrote:
> Im trying to use the GCCanvas widget.
> But if i start my Canavas WebApp, i always get the error
> java.lang.NoClassDefFoundError: org/eclipse/rwt/widgets/GCCanvas.
> Im using RAP 1.3 M3.
> I tried several ways to import the widget, but nothing worked for me.
>
> Whats the right way to include this widget in my RAP Project ?
>
> Thanks,
>
> Regards hannes
>
>
Re: NoClassDefFoundError org/eclipse/rwt/widgets/GCCanvas [message #500397 is a reply to message #500384] Wed, 25 November 2009 22:09 Go to previous messageGo to next message
hannes is currently offline hannesFriend
Messages: 12
Registered: October 2009
Location: Germany
Junior Member
Ive tried this already, same error.

Here is my manifest

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: RAPProject
Bundle-SymbolicName: RAPProject;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: org.eclipse.rap.ui;bundle-version="1.3.0",
 javax.servlet;bundle-version="2.5.0",
 org.eclipse.rwt.widgets.GCCanvas;bundle-version="1.0.0"
Import-Package: javax.servlet.http;version="[2.3.0,2.5.0]",
 org.eclipse.rwt.widgets


I also have access restriction warings/errors.
Access restriction: The constructor GCCanvas(Composite, int) is not accessible due to restriction on required project org.eclipse.rwt.widgets.GCCanvas

[Updated on: Wed, 25 November 2009 22:15]

Report message to a moderator

Re: NoClassDefFoundError org/eclipse/rwt/widgets/GCCanvas [message #500428 is a reply to message #500397] Thu, 26 November 2009 07:01 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Hannes,

I can't reproduce the access restriction warings/errors. Did you change anything in the GCCanvas bundle? Are you rinning your application from within the Eclipse or you deploy it in the servlet container? In case of deployment - check that the GCCanvas bundle is exported (present in feature.xml).

Best,
Ivan
Re: NoClassDefFoundError org/eclipse/rwt/widgets/GCCanvas [message #500476 is a reply to message #500428] Thu, 26 November 2009 10:03 Go to previous messageGo to next message
hannes is currently offline hannesFriend
Messages: 12
Registered: October 2009
Location: Germany
Junior Member
Im trying to run it with eclipse.

I think the way how i installed the widget is wrong.

I imported it as "Existing Project into Workspace", and added it to the dependencies in plugin.xml and to the project as required project.
Whats the right way to import the widget ?

Regards,
hannes

[Updated on: Thu, 26 November 2009 19:59]

Report message to a moderator

Re: NoClassDefFoundError org/eclipse/rwt/widgets/GCCanvas [message #500592 is a reply to message #500476] Thu, 26 November 2009 21:55 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
This is the correct way.

On 11/26/2009 12:03, h4nn3s@inbox.com wrote:
> Im trying to run it with eclipse.
>
> I think the way how i installed the widget is wring.
>
> I imported it as "Existing Project into Workspace".
>
> Whats the right way to import the widget ?
>
> Regards,
> hannes
Re: NoClassDefFoundError org/eclipse/rwt/widgets/GCCanvas [message #500663 is a reply to message #500381] Fri, 27 November 2009 11:43 Go to previous message
hannes is currently offline hannesFriend
Messages: 12
Registered: October 2009
Location: Germany
Junior Member
I set up a new eclipse. Now it works fine. Thank you Ivan for your help !

But i also got this access restriction warnings.

Regards

hannes

[Updated on: Fri, 27 November 2009 11:44]

Report message to a moderator

Previous Topic:ViewToolBarManager Question
Next Topic:TreeViewer dont scroll a node by expanding
Goto Forum:
  


Current Time: Thu Mar 28 20:28:47 GMT 2024

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

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

Back to the top