2 Replies Latest reply on Jul 13, 2005 8:19 AM by chagen

    JSP won't compile

    jozeph78

      I'm getting a weird error when trying to load the JMX-Console, and any other JSP for that matter.

      When I visit http://localhost:8080/jmx-console, I get teh following error:

      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
       org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:520)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
      
      root cause
      
      java.io.FileNotFoundException: /usr/share/jboss/server/default/work/jboss.web/localhost/jmx-console/org/apache/jsp/index_jsp.java (No such file or directory)
       java.io.FileOutputStream.open(Native Method)
       java.io.FileOutputStream.<init>(FileOutputStream.java:179)
       java.io.FileOutputStream.<init>(FileOutputStream.java:70)
       org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188)
       org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
       org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
       org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
       org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
      


      So I tried created an index.html in default/deploy/jmx-console.war/ and visited http://localhost:8080/jmx-console/index.html that works fine. I try to visit http://localhost:8080/jmx-console/index.jsp and get EXACT same exception. I can view images and everything else, but no go on any .jsp pages. I have no idea how to troubleshoot this and yes, I have tried for the past two hours. Any help would be a godsend.

        • 1. Re: JSP won't compile
          chagen

          Just a guess, maybe there's something wrong with your Java path. Try adding a line similar to this (depending on your system) to the top of your startscript (e.g. run.bat in /bin):

          set JAVA_HOME=C:\java\j2sdk142

          Hope this helps.

          • 2. Re: JSP won't compile
            chagen

            Should've read the full thing first... guess I'm wrong, sry.