DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12795>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12795

activation.jar in common/lib gives javax/activation/DataSource errors

           Summary: activation.jar in common/lib gives
                    javax/activation/DataSource errors
           Product: Tomcat 4
           Version: 4.1.10
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In tomcat 4.1.10, the file activation.jar in the common/lib directory has to be
moved (not copied) to the jre/lib/ext directory of the java installation, or
else the use of javax.mail.Session objects (and possibly others) in servlets
gives exceptions.

Example:

When calling new MimeMessage(), this exception results:


java.lang.NoClassDefFoundError: javax/activation/DataSource
        at AcceptMailForm.sendMessage(AcceptMailForm.java:136)
        at AcceptMailForm.processRequest(AcceptMailForm.java:86)
        at AcceptMailForm.doPost(AcceptMailForm.java:116)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.
java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193


If I recall, this problem had existed previously in 3.X versions.

In versions 4.0.X this issue was fixed and activation.jar didn't need to be
moved to the java extensions folder.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to