tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Wadkin <j.wad...@hud.ac.uk>
Subject RE: SendMailServlet.class
Date Wed, 06 Feb 2002 16:11:07 GMT
A quick rummage on the net turned this up...

http://java.sun.com/products/javamail/FAQ.html#securityManager

Just type the exception "javax.mail.NoSuchProviderException" into Google and
it turns up loads of stuff!

John
 
Quote for the week:
 
Experience is not what happens to a man; it is what a man does with what
happens to him.
 
Aldous Huxley, Texts and Pretexts , (1932) p. 5


-----Original Message-----
From: Nancy Crisostomo Martinez [mailto:nancycm@correo.uqroo.mx]
Sent: 06 February 2002 16:02
To: Tomcat Users List
Subject: Re: SendMailServlet.class


Chad,
Although I have added the activation, mail and pop3 JAR files to the
CLASSPATH, TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib,
$TOMCAT_HOME/webapps/app/WEB-INF/lib I
could run my application, but when I press a button to send the mail,  I got
an error message on the console and the mail is not sended... I think the
wrong thing
is the Tomcat configuration, isn't it? and not the libraries you need.

The error is the follow:
                javax.mail.NoSuchProviderException: No provider for Address
type: rfc822

Has anyone seen this?
Could anyone else fixed this?

Nancy.




chad kellerman wrote:

> Boy, ever had on of those days.
>
>   I was using the wrong javac.  Not the one with the JDK.
>
> I used the correct one and now I am getting
>
> SendMailServlet.java:7: cannot resolve symbol
> symbol  : class Message
> location: package mail
> import javax.mail.Message;
>
> For just about every import.
>
>   I think I am going to call it a day. Atleast, with this part, and work
on the SSL bit.  There seems to be a lot of info coming thru the past week
about SSL.
>
> Thanks for all the help.
>
> Chad
>
> On Wed, 6 Feb 2002 16:17:58 +0100
> "Michel" <mabeijlevelt@freeler.nl> wrote:
>
> > I believe you also need the activation.jar from Sun? Did you get that?
> >
> > gr. Michel
> >
> > > -----Original Message-----
> > > From: chad kellerman [mailto:ckellerman@alabanza.com]
> > > Sent: Wednesday, February 06, 2002 16:09
> > > To: Tomcat Users List
> > > Subject: Re: SendMailServlet.class
> > >
> > >
> > > Sorry to have to write again but I am lost.  I set the
> > > CLASS_PATH.  That did not work, I downloaded the javamail, and
> > > moved allthe jar file to
> > > /usr/local/jakarta-tomcat-4.0/dist/common/lib/  which should have
> > > done it.  But not.
> > >
> > > Still same error.  I open up SendMailServlet.java and looked:
> > >
> > >
> > > import java.io.IOException;
> > > import java.io.PrintWriter;
> > > import javax.mail.Message;
> > > import javax.mail.Session;
> > > import javax.mail.Transport;
> > > import javax.mail.internet.InternetAddress;
> > > import javax.mail.internet.MimeMessage;
> > > import javax.naming.Context;
> > > import javax.naming.InitialContext;
> > > import javax.servlet.RequestDispatcher;
> > > import javax.servlet.ServletException;
> > > import javax.servlet.http.HttpServlet;
> > > import javax.servlet.http.HttpServletRequest;
> > > import javax.servlet.http.HttpServletResponse;
> > >
> > > I have everything but the javax.mail.*****.  Is there another
> > > package that I might be missing.
> > >
> > > That again for all the help...
> > >
> > > Chad
> > >
> > >
> > >
> > > On Wed, 6 Feb 2002 13:44:27 -0000
> > > Mark Meany <MMeany@ordsvy.gov.uk> wrote:
> > >
> > > > >> SendMailServlet.java:1: error:Cannot find type
"javax/mail/Message"
> > > >
> > > > Try downloading the Sun JavaMail API and putting the jars
> > > somewhere visible
> > > > to your application. All should be Ok after this.
> > > >
> > > > http://java.sun.com/products/javamail/index.html
> > > >
> > > > M.
> > > >
> > > >
> > > >
> > > >
> > > > ***************************************************************
> > > > For more information on Ordnance Survey products and services,
> > > > visit our web site at http://www.ordnancesurvey.co.uk
> > > > ***************************************************************
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > > For additional commands:
<mailto:tomcat-user-help@jakarta.apache.org>
> > > > Troubles with the list:
<mailto:tomcat-user-owner@jakarta.apache.org>
> > > >
> > >
> > > --
> > > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> > >
> > >
> >
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message