tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laura Currea" <la...@compete.com>
Subject Mailer taglib: java.lang.NoClassDefFoundError: javax/naming/NamingException
Date Fri, 03 Aug 2001 18:56:20 GMT
I'm having a problem using the Mailer taglib to send email from a JSP page.
When i first load it, I get the following exception:

Unhandled error! You might want to consider having an error page to report
such errors more gracefully
java.lang.NoClassDefFoundError: javax/naming/NamingException
        at java.lang.ClassLoader.resolveClass0(Native Method)
        at java.lang.ClassLoader.resolveClass(ClassLoader.java, Compiled
Code)
        at
org.apache.tomcat.loader.AdaptiveClassLoader.loadSystemClass(AdaptiveClassLo
ader.java, Compiled Code)
        at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j
ava, Compiled Code)
        at
org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoad
er.java, Compiled Code)
        at org.apache.jasper.runtime.JspLoader.loadClass(JspLoader.java,
Compiled Code)
        at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
        at
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java,
Compiled Code)
        at
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
rseEventListener.java, Compiled Code)
        at
org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
istener.java, Compiled Code)
        at
org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
tListener.java, Compiled Code)
        at
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
ner.java, Compiled Code)
        at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java,
Compiled Code)
        at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled
Code)
        at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled
Code)
        at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled
Code)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
Compiled Code)
        at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java,
Compiled Code)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java, Compiled Code)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va, Compiled Code)
        at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
        at org.apache.jasper.runtime.JspServlet.service(JspServlet.java,
Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java, Compiled Code)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)
        at java.lang.Thread.run(Thread.java, Compiled Code)

However, if I reload the page it works fine and is able to use the tags to
send the message. Anybody know what could be causing this?

Thanks,
Laura


Mime
View raw message