Thank you.  That did it.

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Balakrishnan Dharmalingam
Sent: Wednesday, September 05, 2001 12:07 PM
To: [EMAIL PROTECTED]
Subject: Re: Help with JSP and Tomcat

set environment variable JAVA_HOME=your jdk directory(e.g C:\jdk1.3)




                    Peter Boivin
                    <peterboivin@YAHO       To:
[EMAIL PROTECTED]
                    O.COM>                  cc:
                    Sent by: A              Subject:     Help with JSP and
Tomcat
                    mailing list
                    about Java Server
                    Pages
                    specification and
                    reference
                    <JSP-INTEREST@JAV
                    A.SUN.COM>


                    09/05/2001 11:41
                    AM
                    Please respond to
                    A mailing list
                    about Java Server
                    Pages
                    specification and
                    reference








I am fairly new with JSP.  I have Tomcat 3.2.3 running.  When I go to view
the examples, I receive this error below.  I gather that it is not seeing
the main method.  I have both JDK 1.3.1 and j2sdkee1.2.1 installed.  Did
Tomcat not find the JVM that it needs?  When I run the servlet examples I
have no trouble with them.  Please help.



Kindly,

Peter

Error: 500

Location: /examples/jsp/num/numguess.jsp

Internal Servlet Error:

javax.servlet.ServletException: sun/tools/javac/Main

        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)

        at org.apache.tomcat.core.Handler.service(Handler.java:287)

        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)

        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)

        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)

        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)

        at java.lang.Thread.run(Unknown Source)

Root cause:

java.lang.NoClassDefFoundError: sun/tools/javac/Main

        at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)

        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)

        at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)

        at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)

        at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)

        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:258)

        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:268)

        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)

        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)

        at org.apache.tomcat.core.Handler.service(Handler.java:287)

        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)

        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)

        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)

        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)

        at java.lang.Thread.run(Unknown Source)










****************************************************************************

The information contained in this transmission, which may be
confidential and proprietary, is only for the intended recipients.
Unauthorized use is strictly prohibited. If you receive this
transmission in error, please notify me immediately by telephone
or electronic mail and confirm that you deleted this transmission
and the reply from your electronic mail system.
****************************************************************************


=========================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=P
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=rvlets


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to