org.apache.jasper.JasperException: Unable to compile class for JSPGenerated servlet error:
Only a type can be imported. com.test.QuartzTest resolves to a packageAn error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
QuartzTest cannot be resolved or is not a typeAn error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
QuartzTest cannot be resolved or is not a type
Only a type can be imported. com.test.QuartzTest resolves to a packageAn error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
QuartzTest cannot be resolved or is not a typeAn error occurred at line: 11 in the jsp file: /index.jsp
Generated servlet error:
QuartzTest cannot be resolved or is not a type
解决方案 »
- 朋友们帮忙看一下,把一个表的普通字段作为另一个表的外键(hibernate)?
- 怎样修改<s:iterator中的数据
- 关于临时文件
- ${1/3}怎么限制小数点的位数
- 在myeclipse中用xfire开发的客户端报错请大虾们给看看!
- Eclipse Europa 无法完成更新 SPRING IDE
- hibernate中session.createQuery取记录列表,但得到的却是乱码(?号),怎么解决?
- jms的问题,connection not found
- 明天面试,给个意见先
- 天啊,是不是xml文件应该用什么工具来编写啊,用记事本打开看起来完全一样的内存,一个可以找到里面的ejb定义,另外一个就死活找不到了,
- IIS和tomcat整合的问题
- struts2如何将一个action中的验证信息传到另一个action中
】
不能编译 肯定写错了!
不要少了括号
我还是把页面贴出来吧,希望能有帮助
index.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><%@page import="com.test.QuartzTest"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>ok</title>
</head>
<body>
<%
QuartzTest test = new QuartzTest();
test.startSchedule();
%>
</body>
</html>
我还是把页面贴出来吧,希望能有帮助
index.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><%@page import="com.test.QuartzTest"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>ok</title>
</head>
<body>
<%
QuartzTest test = new QuartzTest();
test.startSchedule();
%>
</body>
</html>
放在
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
之前去试试
java.lang.NoClassDefFoundError: org/quartz/Trigger
重新配置一次吧
你上面这个应该是少了jar包了
quartz.jar包放到WEB-INF/lib下