Howdy,
Count the number of mail.jar files you have in your tomcat installation,
including $CATALINA_HOME/common/lib and your webapp's WEB-INF/lib
directory.  There should only be one.  If there are two, remove one.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 02, 2003 1:19 AM
>To: Tomcat Users List
>Subject: Re: Dreaded java.lang.NoClassDefFoundError
>
>Thanks! You were right.  I had two CLASSPATH statements, and one was
>pointing at only the jre.  I can't really understand how that happened,
I
>really have been running very well for the past six months, compiling
JSPs,
>running servlets, and generally very happy.  Why this should have
happened
>right now I cannot see.
>
>Having straightened out the CLASSPATH I'm running into a problem with
using
>mail.  This is more understandable, as the last thing I changed was the
>addition of email to the webapp.
>
>I wrote a java routine to use the mail facilities and it runs ok bare
on
>the JVM, so I think I've got everything I need.  I then wrote a servlet
to
>provide email functions to my webapp, and I get the following error.
Can
>you tell me what this means?  Thanks:
>
>
>Error: 500
>Location: /daysails/jsp/daysails.sme
>Internal Servlet Error:
>java.lang.NoClassDefFoundError: javax/mail/internet/AddressException
>at java.lang.Class.newInstance0(Native Method)
>at java.lang.Class.newInstance(Class.java:262)
>at
>org.apache.tomcat.facade.ServletHandler.getServlet(ServletHandler.java:
346)
>at
org.apache.tomcat.facade.ServletHandler.preInit(ServletHandler.java:439)
>at
org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:228)
>at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:472)
>at
>org.apache.tomcat.core.ContextManager.internalService(ContextManager.ja
va:9
>17)
>at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
>at
>org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Ht
tp10
>Interceptor.java:176)
>at
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:4
94)
>at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l.ja
>va:516)
>at java.lang.Thread.run(Thread.java:512)
>
>Regards,
>Terry Fuller
>[EMAIL PROTECTED]
>-------------------------------------------------------
>
>
>In <[EMAIL PROTECTED]>, on 06/29/2003
>   at 10:18 PM, "Bill Barker" <[EMAIL PROTECTED]> said:
>
>>It looks, at first glance, that you are running a system
>>with only the JRE, and not the JDK.  To compile JSP pages,
>>you need the JDK, and need to point JAVA_HOME to the JDK
>>root, not the JRE root (e.g. JAVA_HOME=/usr/java, not
>>JAVA_HOME=/usr/java/jre).
>
>>I'm very interested in potential 3.3.x errors, but I can't
>>determine  much more from what you have posted so far.
>
>><[EMAIL PROTECTED]> wrote in message
>>news:[EMAIL PROTECTED] > Everything was
>>working fine this afternoon.  This evening nothing works.
>>I'm now getting the dreaded java.lang.NoClassDefFoundError:
>>sun/tools/javac/Main.
>>>
>>> Just before this, I was getting an abstract error method, failing to
>find
>>TLD information.  There weren't any library tags in the
>>page being compiled, so I removed the taglib definition
>>statement from the JSP -- that's what brought me to this.
>>>
>>> The most significant change I've made was to add a number of
init-param
>>tags to the web.xml for this servlet.  These had a bunch of
>>syntax errors, which I think I've now cleared up [tho' is
>>there a good reference for web.xml content?]
>>>
>>> Running Tomcat 3.3.1. (yes, I know), but can anyone help?
>>>
>>> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>>> at
>>org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.jav
a:13
>6)
>>> at
>>org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:889)
>>> at
>>org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.j
ava:
>73
>>3)
>>> at
>>org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java
:506
>)
>>> at
>>org.apache.tomcat.core.ContextManager.processRequest(ContextManager.ja
va:9
>68
>>)
>>> at
>>org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispat
cher
>Im
>>pl.java:259)
>>> at
>>org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatch
erIm
>pl
>>.java:174)
>>> at SME.SMEcontrol.doPost(SMEcontrol.nrx:336)
>>> at SME.SMEcontrol.doGet(SMEcontrol.nrx:348)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>>> at
>>org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:
574)
>>> at
>>org.apache.tomcat.core.Handler.invoke(Handler.java:322) >
>>at org.apache.tomcat.core.Handler.service(Handler.java:235)
>>> at
>>org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:48
5)
>>> at
>>org.apache.tomcat.core.ContextManager.internalService(ContextManager.j
ava:
>91
>>7)
>>> at
>org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
>>> at
>>org.apache.tomcat.modules.server.Http10Interceptor.processConnection(H
ttp1
>0I
>>nterceptor.java:176)
>>> at
>>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
494)
>>> at
>>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
ol.j
>av
>>a:516)
>>> at java.lang.Thread.run(Thread.java:512)
>>> Regards,
>>> Terry Fuller
>>> [EMAIL PROTECTED]
>>> -------------------------------------------------------
>
>
>
>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail:
>>[EMAIL PROTECTED] For additional
>>commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to