“No source code is available for type”

75 views
Skip to first unread message

zakaria amine

unread,
Jul 18, 2016, 2:48:01 PM7/18/16
to GWT Users
Hi GWT users, 

I am need your help with an issue that have been bugging me for days now. I created a gwt library(https://github.com/gwidgets/gwty-leaflet) which works and compiles fine. When I create an entry point from inside the project, everything is o.k. However, when I package the project, install it, and try to import it into another GWT project, the compiler complains. I tried eveything from changing packages names, depth, tried another GWT version, etc,... This does not seem to fix it. Any help would be much appreciated.  


   Tracing compile failure path for type 'com.test.client.test'
[INFO]          [ERROR] Errors in 'file:/C:/Users/zakaria/Desktop/myWork/GWidgets/workspace/testing/src/main/java/com/test/client/test.java'
[INFO]             [ERROR] Line 23: No source code is available for type com.gwidgets.leaflet.options.MapOptions; did you forget to inherit a required module?
[INFO]             [ERROR] Line 23: No source code is available for type com.gwidgets.leaflet.options.ZoomPanOptions; did you forget to inherit a required module?
[INFO]             [ERROR] Line 23: No source code is available for type com.gwidgets.leaflet.L; did you forget to inherit a required module?
[INFO]       [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

あああいいい

unread,
Jul 18, 2016, 2:57:24 PM7/18/16
to google-we...@googlegroups.com
You need to add your project .xml inherit lib name .



2016年7月19日火曜日、zakaria amine<zakaria...@gmail.com>さんは書きました:
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

natan clara

unread,
Jul 18, 2016, 2:59:33 PM7/18/16
to google-we...@googlegroups.com

Hi,

        You need to add the package in .gwt.xml file.

        Sample.

        <inherits name='com.google.gwt.ajaxloader.AjaxLoader' />


natan.

Thomas Broyer

unread,
Jul 18, 2016, 3:03:01 PM7/18/16
to GWT Users
Why are you excluding *.java files from your JAR?

natan clara

unread,
Jul 18, 2016, 3:36:34 PM7/18/16
to google-we...@googlegroups.com
Don't exclude *.java. It's need compile in gwt.

あああいいい

unread,
Jul 18, 2016, 3:39:49 PM7/18/16
to google-we...@googlegroups.com
Hi

GWT is tool of  java to javascript .

your project need real java files of lib to compile.



zakaria amine

unread,
Jul 18, 2016, 10:45:58 PM7/18/16
to GWT Users
That's it! Thanks a lot guys. Including the .java was the answer. 

I thought excluding the .java to make the jar lighter, but I totally missed that GWT needs sources. 

Cheers, 
Reply all
Reply to author
Forward
0 new messages