Seam组件创建失败,请帮忙看看哪里错了!
Seam组件代码如下:
import java.util.LinkedHashMap;import java.util.Map;import javax.ejb.Stateless;import org.jboss.seam.ScopeType;import org.jboss.seam.annotations.Create;import org.jboss.seam.annotations.Name;import org.jboss.seam.annotations.Scope;@Stateless@Name("roleSet")@Scope(ScopeType.APPLICATION)public class RoleSetBean implements RoleSet { private final String[] roles = { "系统管理员", "财务", "出纳", "总经理", "项目经理" }; private Map<String, String> roleItems = new LinkedHashMap<String, String>(); @Create public void loadRoleItems() { roleItems.clear(); for (int i = 0; i < roles.length; i++) { roleItems.put(roles[i], roles[i]); } } public Map<String, String> getRoleItems() { return roleItems; }}