Re: Error 500?

2001-03-03 Thread RaviShankar K
Hi

Put all jar files which are under TOMCAT_HOME/lib in your class path.
They are servlet.jar, jasper.jar .. etc

Ravi
- Original Message -
From: "David Ireland" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 04, 2001 AM 09:12
Subject: Error 500?


Hi

I am using tomcat 3.2.1 and JDK 1.3 under Windows 98.  I have installed
tomcat ok and I can access it through localhost:8080. It also runs the
servlet examples ok but when I try to run the JSP examples I get errors... I
have set up JAVA_HOME and TOMCAT_HOME in tomcat.bat which also references
TOMCAT_HOME\lib\tools.jar.

Any help greatly appreciated,  also could someone tell me how I view
previous messages on this list...

Thanks

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:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




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


Newbie-Error in compiling servlets

2001-03-02 Thread RaviShankar K



Hi,

I am quite new to Tomcat . I installed Tomcat and 
Servlet examples given along with the
SW are working fine. But when Icompile the 
same examples servletssource codes, 
I could not compile them and it is showing errors 
as ,
Hello.java:94:can 
not resolve symbol : HttpServlet
location : class Hello 
 HttpServletResponse response)"

If any idea, please tell me.

regards,
Ravi





Re: Newbie-Error in compiling servlets

2001-03-02 Thread RaviShankar K



Hi Kurt,

Yes. I included now. They are working.
Thank you very much for your help.

Regards,
Ravi

  - Original Message - 
  From: 
  Kurt, 
  Oliver 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Friday, March 02, 2001 PM 
  10:12
  Subject: AW: Newbie-Error in compiling 
  servlets
  
  is 
  the servlet.jar in your classpath?? (servlet.jar is not included in J2SE, but 
  you can find it in %tomcat_home%\lib\servlet.jar )
  
  
  -Ursprüngliche Nachricht-Von: RaviShankar K 
  [mailto:[EMAIL PROTECTED]]Gesendet: Freitag, 2. März 2001 
  14:02An: [EMAIL PROTECTED]Betreff: 
  Newbie-Error in compiling servlets
  Hi,
  
  I am quite new to Tomcat . I installed Tomcat and 
  Servlet examples given along with the
  SW are working fine. But when Icompile the 
  same examples servletssource codes, 
  I could not compile them and it is showing errors 
  as ,
  Hello.java:94:can 
  not resolve symbol : HttpServlet
  location : class Hello 
   HttpServletResponse response)"
  
  If any idea, please tell me.
  
  regards,
  Ravi
  
  
  


Unable to compile servlet in Windows-NT-Please help

2001-03-01 Thread RaviShankar K




Hi,

I could not compile servlet in Windows 
NT.Tomcat is running successfully. I included all jar files in CLASSPATH . 
But in the class path Tomcat is showing a part as C:\tomcat\classes . I could 
not see "classes" under tomcat . Is that a problem ?
 Please tell me to compile a 
servlet in Tomcat .

Regards,
Ravi