This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Unable to compile class for JSP No Java compiler was found to compile the generated s Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Unable to compile class for JSP No Java compiler was found to compile the generated s" Watch "Unable to compile class for JSP No Java compiler was found to compile the generated s" New topic
Author

Unable to compile class for JSP No Java compiler was found to compile the generated s

viveka shirbhatea
Greenhorn

Joined: Feb 13, 2007
Posts: 3
I am using jsp with Tomcat 5 .
facing error frequently :Unable to compile class for JSP No Java compiler was found to compile the generated source for the JSP.

detail:

Referer http://10.0.0.28:8081/DBHMS135/RTM/Project/com_tasks.jsp?&initId=COM6530
STATUS 500
Message Unable to compile class for JSP No Java compiler was found to compile the generated source for 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.
User Info Time[02-16-2007 12:29:17] IP[10.0.0.50]
Session Timed out? false
Exception class org.apache.jasper.JasperException
Stack Trace org.apache.jasper.JasperException: Unable to compile class for JSP No Java compiler was found to compile the generated source for 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.
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
at java.lang.Thread.run(Thread.java:534)
kunal green
Greenhorn

Joined: Dec 31, 2009
Posts: 26

i am also getting the same error pl help me
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
Have you checked what it is asking you to do?

viveka shirbhatea wrote:


kunal green
Greenhorn

Joined: Dec 31, 2009
Posts: 26

yes i have tried and all are fine

i am using eclipse ide
its compiling the code having standard library files
but as i m using bean tag its saying unable to compile the class
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9930
    
159

"kunal coolest"

Please check your private messages, for a message from JavaRanch.


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to compile class for JSP No Java compiler was found to compile the generated s
 
Similar Threads
Unable to load tag handler class!!!
Errors installing AXIS in Tomcat 5.0.29
error on jsp page on my laptop but works great on my desktop
Do you use a bean for creating database connection?
Run jsp: Unable to find a javac compiler