6 Replies Latest reply on Oct 8, 2010 12:16 AM by Sarada Mohanty

    org.apache.jasper.JasperException: Unable to compile class for JSP

    Sarada Mohanty Newbie

      Hi,

       

      I am trying to deploy my code on JBoss AS but its giving exception.

       

      Log:-

       

      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: 

      An error occurred at line: 14 in the generated java file
      Syntax error on token "import", Identifier expected after this token

      Stacktrace:
           org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
           org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
           org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
           org.apache.jasper.compiler.Compiler.compile(Compiler.java:335)
           org.apache.jasper.compiler.Compiler.compile(Compiler.java:313)
           org.apache.jasper.compiler.Compiler.compile(Compiler.java:300)
           org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
           org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      I am stuck,please help me out.