当前位置: 技术问答>java相关
Tomcat4.0运行出现下面的错误,请高手回答,谢谢了!
来源: 互联网 发布时间:2015-06-12
本文导语: org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. C:Program FilesApachTomcat40worklocalhostJIVEbookspost$jsp.java:4: Class or interface declaration expected. import java.sql.*;; ^ C:Program FilesApachT...
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
C:Program FilesApachTomcat40worklocalhostJIVEbookspost$jsp.java:4: Class or interface declaration expected.
import java.sql.*;;
^
C:Program FilesApachTomcat40worklocalhostJIVEbookspost$jsp.java:11: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.post$jsp not found.
public class post$jsp extends HttpJspBase {
C:Program FilesApachTomcat40worklocalhostJIVEbookspost$jsp.java:4: Class or interface declaration expected.
import java.sql.*;;
^
C:Program FilesApachTomcat40worklocalhostJIVEbookspost$jsp.java:11: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.post$jsp not found.
public class post$jsp extends HttpJspBase {
|
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
你的代碼使用了一個反對使用了方法(已過時的舊有方法).
你的代碼使用了一個反對使用了方法(已過時的舊有方法).
|
import java.sql.*;;
是不是你多加了一个分号?(在你的jsp中!)
是不是你多加了一个分号?(在你的jsp中!)
|
C:Program FilesApachTomcat40worklocalhostJIVEbookspost$jsp.java:11: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.post$jsp not found.
public class post$jsp extends HttpJspBase {
找不到类org.apache.jsp.HttpJspBase,可能是你的Tomcat路径没设置正确。
public class post$jsp extends HttpJspBase {
找不到类org.apache.jsp.HttpJspBase,可能是你的Tomcat路径没设置正确。