2 Replies Latest reply on Feb 3, 2005 2:58 PM by Anton Hughes

    newbie is lost- jsp error - help please

    Anton Hughes Newbie

      Greetings

      I am trying to run this very basic JSP page but am getting the following errors:

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      <HTML>
      <HEAD><TITLE>JSP Test Page</TITLE></HEAD>
      <BODY BGCOLOR="#FDF5E6">
      <H2><%
       out.print("Hello World");
      %></H2>
      </BODY></HTML>


      My class_path = C:\Sun\AppServer\jdk\lib\
      but have also tried C:\Sun\AppServer\jdk\lib\javax.servlet.*
      neither made any difference.



      HTTP Status 500 -

      --------------------------------------------------------------------------------

      type 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

      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:3: package javax.servlet does not exist
      import javax.servlet.*;
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:4: package javax.servlet.http does not exist
      import javax.servlet.http.*;
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:5: package javax.servlet.jsp does not exist
      import javax.servlet.jsp.*;
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:7: package org.apache.jasper.runtime does not exist
      public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:8: package org.apache.jasper.runtime does not exist
      implements org.apache.jasper.runtime.JspSourceDependent {
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:16: cannot resolve symbol
      symbol : class HttpServletRequest
      location: class org.apache.jsp.index_jsp
      public void _jspService(HttpServletRequest request, HttpServletResponse response)
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:16: cannot resolve symbol
      symbol : class HttpServletResponse
      location: class org.apache.jsp.index_jsp
      public void _jspService(HttpServletRequest request, HttpServletResponse response)
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:17: cannot resolve symbol
      symbol : class ServletException
      location: class org.apache.jsp.index_jsp
      throws java.io.IOException, ServletException {
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:19: cannot resolve symbol
      symbol : class JspFactory
      location: class org.apache.jsp.index_jsp
      JspFactory _jspxFactory = null;
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:20: cannot resolve symbol
      symbol : class PageContext
      location: class org.apache.jsp.index_jsp
      PageContext pageContext = null;
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:21: cannot resolve symbol
      symbol : class HttpSession
      location: class org.apache.jsp.index_jsp
      HttpSession session = null;
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:22: cannot resolve symbol
      symbol : class ServletContext
      location: class org.apache.jsp.index_jsp
      ServletContext application = null;
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:23: cannot resolve symbol
      symbol : class ServletConfig
      location: class org.apache.jsp.index_jsp
      ServletConfig config = null;
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:24: cannot resolve symbol
      symbol : class JspWriter
      location: class org.apache.jsp.index_jsp
      JspWriter out = null;
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:26: cannot resolve symbol
      symbol : class JspWriter
      location: class org.apache.jsp.index_jsp
      JspWriter _jspx_out = null;
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:27: cannot resolve symbol
      symbol : class PageContext
      location: class org.apache.jsp.index_jsp
      PageContext _jspx_page_context = null;
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:31: cannot resolve symbol
      symbol : variable JspFactory
      location: class org.apache.jsp.index_jsp
      _jspxFactory = JspFactory.getDefaultFactory();
      ^


      Generated servlet error:
      C:\jboss\server\default\work\jboss.web\localhost\freedomair\org\apache\jsp\index_jsp.java:53: cannot resolve symbol
      symbol : class SkipPageException
      location: class org.apache.jsp.index_jsp
      if (!(t instanceof SkipPageException)){
      ^
      18 errors



      org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
      org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
      org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
      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)