Specify the path for each package that should be visible to the GWT compiler in a <source> tag, like
<!-- Specify the paths for translatable code --> <source path='client'/> <source path='shared'/> The path is relative to the dir which contains the .gwt.xml file. HTH, -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.com/ On Oct 19, 3:37 pm, mo <[email protected]> wrote: > I just need to use a class "Provider" in client package. The class > "Provider" is in different package. > Can you please let me know what do I need to include in gwt.xml file? > > I get following error. > [INFO] [ERROR] Errors in 'file:/C:/MYCOMPUTER/WORKSPACES/SC/SC/ > web/gwtAdmi > n/src/main/java/com/fxall/scadmin/client/manager/ > SearchProviderManager.java' > [INFO] [ERROR] Line 10: No source code is available for type > com.fxall. > common.entity.Provider; did you forget to inherit a required > module? > (Line 10 is public List<Provider> providerSearch(String provider) > throws Exception; ) > > My code: > > package com.fxall.scadmin.client.manager; > > import java.util.List; > import com.fxall.common.entity.Provider; > import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; > > @RemoteServiceRelativePath("searchProviderManager") > public interface SearchProviderManager { > > public List<Provider> providerSearch(String provider) throws > Exception; > > > > } -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
