GWT and java mail api

340 views
Skip to first unread message

loucat

unread,
Jan 30, 2010, 11:14:56 AM1/30/10
to Google Web Toolkit
Hi everybody!

I'm trying to send a mail through an RPC call.
The server method uses Java mail api.
I used tha same method in different project and I'm able to send the
email both using Junit or Tomcat... but when I use it in my GWT
project, even if the RPC call gives the result "onSuccess", I have
this exception:

----------------------------------
Loading META-INF/javamail.providers from jar:file:/C:/documenti/
workspaces/javalou/provatesina/war/WEB-INF/lib/appengine-api-1.0-
sdk-1.2.6.jar!/META-INF/javamail.providers
DEBUG: loading new provider protocol=gm,
className=com.google.appengine.api.mail.stdimpl.GMTransport,
vendor=null, version=null
javax.mail.NoSuchProviderException: Unable to locate provider for
protocol: smtp
---------------------------------------------------------------------------------------------

I'm using GWT 1.7.1 without the AppEngine...

do I have to include something or fix something?
Thanks...

Jeff Schnitzer

unread,
Jan 30, 2010, 2:16:09 PM1/30/10
to google-we...@googlegroups.com
You should try the AppEngine mailing list. Your problem is unrelated to GWT.

Jeff

> --
> 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-we...@googlegroups.com.
> To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

Cristian Nicanor Babula

unread,
Jan 30, 2010, 3:48:08 PM1/30/10
to google-we...@googlegroups.com
You want your application to run on appengine? If not, please make sure
to disable appengine integration for your project.

loucat

unread,
Jan 31, 2010, 4:57:32 AM1/31/10
to Google Web Toolkit
Maybe I wasn't clear... I'm NOT using AppEngine, it's disabled and I
don't want to use it...
So I don't know if this is the right place to ask help but my mail
method works outside GWT and doesn't work inside a GWT project...
I don't know maybe the thing I'm trying to do can't be done in GWT
hosted mode...


On 30 Gen, 21:48, Cristian Nicanor Babula <nicanor.bab...@gmail.com>
wrote:

jocke eriksson

unread,
Jan 31, 2010, 6:34:22 AM1/31/10
to google-we...@googlegroups.com
Remove appengine-api-1.0-sdk-1.2.6.jar from class path if you do not use it.

2010/1/31 loucat <lou...@gmail.com>

loucat

unread,
Feb 2, 2010, 4:04:37 AM2/2/10
to Google Web Toolkit
I removed it from the classpath but I couldn't use java mail api (it
didn't find the library), now I'm ever more confused :(
I've tried to use again the Google App Engine but now it says it's
impossible

> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>


> > .
> > > >> For more options, visit this group athttp://
> > groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > 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-we...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>

Martin D'Aloia

unread,
Feb 2, 2010, 8:42:13 AM2/2/10
to google-we...@googlegroups.com
I think this is not GWT related topic (wrong group), but to try to help you if doesn't find the library is because you don't have them in classpath... check these items:

- Remove all Google AppEngine related jars

- If you use Java SE 6 then you only have to download http://java.sun.com/products/javamail/downloads/index.html and include the necessary jars (see the README)  (if you use Maven: http://download.java.net/maven/2/javax/mail/mail/ )




To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.

loucat

unread,
Feb 5, 2010, 9:11:53 AM2/5/10
to Google Web Toolkit
thank you, I'll try...

On 2 Feb, 14:42, "Martin D'Aloia" <martindal...@gmail.com> wrote:
> I think this is not GWT related topic (wrong group), but to try to help you
> if doesn't find the library is because you don't have them in classpath...
> check these items:
>
> - Remove all Google AppEngine related jars
>

> - If you use Java SE 6 then you only have to downloadhttp://java.sun.com/products/javamail/downloads/index.htmland include the


> necessary jars (see the README)  (if you use Maven:http://download.java.net/maven/2/javax/mail/mail/)
>

> - If you don't use Java SE 6 you also needhttp://java.sun.com/javase/technologies/desktop/javabeans/jaf/downloa...

> > <google-web-toolkit%2Bunsu...@googlegroups.com<google-web-toolkit%252Buns...@googlegroups.com>


>
> > > > .
> > > > > >> For more options, visit this group athttp://
> > > > groups.google.com/group/google-web-toolkit?hl=en.
>
> > > > --
> > > > 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-we...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>

> > <google-web-toolkit%2Bunsu...@googlegroups.com<google-web-toolkit%252Buns...@googlegroups.com>

Kris Reid

unread,
May 3, 2012, 12:52:04 PM5/3/12
to Google-We...@googlegroups.com
Did you ever get this fixed I have a similar problem.

I have an OSGi application that is sending mail fine from the command line.
How ever the bundle that loads a GWT interface throws an exception sending mail



Reply all
Reply to author
Forward
0 new messages