tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Farinacci <jie...@gmail.com>
Subject Dreaded No Java compiler available
Date Thu, 23 Jun 2011 19:41:26 GMT
Greetings,

I am launching an embedded Apache Tomcat 7.0.14, everything except
JSPs are working fine (static resources, servlets, filters, etc). I
have set JAVA_HOME to a location which does have bin/javac and
lib/tools.jar, and otherwise does appear to be a fully working JDK.
However, I take the following exception:

SEVERE: Exception Processing ErrorPage[errorCode=404,
location=/error-pages/404.jsp]
Throwable occurred: org.apache.jasper.JasperException:
java.lang.IllegalStateException: No Java compiler available
 at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:570)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:378)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:473)
 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
 at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:466)
 at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:387)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:181)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:317)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:204)
 at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:311)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
 at java.lang.Thread.run(Thread.java:736)
Caused by: java.lang.IllegalStateException: No Java compiler available
 at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:231)
 at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
 ... 21 more

My project has the following Apache Tomcat dependencies (all 7.0.14):

    <dependency>
      <groupId>org.apache.tomcat</groupId>
      <artifactId>tomcat-util</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.tomcat.embed</groupId>
      <artifactId>tomcat-embed-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.tomcat.embed</groupId>
      <artifactId>tomcat-embed-jasper</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.tomcat.embed</groupId>
      <artifactId>tomcat-embed-logging-juli</artifactId>
    </dependency>

I am not finding any corresponding jasper-compiler or
jasper-compiler-jdt with the 7.x version scheme. Sorry, but what am I
doing wrong?

Thanks,
-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

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


Mime
View raw message