-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

I checked all FAQs before mailing and setting wrapper.classpath is not the
issue.  It finds other classes in the same jar file before choking on the
previously mentioned class. I looked at every mention of
NoClassDefFoundError in the FAQs and none helped. I saw no mention of
javamail in any of the FAQs.


                -----Original Message-----
                From:   Brett, James [mailto:[EMAIL PROTECTED]]
                Sent:   Wednesday, September 01, 1999 6:09 PM
                To:     '[EMAIL PROTECTED]'
                Subject:        JServ and JavaMail

                -----------------------------
                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]


--
--------------------------------------------------------------
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]

Reply via email to