第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

JS中HttpSessionListener

JS中HttpSessionListener

黃森h(huán)uang 2016-11-22 11:08:55
信息:?Scanning?for?root?resource?and?provider?classes?in?the?Web?app?resource?paths: ??/WEB-INF/lib ??/WEB-INF/classes 十一月?22,?2016?11:02:11?上午?com.sun.jersey.server.impl.application.WebApplicationImpl?_initiate 信息:?Initiating?Jersey?application,?version?'Jersey:?1.4?09/11/2010?10:30?PM' 十一月?22,?2016?11:02:12?上午?com.sun.jersey.server.impl.application.RootResourceUriRules?<init> 嚴(yán)重:?The?ResourceConfig?instance?does?not?contain?any?root?resource?classes. 十一月?22,?2016?11:02:12?上午?org.apache.catalina.core.ApplicationContext?log 嚴(yán)重:?StandardWrapper.Throwable com.sun.jersey.api.container.ContainerException:?The?ResourceConfig?instance?does?not?contain?any?root?resource?classes. 下面是jsp文件: <%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%><!--<%@ page import="Listener_session.MyHttpsessionListener" %>--><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>? <head>? ? <base href="<%=basePath%>">? ? <title>My JSP 'index.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> ? ? <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> -->? </head>? <body>? ? <h1>這是項(xiàng)目統(tǒng)計(jì)在線人數(shù)</h1>? ? <hr>? ? 在線人數(shù):${ub }? </body></html>代碼錯(cuò)誤報(bào)告:com.sun.jersey.api.container.ContainerException:?The?ResourceConfig?instance?does?not?contain?any?root?resource?classes. 求大神指點(diǎn)怎么回事? 下面是監(jiān)聽器: 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); } }
查看完整描述

3 回答

?
小草1434

TA貢獻(xiàn)106條經(jīng)驗(yàn) 獲得超23個(gè)贊

配置文件xml沒有按照層級(jí)一級(jí)一級(jí)來(lái),比如第一個(gè)標(biāo)簽<configutation>沒有

查看完整回答
反對(duì) 回復(fù) 2016-11-22
  • 黃森h(huán)uang
    黃森h(huán)uang
    求大神指點(diǎn)更具體一點(diǎn)信息 下面是Web.xml配置信息,求大神指點(diǎn)哪里錯(cuò)誤 <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> <display-name>Listener統(tǒng)計(jì)renshu</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> <login-config> <auth-method>BASIC</auth-method> </login-config> <listener> <listener-class>listener.HSL</listener-class> </listener> </web-app>
  • 黃森h(huán)uang
    黃森h(huán)uang
    <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> <display-name>Listener統(tǒng)計(jì)renshu</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> <login-config> <auth-method>BASIC</auth-method> </login-config> <listener> <listener-class>listener.HSL</listener-class> </listener> </web-app>
  • 3 回答
  • 1 關(guān)注
  • 1905 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)