scheglov / google-plugin-for-eclipse

Automatically exported from code.google.com/p/google-plugin-for-eclipse
Eclipse Public License 1.0
0 stars 3 forks source link

GWT Designer can't find GWT module X in project #255

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(If this is your first time submitting an issue report to the GWT Issue
Tracker, please see the sample issue report linked below for an example of
a well reported issue)
Sample issue report:
http://code.google.com/p/google-web-toolkit/wiki/IssueReportSample

Found in GWT Release (e.g. 2.4.0, 2.5.1, trunk):
2.5.1

Encountered on OS / Browser (e.g. WinXP, IE9, FF10):
Windows 7

Detailed description (please be as specific as possible):

I am having trouble with GWT Designer in my GWT application.

Can't find GWT module
    GWT Designer can't find GWT module com.google.gwt.query.Query in project. Possible reasons: 

    1. There really are no module with this ID. For example, it was just mistyped or accidentally broken. 
    2. Jar files or project that contains the required module is not included into the classpath of the current GWT project. 

Show stack trace. 
Hide stack trace. 

Stack trace:

org.eclipse.wb.internal.core.utils.exception.DesignerException: 4000 (Can't 
find GWT module). com.google.gwt.query.Query
at 
org.eclipse.wb.internal.core.utils.check.Assert.isTrueException(Assert.java:390)
at 
com.google.gdt.eclipse.designer.util.ModuleVisitor.accept(ModuleVisitor.java:141
)
at 
com.google.gdt.eclipse.designer.util.ModuleVisitor.accept(ModuleVisitor.java:190
)
at 
com.google.gdt.eclipse.designer.util.ModuleVisitor.accept(ModuleVisitor.java:190
)
at 
com.google.gdt.eclipse.designer.util.ModuleVisitor.accept(ModuleVisitor.java:115
)
at com.google.gdt.eclipse.designer.util.Utils.getFileForResource(Utils.java:642)
at 
com.google.gdt.eclipse.designer.util.Utils.getFilesForResources(Utils.java:628)
at com.google.gdt.eclipse.designer.util.Utils.getFileForResource(Utils.java:602)
at com.google.gdt.eclipse.designer.util.Utils.getHTMLFile_web(Utils.java:998)
at com.google.gdt.eclipse.designer.util.Utils.getHTMLFile(Utils.java:945)
at com.google.gdt.eclipse.designer.util.Utils.getDocType(Utils.java:804)
at 
com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize(GwtSta
te.java:166)
at 
com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createGWTState(U
iBinderContext.java:467)
at 
com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createProjectCla
ssLoader(UiBinderContext.java:328)
at 
org.eclipse.wb.internal.core.xml.model.EditorContext.createClassLoader(EditorCon
text.java:146)
at 
com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createClassLoade
r(UiBinderContext.java:285)
at 
org.eclipse.wb.internal.core.xml.model.EditorContext.initialize(EditorContext.ja
va:100)
at 
com.google.gdt.eclipse.designer.uibinder.parser.UiBinderParser.parse(UiBinderPar
ser.java:105)
at 
com.google.gdt.eclipse.designer.uibinder.editor.UiBinderDesignPage.parse(UiBinde
rDesignPage.java:56)
at 
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF(XmlDes
ignPage.java:451)
at 
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.access$2(XmlDesignPage.jav
a:443)
at 
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage$7$1.run(XmlDesignPage.java
:417)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4688)
at 
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage$7.run(XmlDesignPage.java:4
14)
at 
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:46
4)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at 
org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:5
07)
at 
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF_withPr
ogress(XmlDesignPage.java:435)
at 
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF(XmlDes
ignPage.java:388)
at 
org.eclipse.wb.internal.core.xml.editor.UndoManager.refreshDesignerEditor(UndoMa
nager.java:252)
at 
org.eclipse.wb.internal.core.xml.editor.UndoManager.activate(UndoManager.java:85
)
at 
org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.setActive(XmlDesignPage.ja
va:171)
at 
org.eclipse.wb.internal.core.xml.editor.AbstractXmlEditor.pageChange(AbstractXml
Editor.java:652)
at 
org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPart.jav
a:292)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1081)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:778)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3080)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1772)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:279)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at 
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRendering
Engine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at 
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEn
gine.java:997)
at 
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java
:138)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at 
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java
:124)
at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ecli
pseAppLauncher.java:110)
at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLau
ncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

