-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
KBMail Software (www.kbmail.com) is written 100% based on Java servlet and Javamail,
and it runs perfectly well under JServ (of course under other servlet runners as well).
Steve Nguyen
[EMAIL PROTECTED]
C.E.O.
KBMail Software & Service Provider
http://www.kbmail.com
"Plan - Do - Review --> Success"
-------- Original message --------
From: "Brett, James" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
Subject: JServ and JavaMail
Date: Wed, 1 Sep 1999 17:08:53 -0500
----------------------------------
-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Hi - I'm having problems accessing sun's javamail package from a servlet run
from JServ. Does anyone know of any success/failure with javamail and
JServ? It runs outside of JServ on HPUX but not when in servlet run by
JServ. The jserv log error is:
[01/09/1999:11:28:16.196 CDT] java.lang.NoClassDefFoundError:
javax/mail/internet/ParameterList
at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:341)
at org.apache.jserv.JServConnection.run(JServConnection.java:197)
at java.lang.Thread.run(Compiled Code)
I'm fairly certain that I have the classpath set correctly since it does
find other classes in the same jar file (mail.jar from sun) before it dies
on this class. I've rebuilt the jar file on UNIX with and without
compression but it doesn't matter. I've tried explicitly importing the
classes not found and that doesn't help. I've looked in the jar file and the
class in question is there, size isn't 0, it's spelling and case are correct
and, as I said previously, other classes in that jar file are found before
the line causing this exception happens. That line is:
Multipart mp = new MimeMultipart();
I'm presuming that ParameterList is an element of MimeMultipart.
MimeMultipart is in mail.jar as javax/mail/internet/MimeMultipart and that's
found (as are other classes successfully instantiated before the failure
which is one of the reasons why I don't think it's a classpath issue).
I'm pretty sure it's JServ 1.0 . Not sure about HP-UX ...
Any ideas? Thanks - Jim
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]