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.java:917) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java: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.java:136) >> at >org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:889) >> at >org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:73 >3) >> at >org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506) >> at >org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968 >) >> at >org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm >pl.java:259) >> at >org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl >.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:485) >> at >org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91 >7) >> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) >> at >org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I >nterceptor.java:176) >> at >org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) >> at >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav >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]
