Ok, thank you for your guidelines. The error was created because I
didn' t understand the directory structure of client-server in GWT.
Now i am having another problem, it seems to be an RPC encoding
problem when i am creating the message class.
" threw an unexpected exception: java.lang.NoClassDefFoundError: javax/
activation/DataSource
        at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure"
I will try to figure out this, next, so any proposals, are well
accepted.
Thank you in advance.

On 17 Δεκ, 08:26, Shawn Pearce <[email protected]> wrote:
> Move your server code outside of the ".client" package.  Use a parallel
> name, like ".server" for the server-side code.  Then the GWT compiler won't
> try to parse and compile the code that is meant only to run on the servlet
> container, and it won't complain about library JARs having only *.class
> files and no source files.
>
> On Tue, Dec 16, 2008 at 02:04, giannisdag <[email protected]> wrote:
>
> > Hi all,
> > I am trying to create a simple web application using GWT. I have used
> > some techniques in client side code, but now i am stacked on the
> > server side using RPC.
> > I need to create a simple email form, where the user would put his
> > mail, a subject, e.t.c. and when he would press the button, an email
> > would be sent to the email of the application.
> >  For that purpose, i have download the javax.mail jar. It contains
> > the .class files. I am using eclipse, so i have added this as an
> > external .jar to my project.
> > I created all the needed interfaces and implementation class,
> > according to the described procedure, in GWT docs. I have also
> > declared the servlet in the gwt.xml, and i have made the call.
> > The problem is that i am getting the following errors when i run it in
> > hosted mode:
> > "[ERROR] Line 54: No source code is available for type
> > com.xel.gwt.emailService.client.emailServiceAsync; did you forget to
> > inherit a required module?
> > [ERROR] Line 54: No source code is available for type
> > com.xel.gwt.emailService.client.emailService; did you forget to
> > inherit a required module?"
> > It seems like the GWT is trying to compile the server code, and it
> > needs the source files. This should not happen in the first place. But
> > generally, do i need the source files of the javax.mail jar?
> > Are there other conflicts that i haven' t thought of regarding the
> > previous errors?
> > Thank you in advance
>
>

--~--~---------~--~----~------------~-------~--~----~
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