首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

ssh下报错解决方案

2012-02-11 
ssh下报错package actionimport java.util.ArrayListimport java.util.Listimport javax.servlet.http.

ssh下报错
package action;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;
import org.springframework.web.struts.ActionSupport;

import service.AlbumService;
import entity.Album;
import entity.Kind;

public class AlbumAction extends ActionSupport {
private static final long serialVersionUID = 1L;
private AlbumService albumService;
private List<Kind> allKind = new ArrayList<Kind>();
private List<Album> allAlbum = new ArrayList<Album>();

AlbumAction 报错 The hierarchy of the type AlbumAction is inconsistent
ActionSupport 报错 The type org.apache.struts.action.Action cannot be resolved. It is indirectly referenced from required .class files
是不是还有包没有导入 用MYECLIPSE中自动导入包的 struts 2.1 hibernate 3.3 spring 3.0


[解决办法]
类型AlbumAction的层次结构是不一致的

你在你项目的地址看一下包是否齐全

热点排行