• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat, CLASSPATH, and JavaMail  RSS feed

Dave Soto
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!