-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Hmmm...KBMail was written purely in Java servlet with javamail 1.1.2; No problem
found. Maybe your javamail jar file is not included in your respository.
Steve Nguyen
[EMAIL PROTECTED]
C.E.O.
KBMail Software & Service Provider
http://www.kbmail.com
"Plan - Do - Review --> Success"
-------- Original message --------
From: <[EMAIL PROTECTED]>
Date: Mon, 20 Sep 1999 09:52:41 +0000
To: [EMAIL PROTECTED]
Subject: jserv and javamail
----------------------------------
-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Hi all,
I read the faq but found no mention of javamail.
I am having trouble running a servlet using javamail 1.1.2 with jserv
1.0 and jaf 1.0.1 on apache 1.3.6 (Red Hat 6)
The following code dows not work.
import java.io;
import java.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class test extends HttpServlet {
public void doPost {
HttpServletRequest request,
HttpServletResponse response
) throws ServletException{
try {
throw new MessagingException("Testing this exception class");
catch (MessaginException mex) {
System.out.println(mex.toString());
}
response.setContentType("text/plain");
PrintWriter out = response.getWriter();
out.println("tadaa!");
}
}
I get a
(ERROR) ajp11: Servlet Error: NoClassDefFoundError: test
when I put in the MessagingException try/catch block in.
The code works fine as a normal app , ie
import java.io;
import java.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class test {
public static void main {
String args[]
) {
try {
throw new MessagingException("Testing this exception class");
catch (MessaginException mex) {
System.out.println(mex.toString());
}
response.setContentType("text/plain");
PrintWriter out = response.getWriter();
println("Tadaa!");
}
}
My jdk is IBM's jdk1.1.6 for linux.
Any ideas?
Thanks.
Pablo.
--
the sun is the same in the relative way but you're older,
shorter of breath and one day closer to death
--
--------------------------------------------------------------
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]