Note that there are some explanatory texts on larger screens.

plurals
  1. POGWT Module inheritance and NO source code available on application running time
    primarykey
    data
    text
    <p>I am starting to use GWT for a class project and wanted to know real use cases for RPC. So, I found this example on this same website: <a href="https://stackoverflow.com/questions/2237142/gwt-simple-rpc-use-case-problem-code-included">Stack Overflow - Simple RPC Use Case Problem (Code Included)</a></p> <p>Why I did this example? because I was getting the same errors that the user posted on my own project and I decided to try and follow his code on my computer to see if I could really face my own mistakes.</p> <p>So the point is that after copying the files on an Eclipse GWT project and deploy the app, I got this two errors <strong>on running time:</strong></p> <p>[1st Error]</p> <pre><code>12:14:07.874 [ERROR] [test] Line 17: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module? </code></pre> <p>[2n Error]</p> <pre><code>12:42:54.547 [ERROR] [test] Unable to find type 'org.redboffin.worldhug.client.test.Test' 12:14:09.341 [ERROR] [test] 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 </code></pre> <hr> <p>So I tried to correct <strong>Test.gwt.xml</strong> as Craig suggested on the post. Unfortunately, that solution is not working to me because still I am getting the same errors. Here you can see an image link (on Imageshack) to my Eclipse screen:</p> <p><a href="http://yfrog.com/n7errorgwtj" rel="nofollow noreferrer">http://yfrog.com/n7errorgwtj</a></p> <p>[1st Error] I don't know what is happening because, for example, in the file it is depicted, RemoteServiceServlet is imported some rows before (despite it is not seen). This file is on package "org.redboffin.worldhug.server.test;"</p> <p>[2n Error] If user who posted initial thread did not need to "inherit" a new package in his project, I can't understand why do I need them. Anyway, I put a new inherit line one the .gwt.xml file:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.0.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.0.0/distro-source/core/src/gwt-module.dtd"&gt; &lt;module rename-to='test'&gt; &lt;inherits name="com.google.gwt.user.User" /&gt; &lt;entry-point class="org.redboffin.worldhug.client.test.Test"&gt;&lt;/entry-point&gt; &lt;source path="client" /&gt; &lt;source path="shared" /&gt; &lt;inherits name="org.redboffin.worldhug.client.test.Test" /&gt; &lt;/module&gt; </code></pre> <p>And that is what I got:</p> <pre><code> Loading inherited module 'org.redboffin.worldhug.client.test.Test' [ERROR] Unable to find 'org/redboffin/worldhug/client/test/Test.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? </code></pre> <p>(of course, it didn't compile)</p> <p>So, I really don't know what is going on. Please, can someone bring some light to this issue? Why is this not working? What I am doing bad? What is this type that it is needed on [2nd error]?</p> <p>Many thanks to all for reading so far,</p> <p>Regards.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload