• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Tomcat, CLASSPATH, and JavaMail

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic