UPDATE 1/2 - It turns out that changing "webAppCreator" to executable
(see previous update) caused me to get a different initial error when
I try to create a new Eclipse "Web Application Project".  I didn't
notice this before I posted the previous update.  See below for the
new error I am receiving.

UPDATE 2/2 - If I use "webAppCreator" to "Create an Application from
Scratch (without Eclipse)" as per the GWT Quick Start guide (http://
code.google.com/webtoolkit/gettingstarted.html), it runs successfully
and I can import the project into Eclipse using the method I described
in a previous update.  However, I still receive the same
"java.lang.NoClassDefFoundError:
org.eclipse.jdt.internal.compiler.lookup.Binding" error when I try to
edit "MyApplication.java" in Eclipse.

Here are the commands I use to create an application from scratch:

$ cd ~/Development/workspace/
$ /Applications/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.macosx_1.7.1.v200909221731/gwt-
mac-1.7.1/webAppCreator -out MyApplication com.mycompany.MyApplication

Here are the steps I use to produce the error in Eclipse:

1. Open Eclipse 3.5 in OSX 10.5.8
2. Import the "MyApplication" application we created in steps above
(see previous update for exact import process if you are new to
Eclipse).
3. Open Eclipse "Project Explorer" window and browse to MyApplication -
> src -> com.mycompany.client
4. Double-click on "MyApplication.java" or "GreetingServiceAsync.java"
to produce the error below.  NOTE: double-clicking
"GreetingService.java" or "GreetingServiceImpl.java" will open them in
the editor without error as you'd expect.


The files that produce errors DO exist and do not seem to have
permissions issues.  I've listed the files and their MD5's below in
case anyone is comparing this to their own installation.

$ cd /Users/jrklein/Development/workspace/MyApplication/src/com/
mycompany/client
$ ls -la *.java
-rw-r--r--  1 jrklein  staff   333 Sep 30 21:58 GreetingService.java
-rw-r--r--  1 jrklein  staff   259 Sep 30 21:58
GreetingServiceAsync.java
-rw-r--r--  1 jrklein  staff  4958 Sep 30 21:58 MyApplication.java
$ md5 *.java
MD5 (GreetingService.java) = 383feb22aac04d00baed7e304e228b9a
MD5 (GreetingServiceAsync.java) = 88d2496a32e5bb616b8c7bcbb965fe57
MD5 (MyApplication.java) = 668cc8c6bc040ed77f8211f75af04127


It seems like one or more Eclipse 3.5 file(s) are not compatible with
the default GWT 1.7.1 application tht "webAppCreator" creates?  I'm
not really sure what to do next, but will pickup on this in the
morning if someone doesn't have a suggestion by then.  Perhaps I
should be invoking the "webAppCreator" tool differently or perhaps
this is a bug?

-jrk


===== MESSAGE:  INTERNAL ERROR =====
java.lang.reflect.InvocationTargetException
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:
421)
        at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:944)
        at org.eclipse.jdt.internal.ui.wizards.NewElementWizard.performFinish
(NewElementWizard.java:132)
        at
com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.performFinish
(NewWebAppProjectWizard.java:124)
        at org.eclipse.jface.wizard.WizardDialog.finishPressed
(WizardDialog.java:752)
        at org.eclipse.jface.wizard.WizardDialog.buttonPressed
(WizardDialog.java:373)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
        at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3543)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
        at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1079)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3441)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3100)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run
(NewWizardShortcutAction.java:135)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
        at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:584)
        at org.eclipse.jface.action.ActionContributionItem.access$2
(ActionContributionItem.java:501)
        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent
(ActionContributionItem.java:411)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3543)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
        at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1079)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3441)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3100)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault
(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:194)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: java.lang.NoClassDefFoundError:
org.eclipse.jdt.internal.compiler.lookup.Binding
        at
org.eclipse.jdt.internal.compiler.ast.TypeReference.baseTypeReference
(TypeReference.java:39)
        at org.eclipse.jdt.internal.compiler.parser.Parser.getTypeReference
(Parser.java:8584)
        at
org.eclipse.jdt.internal.compiler.parser.Parser.consumeMethodHeaderName
(Parser.java:4444)
        at org.eclipse.jdt.internal.compiler.parser.Parser.consumeRule
(Parser.java:5375)
        at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:
9339)
        at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:
9571)
        at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:
9528)
        at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse
(Parser.java:8126)
        at
org.eclipse.jdt.internal.core.util.CodeSnippetParsingUtil.parseCompilationUnit
(CodeSnippetParsingUtil.java:109)
        at
org.eclipse.jdt.internal.formatter.DefaultCodeFormatter.formatCompilationUnit
(DefaultCodeFormatter.java:322)
        at org.eclipse.jdt.internal.formatter.DefaultCodeFormatter.format
(DefaultCodeFormatter.java:205)
        at org.eclipse.jdt.internal.formatter.DefaultCodeFormatter.format
(DefaultCodeFormatter.java:188)
        at org.eclipse.jdt.internal.corext.util.CodeFormatterUtil.format2
(CodeFormatterUtil.java:227)
        at org.eclipse.jdt.internal.corext.util.CodeFormatterUtil.format2
(CodeFormatterUtil.java:254)
        at
com.google.gdt.eclipse.core.resources.ProjectResources.reformatJavaSourceAsString
(ProjectResources.java:155)
        at
com.google.gdt.eclipse.core.resources.ProjectResources.reformatJavaSource
(ProjectResources.java:139)
        at
com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.reformatJavaFiles
(WebAppProjectCreator.java:183)
        at
com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject
(WebAppProjectCreator.java:447)
        at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create
(WebAppProjectCreator.java:273)
        at
com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage
(NewWebAppProjectWizard.java:219)
        at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run
(NewElementWizard.java:116)
        at org.eclipse.jdt.internal.core.BatchOperation.executeOperation
(BatchOperation.java:39)
        at org.eclipse.jdt.internal.core.JavaModelOperation.run
(JavaModelOperation.java:728)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
1800)
        at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4694)
        at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run
(WorkbenchRunnableAdapter.java:106)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:121)
===== EOF =====

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to