ClassNotFound when adding to Custom Palette

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

ClassNotFound when adding to Custom Palette

Postby alexzakharov » Wed Jun 17, 2009 11:07 am

I recently converted my eval version of designer to a paid version and my custom composite objects no longer show up in the palette.

Details:
While in eval mode I developed a relatively non-trivial proof of concept for my company. The designer was configured for GWT-EXT so I build the POC with GWT-EXT controls - panels, grids, layouts. I had 3 Composites which were all added to the 'Custom' section of the Palette.

After the upgrade I only see 1 out of 3 in the palette. I tried re-adding my Composites but I keep getting classNotFound exception for my main Composite class - allthought that class clearly exists and compiles. I can open up all those components separately and see them in design view fine.

Please help. I would really hate to have to rebuild everything from scratch....

Environment:
GWT Designer 7.0.0.200906031200 running against GWT 1.6 and configured for GWT-EXT
Eclipse 3.4.2
alexzakharov
 
Posts: 19
Joined: Wed Jun 03, 2009 12:14 pm

Re: ClassNotFound when adding to Custom Palette

Postby Eric Clayberg » Wed Jun 17, 2009 12:43 pm

See the FAQ.

A ClassNotFound exception usually implies a compilation issue, a classpath issue or a JDK mismatch issue.

I would also suggest updating to the latest GWT Designer 7.0 build for a better error message.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: ClassNotFound when adding to Custom Palette

Postby alexzakharov » Wed Jun 17, 2009 1:39 pm

I upgraded to latest - same problem with same level of detail.

Just to make sure we are talking about the same thing - I have 4 classes under my client com.bla.bla.client: MainModule, Composite1, Composite2, Composite3. All Composites compile and look fine in their design view. I open MainModule, switch to design view, right click on 'Custom' subsection of the Palette and select 'add component'. 'Add component' wizard window shows up, i click on 'Choose' , type in the name of Composite1 - it shows up in matching items, I select it, then the Name, ClassName, Description all get prepopulated and yet I see 'ClassNoFoundException' on top of the screen. Attached is the screenshot.

Any thoughts?
Attachments
GWT1.JPG
GWT1.JPG (33.23 KiB) Viewed 488 times
alexzakharov
 
Posts: 19
Joined: Wed Jun 03, 2009 12:14 pm

Re: ClassNotFound when adding to Custom Palette

Postby Eric Clayberg » Wed Jun 17, 2009 3:54 pm

Do .class files exist for all of the classes in your project's /bin directory?

Feel free to ZIP up the project and send it to us so that we can take a look.

It would also be good to see your Eclipse ".log" file.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: ClassNotFound when adding to Custom Palette

Postby alexzakharov » Thu Jun 18, 2009 7:59 am

Thanks. Fixed it - I had a stray import of one of the non jre-emulation compliant classes in one of the objects. I only realized I had it by looking at .gwt-log, I guess I'm a little surprised that GWT Designer didn't show me a more descriptive error.
alexzakharov
 
Posts: 19
Joined: Wed Jun 03, 2009 12:14 pm

Re: ClassNotFound when adding to Custom Palette

Postby Eric Clayberg » Thu Jun 18, 2009 11:32 am

Can you post your project's .project file?

alexzakharov wrote:I had a stray import of one of the non jre-emulation compliant classes in one of the objects. I only realized I had it by looking at .gwt-log, I guess I'm a little surprised that GWT Designer didn't show me a more descriptive error.

In the palette dialog (which knows nothing about GWT), we simply ask the system classloader for the class. If it throws a ClassNotFoundException, it does not provide any info about the actual cause.

That said, if your project is actually configured to use GWT Designer, GWT Designer will show you a compilation error in the source view.

Image

If that is not happening, we definitely need to see the entire project in order to determine why not.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests