aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes How to run servlet which send email, on client's computer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to run servlet which send email, on client Watch "How to run servlet which send email, on client New topic
Author

How to run servlet which send email, on client's computer

Prashant Chindhade
Ranch Hand

Joined: Jan 19, 2011
Posts: 77
I have a web application that sends an email from application. But when i run it on my computer where i have developed it, it is running good also send email. but when i run it on the machine of my client it is showing error. what should i do..??

My client machine has jdk and Tomcat installed. can this be the error of Mail.jar file because i have not set classpath of mail.jar in my client's machine.

please help.
Prashant
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Are you going to tell us what error that is, or are we supposed to guess?

Tomcat does not use any classpath you set. Since it also does not ship with the JavaMail jars, you need to include those with your web app.
Prashant Chindhade
Ranch Hand

Joined: Jan 19, 2011
Posts: 77
I want to know what is causing this error. will you tell me how i to include these jar files to my web app..??
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
So far you haven't even told us what the error is.

As to the other question, are you familiar with the WEB-INF/lib directory?
Prashant Chindhade
Ranch Hand

Joined: Jan 19, 2011
Posts: 77
yes ...i am familiar with that...
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19785
    
  20

Will you finally provide us the error message (full stack trace is preferred), or do you want to keep us guessing?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Mr sujeet khandelwal
Greenhorn

Joined: Dec 21, 2011
Posts: 13

Hi prashant,

I dont think issue is there because of mail.jar as it is working fine on your development machine and you must have deployed same app on client machine.
Please see log while running application and post the exception here from log then only someone can solve the issue.







 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to run servlet which send email, on client's computer