How to debugging tomcat5 mailer problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am completely lost on this one.

 

I have a tomcat5 web application running on Fedora Core 4. It ran perfectly until a few months ago when suddenly it stopped sending email. I was using the Jakarta mail-1.1 taglib and it looked like it worked but nothing went out. I started using the mailer2 taglib and that finally gave me some errors (below).  Even the examples don’t work.

 

Initially I had this on both my development and production servers. I hacked away at the dev server replacing jar files and restarting and eventually it all went away. I then reconciled that with my production server and nothing works. I am sure it is some kind of version conflict as it showed up as quickly as it went away.

 

I’ve been beating my head on this for a couple of months now with no progress at all.

 

Can someone please suggest an approach to debug this? I’m at a total loss.

 

Thanks

Peter

 

 

 

The code as follows:

 

<%@ page contentType="text/html" %>

<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>

<%@ taglib prefix="mt"  uri="http://jakarta.apache.org/taglibs/mailer2" %>

 

    <mt:mail

            from="peter.carroll@xxxxxxxxxxx"

            to="peter.carroll@xxxxxxxxxxx"

            subject="simple mail example using mt:send"

            background="">

    >

        Hello, World

    </mt:mail>

 

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: javax.servlet.jsp.JspException: mt:mail: cannot send / create message
        org.apache.jasper.runtime.PageContextImpl.doHandlePageException(java.lang.Throwable) (/usr/lib/libjasper5-runtime-5.0.30.jar.so)
        org.apache.jasper.runtime.PageContextImpl.handlePageException(java.lang.Throwable) (/usr/lib/libjasper5-runtime-5.0.30.jar.so)
        org.apache.jsp.trackreg.tmpa_jsp._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (Unknown Source)
        org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-runtime-5.0.30.jar.so)
        javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) (/usr/lib/libservletapi5-5.0.30.jar.so)
        org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Throwable, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
        org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
        javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) (/usr/lib/libservletapi5-5.0.30.jar.so)
        org.apache.catalina.valves.ErrorReportValve.invoke(org.apache.catalina.Request, org.apache.catalina.Response, org.apache.catalina.ValveContext) (/usr/lib/libcatalina-5.0.30.jar.so)
        org.apache.coyote.tomcat5.CoyoteAdapter.service(org.apache.coyote.Request, org.apache.coyote.Response) (/usr/lib/libcatalina-5.0.30.jar.so)
        org.apache.jk.server.JkCoyoteHandler.invoke(org.apache.jk.core.Msg, org.apache.jk.core.MsgContext) (Unknown Source)
        org.apache.jk.common.HandlerRequest.invoke(org.apache.jk.core.Msg, org.apache.jk.core.MsgContext) (Unknown Source)
        org.apache.jk.common.ChannelSocket.invoke(org.apache.jk.core.Msg, org.apache.jk.core.MsgContext) (Unknown Source)
        org.apache.jk.common.ChannelSocket.processConnection(org.apache.jk.core.MsgContext) (Unknown Source)
        org.apache.jk.common.SocketConnection.runIt(java.lang.Object[]) (Unknown Source)
        org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run() (/tmp/libtomcat-util-5.0.30.jar.sob9q4kk.so)
        java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)

root cause

javax.mail.SendFailedException: Unsupported option: SP
        gnu.mail.providers.smtp.SMTPTransport.sendMessage(javax.mail.Message, javax.mail.Address[]) (Unknown Source)
        javax.mail.Transport.send0(javax.mail.Message, javax.mail.Address[]) (Unknown Source)
        javax.mail.Transport.send(javax.mail.Message) (Unknown Source)
        org.apache.taglibs.mailer2.MailTag.doEndTag() (Unknown Source)
        org.apache.jsp.trackreg.tmpa_jsp._jspx_meth_mt_mail_0(javax.servlet.jsp.PageContext) (Unknown Source)
        org.apache.jsp.trackreg.tmpa_jsp._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (Unknown Source)
        org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-runtime-5.0.30.jar.so)
        javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) (/usr/lib/libservletapi5-5.0.30.jar.so)
        org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Throwable, boolean) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
        org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
        javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) (/usr/lib/libservletapi5-5.0.30.jar.so)
        org.apache.catalina.valves.ErrorReportValve.invoke(org.apache.catalina.Request, org.apache.catalina.Response, org.apache.catalina.ValveContext) (/usr/lib/libcatalina-5.0.30.jar.so)
        org.apache.coyote.tomcat5.CoyoteAdapter.service(org.apache.coyote.Request, org.apache.coyote.Response) (/usr/lib/libcatalina-5.0.30.jar.so)
        org.apache.jk.server.JkCoyoteHandler.invoke(org.apache.jk.core.Msg, org.apache.jk.core.MsgContext) (Unknown Source)
        org.apache.jk.common.HandlerRequest.invoke(org.apache.jk.core.Msg, org.apache.jk.core.MsgContext) (Unknown Source)
        org.apache.jk.common.ChannelSocket.invoke(org.apache.jk.core.Msg, org.apache.jk.core.MsgContext) (Unknown Source)
        org.apache.jk.common.ChannelSocket.processConnection(org.apache.jk.core.MsgContext) (Unknown Source)
        org.apache.jk.common.SocketConnection.runIt(java.lang.Object[]) (Unknown Source)
        org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run() (/tmp/libtomcat-util-5.0.30.jar.sob9q4kk.so)
        java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)

note The full stack trace of the root cause is available in the Apache Tomcat/5.0 logs.


Apache Tomcat/5.0

 

--
fedora-devel-java-list mailing list
fedora-devel-java-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list

[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux