You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Vi...@sita.int on 2002/05/01 17:33:39 UTC

email problem on tomcat


 import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
compiles without errors but fails at runtime with the following error:

Internal Servlet Error:

java.lang.NoClassDefFoundError: javax/mail/MessagingException
       at java.lang.Class.newInstance0(Native Method)
       at java.lang.Class.newInstance(Class.java:237)
       at org.apache.tomcat.facade.ServletHandler.getServlet(Unknown
Source)
       at org.apache.tomcat.facade.ServletHandler.preInit(Unknown Source)
       at org.apache.tomcat.facade.ServletHandler.init(Unknown Source)
       at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
       at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
       at org.apache.tomcat.core.ContextManager.service(Unknown Source)
       at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown



Source)
       at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
       at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
       at java.lang.Thread.run(Thread.java:484)


Can anyone help?






--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: email problem on tomcat

Posted by Jun Inamori <ju...@oop-reserch.com>.
Hi,

> Internal Servlet Error:
> 
> java.lang.NoClassDefFoundError: javax/mail/MessagingException

Even if you place:
  mail.jar
  activation.jar
under (docBase)/WEB-INF/lib or (TOMCAT_HOME)/lib/apps, these files must have the read permission.
Most JAR files distributed from Sun have 644, which means that we need not take care about their read permission in usual case.
But, as for JavaMail 1.3 Early Access, this is not true.
So, it may be worth checking it.
In fact, I spent more than an hour for this problem :-(

-- 

Happy Java programming!

Jun Inamori
OOP-Reserch
E-mail: jun@oop-reserch.com
URL:    http://www.oop-reserch.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>