Thanks for your help- -- I have the source class included in my jar file- is that not enough? My jar has the myClass.java and myClass.gwt.xml in it?
> Any > code outside of that, or which it doesn't have any source code for, > will cause this error. On Nov 12, 11:29 pm, Dobes <[EMAIL PROTECTED]> wrote: > This is a common problem for new GWT users - it's important to realize > that GWT code can only use classes which are part of GWT modules. You'll > just have to work around it like the > rest of us - it can result in some awkward reversals, like creating a > shared interface which is only implemented on the server, and a static > field with a pointer to that interface, and then storing your > implementation into that static variable on the server side. The > implementation then wraps up any non-GWT supported funcationality. > > On Nov 12, 11:30 am, Bliss <[EMAIL PROTECTED]> wrote: > > > > > I have created a single page using a GWT component and a class that > > acts as a 'bridge' between my business code and the front end > > component. > > > I isolated all the GWT code into a separate package structure for > > ease- and included it in my application with no troubles,when it > > doesnt reference any other packages. > > However, in real life- I need my 'bridge' code to import classes from > > other packages in my J2ee application, and am having issues. > > > I have > > com.mygwtpackage.myGWTProject inherit com.mypackage.myClass > > ----------------------------------------- > > <module> > > > <!-- Inherit the core Web Toolkit stuff. > > --> > > <inherits name='com.google.gwt.user.User'/> > > > <!-- Other module inherits > > --> > > <inherits name='com.gwtext.GwtExt' /> > > <inherits name='com.mypackage.myClass' /> > > > <!-- Specify the app entry point class. > > --> > > <entry-point class='com.myGwtpackage.client.myGwtProject'/> > > > <!-- Specify the application specific style sheet. > > --> > > <stylesheet src="js/ext/resources/css/ext-all.css" /> > > <script src="js/ext/adapter/ext/ext-base.js" /> > > <script src="js/ext/ext-all.js" /> > > > </module> > > > ----------------------------------------- > > I have included > > > com.mypackage.myClass.class > > com.mypackage.myClass.java and > > > myClass.gwt.xml > > ---------------------------------------------------------------- > > <?xml version="1.0" encoding="UTF-8"?> > > <module> > > > <!-- Inherit --> > > <inherits name='com.google.gwt.user.User'/> > > > <source path="."/> > > </module> > > --------------------------------------------------------- > > in a jar file included in > > com.mypackage.myGWTProject/lib > > > I have added this jar reference to the .compile and .shell files. > > > I am having trouble compiling since I get : > > > Loading module 'com.myGwtpackage.myGwtClass' > > Loading inherited module 'com.mypackage.myClass' > > > [WARN] Non-canonical source package: ./ > > Removing units with errors > > [ERROR] Errors in 'file:/C:/path/path/src/com/myGwtPackage/client/ > > MyTree.java' > > [ERROR] Line 92: No source code is available for type > > com.mypackage.myClass; did you forget to inherit a required module? > > Removing invalidated units > > [WARN] Compilation unit 'file:/C:/path/src/com/myGwtpackage/client/ > > myGwtClass.java' is remo > > ved due to invalid reference(s): > > [WARN] file:/C:/path/src/com/myGwtpackage/client/MyTree.java > > Compiling module com.myGwtpackage.myGwtClass > > Computing all possible rebind results for > > 'com.myGwtpackage.client.myGwtClass' > > > Rebinding com.myGwtpackage.client.myGwtClass > > Checking rule <generate-with > > class='com.google.gwt.user.rebind.ui.ImageBun > > dleGenerator'/> > > [ERROR] Unable to find type > > 'com.myGwtpackage.client.myGwtClass > > [ERROR] Hint: Previous compiler errors may have made this > > type unava > > ilable > > [ERROR] Hint: Check the inheritance chain from your > > module; it may n > > ot be inheriting a required module or a module may not be adding its > > source path > > entries properly > > [ERROR] Build failed- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---