This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compile Error! help!!!

 
he fei
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Tomcat version is Tomcat5.0. OS:Windows.
It is always show this error,When I try to comple the *.jsp file even if I have copied manually $JAVA_HOME/lib/tools.jar from the JDK to the ommon/lib directory of the Tomcat server, followed by a Tomcat restart.
Who can help me?
Thank you!
HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

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.

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:128)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:348)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:455)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


note The full stack trace of the root cause is available in the Tomcat logs.


--------------------------------------------------------------------------------

Apache Tomcat/5.0.9
[ June 24, 2004: Message edited by: he fei ]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you see the normal Tomcat startup page?
When I try to comple the *.jsp file

Exactly how are you trying to compile the *.jsp file?
Bill
 
David Wilson
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about the examples that come with Tomcat? If those don't work then you're stuff will not work either.

What is you deployment like? Are you deploying your files in a war? What is your file structure?

-David
 
he fei
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can see the normal Tomcat startup page.
The examples that come with Tomcat could run well.
Some of my *.jsp files could run well,just a little.
I compiled the *.jsp file in Internet Explorer.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, well that's your problem. Internet Explorer is not a compiler

You mean that you just called the JSP from your browser, without pre-compiling right?

So some JSP's compiled and produced output, but others do not? Are you using the pre-compiled JSP's in the example app, and then placing your own JSPs in this app? (That will not work)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic