Basic Problem: I am unable to compile jsp's and display them via
Tomcat. I am using the Netbeans IDE for web development and webapps
that use html files/servlets run just fine. It's when I try to run a
jsp that I get an Error 500:
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
org.apache.jasper.JasperException: java.lang.IllegalStateException: No
Java compiler available
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:585)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:391)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
root cause
java.lang.IllegalStateException: No Java compiler available
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:228)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:638)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
note The full stack trace of the root cause is available in the Apache
Tomcat/7.0.25 logs.
My laptop config is as follows:
OS: Arch Linux kernel 3.2.4-1-ARCH
Tomcat: 7.0.25
jdk: 7-3
$ java -showversion
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Server VM (build 21.0-b17, mixed mode)
Netbeans: 7.1
I have googled extensively and looked through the logs and I am at a
loss. It obviously can't find a compiler but I have one. I have
looked through the Netbeans configuration options and don't see
anything that looks relevant, but I am a noob to Java so I could
easily be missing something.
Any help appreciated!
--
"None are more hopelessly enslaved than those who falsely believe they
are free" -- Johann Wolfgang von Goethe
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]