wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat, CLASSPATH, and JavaMail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat, CLASSPATH, and JavaMail" Watch "Tomcat, CLASSPATH, and JavaMail" New topic
Author

Tomcat, CLASSPATH, and JavaMail

Dave Soto
Ranch Hand

Joined: Sep 15, 2001
Posts: 55
I'm running Tomcat 3.3 and I'm trying to connect to an SMTP server with JavaMail. The machine that is running Tomcat 3.3 has J2SE1.3 and J2EE1.3. So, JavaMail is included with the J2EE. Now, according to my documentation, in order to give Tomcat visibility to any jars that aren't part of JAVA_HOME, you need to copy them to %TOMCAT_HOME%/lib/common,
./lib/apps, ./lib/containter, or webapps/--WEBAPP--/WEB-INF/lib. I wanted to make the JavaMail stuff visible to all my webapps, so it seemed I should copy the j2ee.jar file into ./lib/apps.
Well, once I did that, I no longer got any import errors. However, I keep getting the following error in the page where I am attempting to send the email, and it's obnoxious. Just to clarify, I am NOT calling flushBuffer().

If anyone can help out, I'd be extremely appreceiative.
 
Don't get me started about those stupid light bulbs.
 
subject: Tomcat, CLASSPATH, and JavaMail
 
Similar Threads
Configuring Tomcat 3.3 with Oracle
Problem with Weblogic and JSP
Deploy Web Application
ClassNotFoundException
Applet notinit...