Common error.  Two things you should know:

All code under the com.yournamespace.client.* packages is what will be
compiled from Java to JavaScript.  If you have code underneath there
that has an import statement outside of client.*, you will fail
compilation.

Under the client.* package, you cannot just import any java class.
The only valid imports are imports where you inherit from another GWT
module -- or you are using the allowed subset of the J2SE (not all
java.* is available).

So, it looks like your GWT code imports:

com.atx.signalsmart.beans.EmailNotifierBean
com.atx.signalsmart.mail.AbstractEmailNotifier

Thus failing the first problem noted above.  Bear in mind if that code
tries to import spring classes, you'll also fail.  Use spring on the
server side -- it won't help you much in GWT client code.


On Aug 19, 7:21 pm, sudheer <[email protected]> wrote:
> Hello
>
> Iam a newbie to GWT and iam still in the learning stage.When iam
> trying to  build my GWT Project,iam getting the following error.I
> integrated the spring mail functionality,so iam using the SimplEmail
> Notifier.I have a class valled login.java where i included the code
> for simpleEmail Notifier.The code goes like below
>
>  public void onClick(ClickEvent event) {
>                  if(username!=null && username.getText()!=null &&
> username.getText().equals("admin")
>                          && password!=null && password.getText()!=null
> && password.getText().equals("admin")){
>
>                      RootPanel.get("header").clear();
>                      RootPanel.get("mainPane").clear();
>                      RootPanel.get("loginTitleHeader").clear();
>                      consturctHomePage(username.getText
> (),password.getText());
>                      EmailNotifierBean emailNotifierBean = new
> EmailNotifierBean();
>                      AbstractEmailNotifier simpleEmailNotifier =
> emailNotifierBean.getSimpleEmailNotifier();
>                      simpleEmailNotifier.sendEmail("Please find the
> monitor Activities Below");
>                  }
>
>              }
> This class is in another package.When iam trying to build my code iam
> getting the below error.Could somebody please advise
>
> Buildfile: C:\projects\tm\signalSMART\build.xml
> libs:
> javac:
> gwtc:
>      [java] Compiling module com.atx.signalsmart.login
>      [java]    Refreshing module from source
>      [java]       Validating newly compiled units
>      [java]          Removing units with errors
>      [java]             [ERROR] Errors in 'file:/C:/projects/tm/
> signalSMART/src/com/atx/signalsmart/client/login.java'
>      [java]                [ERROR] Line 85: No source code is
> available for type com.atx.signalsmart.beans.EmailNotifierBean; did
> you forget to inherit a required module?
>      [java]                [ERROR] Line 86: No source code is
> available for type com.atx.signalsmart.mail.AbstractEmailNotifier; did
> you forget to inherit a required module?
>      [java]    Computing all possible rebind results for
> 'com.atx.signalsmart.client.login'
>      [java]       Rebinding com.atx.signalsmart.client.login
>      [java]          Checking rule <generate-with
> class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>
>      [java]             [ERROR] Unable to find type
> 'com.atx.signalsmart.client.login'
>      [java]                [ERROR] Hint: Previous compiler errors may
> have made this type unavailable
>      [java]                [ERROR] 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
>
> BUILD FAILED
> C:\projects\tm\signalSMART\build.xml:34: Java returned: 1
>
> Thanks
> Sudheer
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to