It says that it can't find this module package anywhere. I am able to compile 
via ANT without any issue at all and I am using IvyDE dependency management for 
my external library management.

enter image description here This is a basic overview of my project package 
structure and the error message too. The libraries are all there is just seems 
like GWT Designer isn't able to see them.

Workaround if you have one:
Have not found a work around...

Links to relevant GWT Developer Forum posts:
http://stackoverflow.com/questions/20962961/gwt-designer-cant-find-gwt-module-x-
in-project

Original issue reported on code.google.com by ben.tech...@gmail.com on 7 Jan 2014 at 12:40

Attachments:

GoogleCodeExporter commented 9 years ago
my project structure: https://dl.dropboxusercontent.com/u/49948294/bugz.png

Original comment by ben.tech...@gmail.com on 7 Jan 2014 at 12:40

GoogleCodeExporter commented 9 years ago
Alex, could you help Ben out?

Original comment by rdayal@google.com on 9 Jan 2014 at 3:15

GoogleCodeExporter commented 9 years ago
@ben.techwiz,
Could you please create a simple, self-containing test case reproducing the 
problem?

Original comment by alexande...@gmail.com on 9 Jan 2014 at 3:25

GoogleCodeExporter commented 9 years ago
Try it with this test GWT application I set up.

https://github.com/BenDol/GWTP-Spring-Sample

Original comment by ben.tech...@gmail.com on 10 Jan 2014 at 1:54

GoogleCodeExporter commented 9 years ago
Test app opens just fine for me.

Original comment by alexande...@gmail.com on 10 Jan 2014 at 8:10

Attachments:

GoogleCodeExporter commented 9 years ago
I was assuming the issue was because I was using IvyDE, I will update the 
project to properly reproduce the issue now.

Original comment by ben.tech...@gmail.com on 11 Jan 2014 at 12:37

GoogleCodeExporter commented 9 years ago
What version of eclipse and gwt designer are you using? I cannot get it working 
even in this test project.

Original comment by ben.tech...@gmail.com on 11 Jan 2014 at 12:49

GoogleCodeExporter commented 9 years ago
I am installing GWT Designer for GPE via 
https://dl.google.com/eclipse/plugin/4.3 (I am using Kepler) and it is not 
working.

Original comment by ben.tech...@gmail.com on 11 Jan 2014 at 1:06

GoogleCodeExporter commented 9 years ago
After updating my eclipse plugins it started working! Thanks for your help 
guys, seems to have been an out of date dependency. Now Ia m having trouble 
with the fact that gwt designer loads modules strictly causing all kinds or 
stupid errors like:

[ERROR] Line 68: No source code is available for type org.mockito.Mockito; did 
you forget to inherit a required module?

   [ERROR] Errors in 'file:/C:/Users/Ben/Java/workspace/doltech/src/nz/co/doltech/actions/shared/constants/DistinguishedNames.java'

      [ERROR] Line 34: No source code is available for type java.util.Properties; did you forget to inherit a required module?

      [ERROR] Line 34: No source code is available for type nz.co.doltech.actions.ActionsProperties; did you forget to inherit a required module?

Original comment by ben.tech...@gmail.com on 11 Jan 2014 at 3:17

GoogleCodeExporter commented 9 years ago
Posted the new issues here:

https://code.google.com/p/google-plugin-for-eclipse/issues/detail?id=257

and

https://code.google.com/p/google-plugin-for-eclipse/issues/detail?id=258

Original comment by ben.tech...@gmail.com on 11 Jan 2014 at 5:24

GoogleCodeExporter commented 9 years ago

Original comment by alexande...@gmail.com on 11 Jan 2014 at 10:25

GoogleCodeExporter commented 9 years ago
@alexander.mitin do you have any idea about the issues I posted?

Original comment by ben.tech...@gmail.com on 12 Jan 2014 at 9:52