Hello,

I have a TCP/IP connection problem related to the
network addresses.

Here's the environment:
OS: Win95
Apache Web Server: ver 1.3.4
Apache JServ: 1.0.b2 (latest version)

The properties files are setup alright - tested several servlets and
stuff works fine.

I have a mail servlet that uses the JavaMail 1.1.1 API to send
mails using the javax.mail.Transport class. The Transport class
throws an exception when trying to connect to an SMTP server
(details follow). The exception is of type: java.net.UnknownHost.

The servlet works fine if used as a standalone or in a 'servletrunner'
environment. I was wondering if the way JServ engine uses classloaders
has any direct effect in 'IP address lookup' through DNS. A DNS is
installed on the network I am working on.

Exception trace:
javax.mail.SendFailedException: Sending failed;
  nested exception is:
 javax.mail.MessagingException: Unknown SMTP host: smtp.XXX.com;
  nested exception is:
 java.net.UnknownHostException: jefferson.str.com
 at javax.mail.Transport.send0(Compiled Code)
 at javax.mail.Transport.send(Transport.java:73)
 at XXXX.send(Mailer.java:69)
 at XXXX.RequestHandler.service(RequestHandler.java:52)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
 at org.apache.jserv.JServConnection.run(JServConnection.java:359)
 at java.lang.Thread.run(Thread.java:479)

Workaround: the IP address needs to be explicitly specified (in DOT format).

Has anybody experienced any such problems before, and is ther a
way to configure the JServ engine to allow connections to the SMTP server.

NOTE: the SMTP server is on a different host than the mail application.

Thanks for any input.

ciao
Raghu
[EMAIL PROTECTED]




----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to