JSP not getting compiled

Hi All,

I am getting the below error when i am trying to run my app.

I am sun one app server.I have deployed my classes and jsp using the deply tool.

org.apache.jasper.JasperException: Unable to compileclassfor JSP

No Java compiler was found to compile the generated sourcefor the JSP.

This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK

to the common/lib directory of the Tomcat server, followed by a Tomcat restart.

If using an alternate Java compiler, please check its installation and access path.

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:132)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:356)

org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:420)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:557)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)

javax.servlet.http.HttpServlet.service(HttpServlet.java:861)

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

java.lang.reflect.Method.invoke(Method.java:324)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)

java.security.AccessController.doPrivileged(Native Method)

javax.security.auth.Subject.doAsPrivileged(Subject.java:500)

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)

Please help

[2167 byte] By [java_jamboreea] at [2007-11-27 6:36:04]
# 1
I know nothing about JSP, but the error message seems quite clear to me.
keeskista at 2007-7-12 18:03:28 > top of Java-index,Java Essentials,Java Programming...
# 2
> I know nothing about JSP, but the error message seems> quite clear to me.Indeed. The error report could only be more useful if it actually made you a cup of tea, too
georgemca at 2007-7-12 18:03:28 > top of Java-index,Java Essentials,Java Programming...
# 3
i tried what the error msg suggested..but it didnt work for me
java_jamboreea at 2007-7-12 18:03:28 > top of Java-index,Java Essentials,Java Programming...
# 4
You did restart Tomcat after you did that, did you?
jwentinga at 2007-7-12 18:03:28 > top of Java-index,Java Essentials,Java Programming...
# 5
thats where i am getting stuck . ....i am using Sun one app serverand i have restarted that.....
java_jamboreea at 2007-7-12 18:03:28 > top of Java-index,Java Essentials,Java Programming...
# 6
what wud be the corresponding directory for the tomcat's common\libin the sun one server
java_jamboreea at 2007-7-12 18:03:28 > top of Java-index,Java Essentials,Java Programming...