1

I have an error compiling my app:

[INFO] Compiling module com.messagedna.web.Main
[INFO]    Finding entry point classes
[INFO]       [ERROR] Unable to find type 'com.messagedna.web.client.controller.Main'
[INFO]          [ERROR] Hint: Previous compiler errors may have made this type unavailable
[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

I've tryed to find the solution in google but didn't figured out any. here is my gwt.xml file:

    <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.6//EN"
        "http://google-web-toolkit.googlecode.com/svn/releases/1.6/distro-source/core/src/gwt-module.dtd">
<module>

    <inherits name='com.extjs.gxt.ui.GXT'/>

    <inherits name="com.extjs.gxt.charts.Chart"/>

    <entry-point class='com.messagedna.web.client.controller.Main'/>

    <source path="com.messagedna"></source>


</module>
1
  • of course I have this class. Well, all necessary classes are in com.messagedna.web.client package. I use Idea Commented Apr 3, 2013 at 11:08

3 Answers 3

3

The source-path in your module XML file does not look right. The path should point to a package (directory name) relatively to the GWT module root. Since your GWT module root is com.messagedna.web and the default source path is client, you can just drop the source tag from your configuration.

Sign up to request clarification or add additional context in comments.

7 Comments

This source tag is nesessary to point on one class which is out of the client package
but I already have noticed that it is not the good idea and moved that class to client package and now have another problem:Validating newly compiled units [INFO] [ERROR] Errors in 'file:/home/mikhail/bzrrep/DLP/DLPServer/src/main/java/com/messagedna/web/client/util/Config.java' [INFO] [ERROR] Line 8: The import java.util.concurrent cannot be resolved [INFO] [ERROR] Line 9: The import java.util.concurrent cannot be resolved and the same about couldn't find main class. When I remove all imports of Config class everything compiles but not works
Are you striking this issue ?? Answer of mine : stackoverflow.com/questions/15528500/java-timer-in-gwt/…
Yes you cannot use the class java.util.concurrent in GWT.
You can not use java.util.concurrent in GWT. Try to use the Timer and DeferredCommand mechanism. See Programming Delayed Logic.
|
0

You have the entry point class, but that it isn't compiled, because you have a compiler or a "linker" error, and that is why is nagging the last case as it is not entry point.

[INFO] [ERROR] Hint: Previous compiler errors may have made this type unavailable [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

So check the other compiler errors or class-path included jars

Comments

-1

Add this line in module tag <inherits name="com.google.gwt.user.User" />

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.