wood burning stoves*
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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.
 
jQuery in Action, 2nd edition
 
subject: Tomcat, CLASSPATH, and JavaMail