You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Giorgio Brajnik <gi...@dimi.uniud.it> on 2000/11/27 22:15:53 UTC

importing javax.mail.* from within JSP servlets

Hi.

I'm trying to write a jsp that imports javax.mail.* but jasper complains 
with 
"Package javax.mail not found in import.
import javax.mail.*;"

I tried to put the i2ee.jar file almost everywhere, including

..../tomcat/lib
....<my_application_context>/lib
/usr/java/jdk1.3.0_01/lib/
in the classpath environment var used by tomcat.sh

What should I do?

Thanks a lot.

Giorgio Brajnik

---------
I'm using Apache+tomcat on linux, but not the j2ee.

Re: importing javax.mail.* from within JSP servlets

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Giorgio Brajnik wrote:

> Hi.
>
> I'm trying to write a jsp that imports javax.mail.* but jasper complains
> with
> "Package javax.mail not found in import.
> import javax.mail.*;"
>
> I tried to put the i2ee.jar file almost everywhere, including
>

What is the "i2ee.jar" file, and what does it contain?  (You can find out, if
you're curious, by typing the following command):

    jar tvf i2ee.jar

You need the "mail.jar" file from the JavaMail release, and the "activation.jar"
from the Java Activation Framework release, on your classpath.  You can get
these releases from <http://java.sun.com/products/javamail>.

Craig McClanahan