2 Replies Latest reply on Jun 25, 2002 5:49 AM by ampingbulabog

    Jboss_3.0RC2 + Tomcat_4.0.3:Unable to compile class for JSP

    Javier Torreblanca Beltran Newbie

      Hi, I have been using Jboss-2.4.4_Tomcat-4.0.1 but three days ago I installed Jboss-3.0RC2_Tomcat-4.0.3 and I have problems with this version because it unables to compile class for JSP. I´m using an enterprise bean that works fine in Jboss-2.4.4_Tomcat-4.0.1 but in the last version send me the following error:

      org.apache.jasper.JasperException: No se puede compilar la clase para JSPNote: sun.tools.javac.Main has been deprecated.

      D:\jboss-3.0.0RC2_tomcat-4.0.3\catalina\work\localhost\primerEJB\primerEJB$jsp.java:12: Package javax.servlet not found in import.
      import javax.servlet.*;
      ^

      D:\jboss-3.0.0RC2_tomcat-4.0.3\catalina\work\localhost\primerEJB\primerEJB$jsp.java:13: Package javax.servlet.http not found in import.
      import javax.servlet.http.*;
      ^

      D:\jboss-3.0.0RC2_tomcat-4.0.3\catalina\work\localhost\primerEJB\primerEJB$jsp.java:14: Package javax.servlet.jsp not found in import.
      import javax.servlet.jsp.*;
      ^

      D:\jboss-3.0.0RC2_tomcat-4.0.3\catalina\work\localhost\primerEJB\primerEJB$jsp.java:15: Package org.apache.jasper.runtime not found in import.
      import org.apache.jasper.runtime.*;
      ^

      D:\jboss-3.0.0RC2_tomcat-4.0.3\catalina\work\localhost\primerEJB\primerEJB$jsp.java:18: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.primerEJB$jsp not found.
      public class primerEJB$jsp extends HttpJspBase {
      ^
      5 errors, 1 warning

      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
      at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)
      at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
      at java.lang.Thread.run(Thread.java:536)


      Thanks in advance for your help.