Wednesday, July 23, 2014

Re: [ERROR] Unable to find *.gwt.xml on your classpath

What build tool do you use? (looks like Ant) and how's it configured?
You probably forgot to add the Server/Common/src folder to the classpath for the GWT Compiler, or if you package Server/Common as a JAR then you forgot to either include the *.ui.xml and *.java in the JAR, or create a "sources JAR" with the *.ui.xml and *.java (to be used alongside of instead of the "normal JAR" in the classpath for the GWT Compiler).

On Tuesday, July 22, 2014 10:59:40 PM UTC+2, Marco wrote:
Hello all, 

I need some help with GWT. We have a Java project and we use GWT to build the UI, the structure of my project is something similar to this:
ProjectA
|
|-->Server/Common/src
                   |->com.abc.core
                                  |->util.gwt.xml
                   |->com.abc.core.util (Package)
                                  |-> test.java
........
|
|-->Common/src
            |->com.abc.gwt
                         |->ws.gwt.xml    
            |->com.abc.gwt.client
                         |-> HP.java

I want to use a method that is in test.java from HP.java, for that I have created util.gwt.xml

<?xml version="1.0" encoding="UTF-8"?>
<module>
  <inherits name='com.google.gwt.user.User'/>
  <source path="util"></source>
</module>

and modified the ws.gwt.xml

......
<inherits name="com.abc.core.util"/>
........
<entry-point class='com.abc.gwt.client.HP'/>

When I try to compile the code I am getting this error:

compile.gwt:
    [mkdir] Created dir: c:\Test_trunk_217\build\server\gwt
     [java] Loading inherited module 'com.abc.gwt.wsdev'
     [java]    Loading inherited module 'com.abc.core.util'
     [java]       [ERROR] Unable to find 'com/abc/core/util.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
     [java]    [ERROR] Line 14: Unexpected exception while processing element 'inherits'

Please give me a hand.

Thanks.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment