| Author |
Not able to send mail.
|
Srikanth Nutigattu
Ranch Hand
Joined: Oct 30, 2007
Posts: 114
|
|
Hi,
I have a Swing based application which is running fine as a standalone, but when i deploy through apache and download through webstart, I am able to use the application but not able to send the mail. (thru SMTP).
In normal execution mail is being sent properly. Are there any restrictions on application executed using webstart? I have also given "All permissions" in JNLP file.
any thing else need to be done?
Thanks.
|
 |
Marco Ehrentreich
best scout
Bartender
Joined: Mar 07, 2007
Posts: 1220
|
|
Hi Srikanth,
according to the documentation from Sun you have to sign the JAR files of WebStart applications if they need "extra permissions" which is in your case a network connection (SMTP). You should find the necessary information on this page or referenced pages ;-)
Marco
|
 |
Srikanth Nutigattu
Ranch Hand
Joined: Oct 30, 2007
Posts: 114
|
|
Hi,
I have already done a "self-signing" and even could use socket connections after specifying all-permissions in JNLP.
thanks.
Srikanth.N
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16479
|
|
|
Okay. So what exceptions are being thrown? Do you have a stack trace?
|
 |
Marco Ehrentreich
best scout
Bartender
Joined: Mar 07, 2007
Posts: 1220
|
|
Exactly what I wanted to ask just this moment :-)
Or do you perhaps have some mail configuration parameters in place which are different for the Java WebStart version of your application?
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16479
|
|
|
There could be all kinds of reasons. So you need to find out what's happening. Exceptions and stack traces are the first things to look for.
|
 |
 |
|
|
subject: Not able to send mail.
|
|
|