servlet

Apache CXF and servlet-mapping

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to learn some basics of Apache CXF and generally about servlet-mappings. and I have modified the code here: https://subversion.assembla.com/svn/pablo-examples/spring-cxf-example I have configured CXFServlet mapping as below in web.xml <servlet-mapping> <servlet-name>CXFServlet</servlet-name> <url-pattern>/services/*</url-pattern> </servlet-mapping> in the spring xml(webservice-definition-beans.xml) I have generated the service as below <jaxws:endpoint id="helloWorld" implementor="#helloWorldService" address="/services/HelloWorld"

GWT RPC Service not found

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have searched the Web almost for hours, but I didn't find an answer. The Problem is that i want to the test the gwt RPC. So I generate with the Eclipse Plugin a GWT remote Service. But everytime I get the following Failure: "[WARN] No file found for: /kuss_projekt/SpeicherService" I have tryed a lot, but I dont knwo what is the Problem. Thats my Code: web . xml : < web - app > <servlet> < servlet - name > SpeicherService </ servlet - name > < servlet - class > de . fhdo . kuss . server . SpeicherServiceImpl </ servlet - class > <

Spring Context init (java)

匿名 (未验证) 提交于 2019-12-03 09:52:54
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm a beginner with spring and I am having problem with basic context init and I can't find any easy tutorial. So what I want to do is basic dependency injection and I have seen I only have to mark classes as @Componant or @Service and inject them directly within target fiels with @Autowired. For this I need to set properly my spring context (I'll need to build a web service + use JPA so I want to build a webapp) I'm using JDK 1.8, maven 3.2.1 I want to do a basic dependency injection. => I want to inject a storeImpl instance there but this

Servlet 会话

风流意气都作罢 提交于 2019-12-03 09:44:44
在网络的七层模型中,会话层位于传输层之上,它定义如何开始、控制和结束一个会话。七层模式目前仅仅处于理论阶段,但是Web中借鉴了其中的一些思路。在Web中浏览器第一次发送请求到服务器开始直到一方断开为止算作一个会话。HTTP协议本身没有状态,那么Web服务如何知道这次请求是否在一个会话中呢?Web提供了Cookie和Session两种技术。 服务器在第一次收到请求之后,会在HTTP响应头的 Set-Cookie 中,设置Cookie值,浏览器收到响应后,保存这个Cookie在本地。后续再进行请求的时候在HTTP的请求头中设置 Cookie 值,服务器根据此Cookie来识别请求的状态。 Cookie值本身是一个键值对,例如 Cookie: name=value; Servlet 使用Cookie 在Servlet中,使用Cookie的步骤如下: 创建Cookie对象 new Cookie(String name, String value) 发送cookie到浏览器 response.addCookie(Cookie) 获取浏览器中发送过来的cookie request.getCookies() 返回所有Cookie 遍历Cookies 获取所有cookie对象 调用 Cookie.getName() , Cookie.getValue() 获取Cookie中的键和值

Tomcat7 开启CGI,并配置awstats日志监控(转载,并完善内容)

半世苍凉 提交于 2019-12-03 09:30:07
1. 搭建环境 Apache Tomcat 7.x JDK 1.6+ Perl 5.2+ (awstats是使用perl开发的) Linux (自带Perl环境) 2. 修改<Tomcat_HOME>\conf\web.xml配置文件,取消 cgi servlet 和对应的 mapping 注释,让Tomcat支持cgi程序执行: <servlet> <servlet-name>cgi</servlet-name> <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>cgiPathPrefix</param-name> <param-value>WEB-INF/cgi</param-value> </init-param> <init-param> <param-name>passShellEnvironment</param-name> <param-value>true</param-value> </init-param> <load-on-startup>5<

Upgrad to Wildfly 8.2 with error

匿名 (未验证) 提交于 2019-12-03 09:21:58
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I upgraded from Wildfly 8.1 to 8.2. My first JSF request resulted in this error, where this worked before. What is the culprit? Does one need to update any dependencies? JDK 8 required? 16 : 39 : 36 , 127 ERROR [ io . undertow . request ] ( default task - 1 ) L : 80 UT005023 : Exception handling request to / ccms / splitter . xhtml : java . lang . IllegalStateException at com . sun . faces . context . FacesContextImpl . assertNotReleased ( FacesContextImpl . java : 705 ) [ jsf - impl - 2.2 . 8 - jbossorg - 1.jar :] at com . sun .

How to run a class before the initiation of SLF4J - Logback?

匿名 (未验证) 提交于 2019-12-03 09:18:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: As the title says, I want to run a class that will check if a property exists in a directory before the initiation of logback. So what I've tried is I put a listener that will fire at startup before the listener of spring and I've made sure that no Logger is used in this listener. But the Logger still manage to fire before my listeners. Here's my web.xml: <? xml version = "1.0" encoding = "ISO-8859-1" ?> <web-app xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns = "http://java.sun.com/xml/ns/javaee" xsi:schemaLocation =

spring-data-rest-webmvc 2.0.0 - RepositoryRestExporterServlet missing

匿名 (未验证) 提交于 2019-12-03 09:14:57
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to create a REST web service with spring-data-rest-webmvc 2.0.0. I'm following the handbook "Spring in Practice" where you use the version 1.0.0. In this handbook, it define the exporter servlet in web.xml as below: <web-app ...> ... <servlet> <servlet-name>api</servlet-name> <servlet-class>org.springframework.data.rest.webmvc.RepositoryRestExporterServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>api</servlet-name> <url-pattern>/api/*</url-pattern> </servlet-mapping> </web-app

Eclipse RAP 2.0 application won&#039;t start with WebSphere 8.5.5.0

匿名 (未验证) 提交于 2019-12-03 09:10:12
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an Eclipse RAP application. The web.xml is the following: <?xml version="1.0" encoding="UTF-8"?> <web-app 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" version="3.0" id="WebApp"> <session-config> <cookie-config> <http-only>true</http-only> </cookie-config> <tracking-mode>COOKIE</tracking-mode> </session-config> <servlet id="bridge"> <servlet-name>equinoxbridgeservlet</servlet-name>

Atmosphere socket established but no data being received/sent

匿名 (未验证) 提交于 2019-12-03 09:06:55
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am following the Atmosphere tutorial to get a basic chat application setup. Currently when running the javascript, it appears to be able to establish a connection to the server using web sockets. I get the following in the Chrome console: Invoking executeWebSocket core . js : 2298 Using URL : ws : //localhost:8080/web-transport/chat?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=1.1&X-Atmosphere-Transport=websocket&X-Cache-Date=0&Content-Type=application/json core.js:2298 Websocket successfully opened However, when I attempt