0 Replies Latest reply on Apr 9, 2002 8:42 PM by tim

    JBoss3: javax.servlet not found in import

    tim Newbie

      Hello all,

      I am having difficulty deploying my JSP to JBoss3. I get the following message on the console when I try browsing to my home page. I have tried adding servlet.jar to lib, lib/ext, JBOSS_CLASSPATH, and SERVLETAPI_HOME, all to no avail. Any help would be appreciated.

      Tim

      10:33:44,927 ERROR [EmbeddedCatalinaServiceSX] StandardWrapperValve[jsp]: Servle
      t.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: Unable to compile class for JSP
      D:\jboss-3.0.0beta\jakarta-tomcat-4.0.2\work\localhost\pc\HomepageV
      iew$jsp.java:3: Package javax.servlet not found in import.
      import javax.servlet.*;
      ^

      D:\jboss-3.0.0beta\jakarta-tomcat-4.0.2\work\localhost\pc\HomepageV
      iew$jsp.java:4: Package javax.servlet.http not found in import.
      import javax.servlet.http.*;
      ^

      D:\jboss-3.0.0beta\jakarta-tomcat-4.0.2\work\localhost\pc\HomepageV
      iew$jsp.java:5: Package javax.servlet.jsp not found in import.
      import javax.servlet.jsp.*;
      ^

      D:\jboss-3.0.0beta\jakarta-tomcat-4.0.2\work\localhost\pc\HomepageV
      iew$jsp.java:6: Package org.apache.jasper.runtime not found in import.
      import org.apache.jasper.runtime.*;
      ^

      D:\jboss-3.0.0beta\jakarta-tomcat-4.0.2\work\localhost\pc\HomepageV
      iew$jsp.java:9: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.Ho
      mepageView$jsp not found.
      public class HomepageView$jsp extends HttpJspBase {
      ^
      5 errors

      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.loadIfNecessar
      y(JspServlet.java:177)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
      vlet.java:189)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
      82)
      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(Appl
      icationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:243)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
      .java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.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.jav
      a: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.j
      ava:180)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
      .java:566)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
      rValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
      .java:564)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
      .java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:174)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
      .java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
      a:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

      at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
      r.java:1012)
      at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
      va:1107)
      at java.lang.Thread.run(Thread.java:484)