Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to configure for JavaMail

 
Kelly Adams
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using JavaMail in jsp. It works fine under Tomcat. But while it was run under JRun, it couldn't find the classes in the mail.jar. Does anybody know how ot configure JRun in order to use JavaMail? I saved mail.jar in the lib folder under WEB-INF folder.
Thanks,
Kelly
 
Ilja Smoli
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kelly, same problem I have
my topic is a few days ago:

http://www.coderanch.com/t/281969/JSP/java/class
maybe it helps u, there is one reply about tomcat.bat and classpath in it...
for me it didn't work
 
Kelly Adams
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ilja,
Thanks.
It did work on my Tocat. I used 4.1.12 and saves the mail.jar andactivation.jar in the lib folder as you did. Does Tomcat 3.x support JavaMail?
Kelly
 
Ilja Smoli
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as I understand Tomcat just a container and javamail just a classes...so there can't be compatibility problems...
Correct me if im wrong...
Well, I have read Tomcat documentation about Configuring Classes, and after putting mail.jar and activation.jar in tomcat\lib\common it works...
but i still don't understand why it didn't work when this files were in web-inf\lib folder?
if somebody tells me, i'll be very thankful..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic