All client side code, including any imported classes, must either reside in the "client" directory below the Project.gwt.xml file, or in other paths indicated in that file using the directive <source path="..."/>. Importantly, all client code must adhere to the restrictions of the GWT compiler, such as only using JRE classes it emulates, indicated here: http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html. So, first ensure that you actually intend these classes to be on the client side, and if so include them in your xml module definition using the "source" directive.
This is documented here: http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml On May 26, 3:53 pm, Karl San Gabriel <[email protected]> wrote: > Hi Team, > > I am new to GWT and we are trying to port one of our smallest web > application to GWT. > > We have the file Project.gwt.xml which was created via the > webAppCreator with the following entry-point: > > <entry-point class='com.project.web.client.Project'/> > > Some of the other classes are located in com.project.hr.bean package. > > The following is the error I get during build process: > > D:\Profiles\user1\workspace\project>ant > D:\Program Files\Java\jdk1.6.0_20 > Buildfile: build.xml > libs: > javac: > gwtc: > [java] Compiling module com.onlineoffice.web.OnlineOffice > [java] Validating newly compiled units > [java] [ERROR] Errors in 'file:/D:/Profiles/user1/workspace/ > project/src/com/project/web/client/DepartmentService.java' > [java] [ERROR] Line 8: No source code is available for > type com.project.hr.bean.DepartmentBean; did you forget to inherit a > required module? > [java] Finding entry point classes > > In this case, does gwtc look for class files only in > com.onlineoffice.web path? > How can I reference the com.project.hr.bean.DepartmentBean so that I > can use it in DepartmentService.java? > > Thank You, > Karl -- 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.
