Re: javamail code in servlet works locally, but not when uploaded to host
- From: rexdtripod@xxxxxxxxxxx
- Date: 5 Dec 2006 10:03:09 -0800
Martin Gregorie wrote:
rexdtripod@xxxxxxxxxxx wrote:
Hmmm... Nobody wants to come to the party... Guess I'll keep my ownIt is difficult to know whats going wrong because your code never
thread going in case anyone else out there ever has the problem...
outputs the message text from an exception.
As you seem to have the SMTP server address and passwords, etc hardcoded
in the servlet, how do you know that they are valid in the deployment
environment?
Good question. I've taken the word of the service provider
(lunarpages) to date. They have indicated to me that my authentication
information is indeed what they have in their records. I'm not sure
how I would determine otherwise. Is there a way I could determine
this?
Would seem odd to me to have authentication information that is valid
for me from some locations, but not in the actual deployment
environment. Is that the sort of thing a service provider would do?
The host continues to have me tinker with server authentication info in
my script. Had me try the name of the machine explicitly with my
username and password. That worked from my sandbox, but not once
deployed. Had me try "localhost" with authentication disabled. That
didn't work. Had me try the machine name with authentication disabled.
That worked from my location, but once again, not from the deployment
environment.
Does this sound like some sort of additional security measure or
something?
Try running it in your test harness on the target machine.
Not sure what you mean by this. I'm guessing what you mean by "test
harness" is my local sandbox environment?
Servlet Container Apache tomcat-5.0.24
Java 1.4.2._04-b05
JavaMail 1.4
JavaBeans(tm)Activation Framework 1.1
I'm in a shared server environment with my host. I'm not at liberty to
modify their machines. I'm under the impression that the only thing I
can do is deploy to what they have and hope that they have been
diligent in setting up their deployment framework. Am I missing
something here?
--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
.
- Follow-Ups:
- Re: javamail code in servlet works locally, but not when uploaded to host
- From: Martin Gregorie
- Re: javamail code in servlet works locally, but not when uploaded to host
- References:
- Re: javamail code in servlet works locally, but not when uploaded to host
- From: rexdtripod
- Re: javamail code in servlet works locally, but not when uploaded to host
- From: Martin Gregorie
- Re: javamail code in servlet works locally, but not when uploaded to host
- Prev by Date: Re: Do I need Threads for this?
- Next by Date: Re: Chr function
- Previous by thread: Re: javamail code in servlet works locally, but not when uploaded to host
- Next by thread: Re: javamail code in servlet works locally, but not when uploaded to host
- Index(es):
Relevant Pages
|