title: Problems passing class objects through GWT RPC
body: <p>I've run through the Google Web Toolkit <a href="http://code.google.com/webtoolkit/tutorials/1.6/gettingstarted.html" rel="nofollow noreferrer">StockWatcher Tutorial</a> using <a href="http://www.eclipse.org/downloads/" rel="nofollow noreferrer">Eclipse</a> and the <a href="http://code.google.com/eclipse/docs/getting_started.html" rel="nofollow noreferrer">Google Plugin</a>, and I'm attempting to make some basic changes to it so I can better understand the RPC framework.</p>
  
  <p>I've modified the "getStocks" method on the StockServiceImpl server-side class so that it returns an array of Stock objects instead of String objects.  The application compiles perfectly, but the Google Web Toolkit is returning the following error:</p>
  
  <p>"No source code is available for type com.google.gwt.sample.stockwatcher.server.Stock; did you forget to inherit a required module?"</p>
  
  <p><a href="https://i.stack.imgur.com/ovOcV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ovOcV.jpg" alt="Google Web Toolkit Hosted Mode"></a>
  </p>
  
  <p>It seems that the client-side classes can't find an implementation of the Stock object, even though the class has been imported.  For reference, here is a screenshot of my package hierarchy:</p>
  
  <p><a href="https://i.stack.imgur.com/itjpK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/itjpK.jpg" alt="Eclipse Package Hierarchy"></a>
  </p>
  
  <p>I suspect that I'm missing something in web.xml, but I have no idea what it is.  Can anyone point me in the right direction?</p>
  
  <p><strong>EDIT:</strong> Forgot to mention that the Stock class is persistable, so it needs to stay on the server-side.</p>