- 论坛徽章:
- 0
|
JDK1.5 + TOMCAT5 为什么会出现下列问题呢???
我的JSP页面只有:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>;
========
运行时出现下列问题:
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:
F:\jboss-4.0.0\server\default\work\jboss.web\localhost\test\org\apache\jsp\a_jsp.java:3: package javax.servlet does not exist
import javax.servlet.*;
^
Generated servlet error:
F:\jboss-4.0.0\server\default\work\jboss.web\localhost\test\org\apache\jsp\a_jsp.java:4: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
Generated servlet error:
F:\jboss-4.0.0\server\default\work\jboss.web\localhost\test\org\apache\jsp\a_jsp.java:5: package javax.servlet.jsp does not exist
import javax.servlet.jsp.*;
^
Generated servlet error:
F:\jboss-4.0.0\server\default\work\jboss.web\localhost\test\org\apache\jsp\a_jsp.java:8: package org.apache.jasper.runtime does not exist
public final class a_jsp extends org.apache.jasper.runtime.HttpJspBase
^
Generated servlet error:
F:\jboss-4.0.0\server\default\work\jboss.web\localhost\test\org\apache\jsp\a_jsp.java:9: package org.apache.jasper.runtime does not exist
implements org.apache.jasper.runtime.JspSourceDependent {
^
Generated servlet error:
F:\jboss-4.0.0\server\default\work\jboss.web\localhost\test\org\apache\jsp\a_jsp.java:17: cannot find symbol
symbol : class HttpServletRequest
location: class org.apache.jsp.a_jsp
public void _jspService(HttpServletRequest request, HttpServletResponse response)
^
Generated servlet error:
F:\jboss-4.0.0\server\default\work\jboss.web\localhost\test\org\apache\jsp\a_jsp.java:17: cannot find symbol
symbol : class HttpServletResponse
location: class org.apache.jsp.a_jsp
public void _jspService(HttpServletRequest request, HttpServletResponse response)
^
Generated servlet error:
F:\jboss-4.0.0\server\default\work\jboss.web\localhost\test\org\apache\jsp\a_jsp.java:18: cannot find symbol
symbol : class ServletException
location: class org.apache.jsp.a_jsp
throws java.io.IOException, ServletException {
^
Generated servlet error:
F:\jboss-4.0.0\server\default\work\jboss.web\localhost\test\org\apache\jsp\a_jsp.java:20: cannot find symbol
symbol : class JspFactory
location: class org.apache.jsp.a_jsp
JspFactory _jspxFactory = null;
^
Generated servlet error:
F:\jboss-4.0.0\server\default\work\jboss.web\localhost\test\org\apache\jsp\a_jsp.java:21: cannot find symbol
symbol : class PageContext
location: class org.apache.jsp.a_jsp
PageContext pageContext = null;
^
Generated servlet error:
F:\jboss-4.0.0\server\default\work\jboss.web\localhost\test\org\apache\jsp\a_jsp.java:22: cannot find symbol
symbol : class HttpSession
location: class org.apache.jsp.a_jsp
HttpSession session = null;
^
Generated servlet error:
F:\jboss-4.0.0\server\default\work\jboss.web\localhost\test\org\apache\jsp\a_jsp.java:23: cannot find symbol
symbol : class ServletContext
location: class org.apache.jsp.a_jsp
ServletContext application = null;
^ |
|