下面的是webwork 里面对应的loginAction 中的execute 的内容:Session session = EmployeeUtil.currentSession();
Query query = session.createQuery("select at from EMPLOYEE as at where at.id = :id");
query.setString("id", this.loginID);for (Iterator it = query.iterate(); it.hasNext();) {
    EMPLOYEE em = (EMPLOYEE)it.next();
    if( em.getPassword().equals(this.loginPassword ))
    {   
    return SUCCESS;
    }
}下面是EmployeeUtil的代码:
public class EmployeeUtil {

private static final SessionFactory sessionFactory;

static {
try {
sessionFactory = new
Configuration().configure().buildSessionFactory();
} catch (HibernateException ex) {
throw new RuntimeException("Exception building SessionFactory: " + ex.getMessage(), ex);
}
}

public static final ThreadLocal session = new ThreadLocal();


public static Session currentSession() throws HibernateException
{
Session s = (Session) session.get();
//  Open a new Session, if this Thread has none yet
if (s == null) {
s = sessionFactory.openSession();
session.set(s);
}
return s;
}


public static void closeSession() throws HibernateException {
Session s = (Session) session.get();
session.set(null);
if (s != null)
s.close();
}

 
}我在currentSession()第一行添加断点,程序没有执行到断点,就down了. 
  eclipse中错误讯息:WebappClassLoader: Lifecycle error : CL stopped
  jsp叶面上显示servlet exception.