gwt broken in 98.311: sources of dependant module not found

it worked in IDEA 8 and IDEA 9 and in IDEA X up to 96.1121
integrated gwt console was already in 96.1121, so i think that's not problem because of adding it

i have two modules
admin-common
admin-web - depends on admin-common

in admin-web i have AdminWeb.gwt.xml with:

  <module rename-to='admin'>

and with:

  <inherits name="admin.common.Common"/>

when i ctrl+click on thi line i get into Common.gwt.xml which is in admin-cmoon module
in Common.gwt.xml i have:

 <entry-point class='admin.common.client.Common'/>

so IDEA understands that two modules are bound
in .system/gwt/idea_9_x.c7aef257/admin-web.98657873/run/www/WEB-INF/classes/ i see compiled .class files of both modules mixed together

but when I run gwt application i get:

Loading module: admin
  Top URL: http://localhost:8888/admin/Start.html?gwt.codesvr=127.0.0.1:9997
  User agent: FF
  Remote host: localhost:3111
  Tab key: 041FBA00
  Session key: 3ue3kWVz$wFC?G"A
DEBUG: Validating newly compiled units.
  ERROR: Errors in 'file:/C:/prj/Gui/admin-web/src/admin/web/client/ui/panel/Foo.java'.
    ERROR: Line 101: No source code is available for type admin.common.client.model.Bar; did you forget to inherit a required module?.
....


and a lot of such errors
and finally

TRACE: Finding entry point classes.
  ERROR: Unable to find type 'admin.common.client.Common'.
    ERROR: Hint: Check that the type name 'admin.common.client.Common' is really what you meant.
    ERROR: Hint: Check that your classpath includes all required source roots.
  ERROR: Unable to find type 'admin.web.client.AdminApplication'.
    ERROR: Hint: Previous compiler errors may have made this type unavailable.
    ERROR: Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly.
ERROR: Failed to load module 'admin' from user agent 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10' at localhost:3111.

3 comments

omg
i figured out the problem
IDEA doesn't pass src folder of dependant module into classpath:

"C:\program files\Java\jdk1.6.0_20\bin\java" -Xms256m -Xmx512m -classpath "C:\prj\gwt-2.0.0\gwt-dev.jar;C:\prj\Gui\admin-web\src;C:\program files\Java\jdk1.6.0_20\jre\lib\alt-rt.jar;..."


in run configuration I can add VM parameters:

-classpath "C:\prj\Gui\admin-common\src"


but then IDEA doesn't add its classpath at all :(

so for now i copy-pasted full classpath (huge line) into VM parameters:

-classpath "C:\prj\Gui\admin-common\src;C:\prj\gwt-2.0.0\gwt-dev.jar;C:\prj\Gui\admin-web\src;C:\program files\Java\jdk1.6.0_20\jre\lib\alt-rt.jar;..."

started
and it works!

0

Do you have GWT facet in admin-common module? IDEA doesn't include to the classpath source folders of modules without GWT facets.

omg
i figured out the problem
IDEA doesn't pass src folder of dependant module into classpath:

>

 ]]>

>

in run configuration I can add VM parameters:


>

but then IDEA doesn't add its classpath at all :(

>

so for now i copy-pasted full classpath (huge line) into VM parameters:

 ]]>

started
and it works!

>

---
Original message URL: http://devnet.jetbrains.net/message/5277245#5277245



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Do you have GWT facet in admin-common module? IDEA doesn't include to the classpath source folders of modules without GWT facets.


wow!
i've added gwt facet to admin-common module and now it works :)

thanks

0

Please sign in to leave a comment.