已删除的文件中出错

时间:2012-10-19 16:47:52

标签: java tomcat spring-mvc netbeans

我在tomcat的日志窗口中遇到错误(使用带有tomcat 7的netbeans 7.2)。我删除了该文件,但日志仍然指向该文件和行号。

An error occurred at line: 14 in the generated java file
Only a type can be imported. com.mycomp.domain.LoginModel resolves to a package

An error occurred at line: 6 in the jsp file: /WEB-INF/jsp/header.jsp
LoginModel cannot be resolved to a type
3: <div class="header" >
4:     <!--header start here -->
5:     <%
6:         LoginModel loginModel;
7:         loginModel = (LoginModel) request.getSession(false).getAttribute("loginModel");
8:     %>
9:     <div>

删除header.jsp后,我已经清理并构建了很多次但仍然是同样的错误。

1 个答案:

答案 0 :(得分:0)

听起来项目没有自动部署到服务器。您是否检查了部署设置?