tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Meany <MMe...@ordsvy.gov.uk>
Subject RE: SendMailServlet.class
Date Wed, 06 Feb 2002 15:29:52 GMT
Ok, on the index page for JavaMail is a link to the Javabeans Activation
Framework, you need that as well:

http://java.sun.com/beans/glasgow/jaf.html. 

mail.jar is available in the JavaMail /lib directory, copy this to your:

activation.jar is available in the Javabeans Activation Framework
(Jaf-1.0.1) directory.

Copy these into the relevant /lib directory and off you go. I use TC3 so am
not sure if the common lib is $CATALINA_HOME/lib or
$CATALINA_HOME/common/lib! Of course you could just put them in the
$CATALINA_HOME/webapps/app/WEB-INF/lib directory, but you would have to
repeat for every app that was mail enabled.

M.

-----Original Message-----
From: chad kellerman [mailto:ckellerman@alabanza.com]
Sent: 6 February 2002 15: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>




***************************************************************
     This email/attachment(s) has been virus checked upon   
	receipt at the OS and is free of all known viruses.

***************************************************************





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


Mime
View raw message