2012/2/14 Jude Lucien <jluc...@gmail.com>:
> 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!
>

The compiler should be in ecj-3.7.1.jar. Do you have that file?

Note that there was update 3.7 -> 3.7.1 recently, and the version is
part of the file name. Maybe in your environment it somehow does not
see the new version of the file.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to