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

you didn't give informations of why didn't run, I supposed wrong place is:
javax.rmi.activation.*.
maybe, wish it is correct.

sun

> ----------
> From:         [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]]
> Reply To:     Java Apache Users
> Sent:         Monday, September 20, 1999 5:52 PM
> 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]

Reply via email to