当前位置: 技术问答>java相关
在我从TOMCAT3到TOMCAT4的升级中,发现下面的问题:
来源: 互联网 发布时间:2015-06-02
本文导语: 本来在TOMCAT3中有一个虚拟目录,运行正常,后来我又安装了TOMCAT4,在TOMCAT中设置 同样的虚拟目录,运行却发现下面的错误,怎么说是期望类或接口的声明,什么意思呢: org.apache.jasper.JasperException: Unable to compile c...
本来在TOMCAT3中有一个虚拟目录,运行正常,后来我又安装了TOMCAT4,在TOMCAT中设置
同样的虚拟目录,运行却发现下面的错误,怎么说是期望类或接口的声明,什么意思呢:
org.apache.jasper.JasperException: Unable to compile class for JSP
C:Tomcat 4worklocalhostpdmindex$jsp.java:12: Class or interface declaration expected.
import javax.servlet.*;
^
An error occured between lines: 26 and 27 in the jsp file: /index.jsp
Generated servlet error:
C:Tomcat 4worklocalhostpdmindex$jsp.java:18: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.index$jsp not found.
public class index$jsp extends HttpJspBase {
^
2 errors
希望高手指点!谢谢!
同样的虚拟目录,运行却发现下面的错误,怎么说是期望类或接口的声明,什么意思呢:
org.apache.jasper.JasperException: Unable to compile class for JSP
C:Tomcat 4worklocalhostpdmindex$jsp.java:12: Class or interface declaration expected.
import javax.servlet.*;
^
An error occured between lines: 26 and 27 in the jsp file: /index.jsp
Generated servlet error:
C:Tomcat 4worklocalhostpdmindex$jsp.java:18: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.index$jsp not found.
public class index$jsp extends HttpJspBase {
^
2 errors
希望高手指点!谢谢!
|
没有classpath指定classes位置