在运行java中HttpSessionListener监听器时,运行报错:严重: StandardWrapper.Throwablecom.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.以下是监听器程序:package Listener1;
import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
@WebListener
public class HSL implements HttpSessionListener {
private int ub;
@Override
public void sessionCreated(HttpSessionEvent se) {
ub++;
se.getSession().getServletContext().setAttribute("ub", ub);
}
@Override
public void sessionDestroyed(HttpSessionEvent se) {
ub--;
se.getSession().getServletContext().setAttribute("ub", ub);
}
}
求大神指点哪里错误!!!!!非常感谢!!!!
添加回答
举报
0/150
提交
取消