aspose file tools*
The moose likes JSP and the fly likes jsp examples Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp examples" Watch "jsp examples" New topic
Author

jsp examples

Raja Islam
Ranch Hand

Joined: Dec 07, 2001
Posts: 74
i have a problem that i am using tomcat 3.1 there is a problem that the examples of jsp is not working but servlet examples and servlet is working fine can any one pls pls help me.
i use tomcat 4 but problem is there.
ersin eser
Ranch Hand

Joined: Feb 22, 2001
Posts: 1072
Which examples ?
Raja Islam
Ranch Hand

Joined: Dec 07, 2001
Posts: 74
The examples given by tomcat
Shivaji Marathe
Ranch Hand

Joined: Jan 11, 2002
Posts: 203
Can you give some more details. Where/ how is tomcat installed ? Have you left the samples in the original place or have you moved them around ? When you say not working , what error messages are you getting ? There are several examples - which of these are not working?
What troubleshooting have you done so far?
Raja Islam
Ranch Hand

Joined: Dec 07, 2001
Posts: 74
i am using tomcat 3.1 and 4.1 but all examples of both produce same error the error is
Error: 500
Location: /examples/jsp/colors/colrs.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:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.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(JspServlet.java:152)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java: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:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.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)
krishna valavala
Greenhorn

Joined: Mar 06, 2002
Posts: 10
This is a common problem where JSP compiler cannot find java compiler at runtime. It has to do with your configuration. Check your JAVA_HOME variable. If that doesn't work try copying all the jars to jre/lib/ext. I do not know why but, it worked for me. See the link http://www.apachelabs.org/tomcat-user/200003.mbox/%3C001801bf9238$edc07460$73010101@webpc%3E
Raja Islam
Ranch Hand

Joined: Dec 07, 2001
Posts: 74
Thank you it is now working fine it is due to that i am setting my path through a .bat file and there was some problem in java_home now it is working fine
Andres Pineda
Greenhorn

Joined: Mar 06, 2002
Posts: 9
The examples?


Andres Pineda
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp examples