tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TroyGeek <troyg...@gmail.com>
Subject Re: mailer javax/mail/Authenticator
Date Tue, 21 Jun 2005 20:41:33 GMT
Do you also need mail.jar (in addition to activation.jar) in your classpath?



On 6/21/05, Lorenzo Sicilia <arnor@kemen.it> wrote:
> Hi to all,
> 
> I use tag mailer with jrun4 and all works fine.
> Now, I want switch from jrun to tomcat 5.
> 
> I have fix some bugs but the tag mailer return an exception:
> 
> javax.servlet.ServletException: javax/mail/Authenticator
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         it.kemen.filter.Header.doFilter(Header.java:56)
>         it.kemen.filter.Language.doFilter(Language.java:110)
> 
> root cause
> java.lang.NoClassDefFoundError: javax/mail/Authenticator
>         java.lang.Class.getDeclaredMethods0(Native Method)
>         java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
>         java.lang.Class.getDeclaredMethods(Class.java:1139)
>         java.beans.Introspector$1.run(Introspector.java:1273)
>         java.security.AccessController.doPrivileged(Native Method)
> 
> java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1271)
>         java.beans.Introspector.getTargetMethodInfo(Introspector.java:1136)
>         java.beans.Introspector.getBeanInfo(Introspector.java:378)
>         java.beans.Introspector.getBeanInfo(Introspector.java:152)
> 
> org.apache.jasper.compiler.Generator$TagHandlerInfo.<init>(Generator.java:3681)
> 
> org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(Generator.java:2100)
> 
> org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1581)
>         org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
>         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
>         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
>         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
>         org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
>         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
>         org.apache.jasper.compiler.Generator.generate(Generator.java:3269)
>         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
>         org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
>         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
>         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
> 
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
> 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
> 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         it.kemen.filter.Header.doFilter(Header.java:56)
>         it.kemen.filter.Language.doFilter(Language.java:110)
> 
> my test jsp:
> 
> 
> <%@ page language="java" import="java.util.*" %>
> <%@ taglib uri="http://jakarta.apache.org/taglibs/mailer-1.1" prefix="mt" %>
> <%@ taglib prefix="c"   uri="/WEB-INF/tld/c.tld" %>
> <%
> String path = request.getContextPath();
> String basePath =
> request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
> %>
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
>   <head>
>     <base href="<%=basePath%>">
> 
>     <title>My JSP 'mail.jsp' starting page</title>
> 
>   </head>
> 
>   <body>
>     <mt:mail>
>        <mt:s
>        <mt:server>mail.kemen.it</mt:server>
>        <mt:from>info@kemen.it</mt:from>
>        <mt:subject>test</mt:subject>
>        <mt:setrecipient type="to">lorenzo@kemen.it</mt:setrecipient>
>        <mt:message type="text">
>                text from test
>        </mt:message>
>        <mt:send>
>                <mt:error id="error_mail" >
>                        <c:out value ="error_mail"/>
> 
>                </mt:error>
>        </mt:send>
> </mt:mail>
>   </body>
> </html>
> 
> I copy activation.jar in /opt/tomcat5/common/lib/ but I get the
> exception anyway.
> 
> any idea?
> 
> many thahks in advance
> 
> regards Lorenzo
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message