Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to use HttpSessionListener?
How to use HttpSessionListener? [message #1736452] Wed, 29 June 2016 12:56 Go to next message
Cho HyunJong is currently offline Cho HyunJongFriend
Messages: 103
Registered: July 2009
Location: korea
Senior Member

How to use HttpSessionListener?
How to make development environment?

0. My environment
- Eclipse RAP (rap-3.1.0-N-20150914-1435)
- Java 1.8

1. create class
public class HttpSessionCollectorListener implements HttpSessionListener {
.....
}

2. setting class
RWT.getUISession().getHttpSession().getServletContext().addListener(new HttpSessionCollectorListener());

but rise the error.
2016 Jun 29 21:54:21, 110 ERROR - LoginDialog : okPressed login exception 
java.lang.UnsupportedOperationException
	at org.eclipse.equinox.http.servlet.internal.servlet.ServletContextAdaptor.addListener(ServletContextAdaptor.java:275)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.equinox.http.servlet.internal.servlet.ServletContextAdaptor.invoke(ServletContextAdaptor.java:343)
	at org.eclipse.equinox.http.servlet.internal.servlet.ServletContextAdaptor$5.invoke(ServletContextAdaptor.java:360)
	at com.sun.proxy.$Proxy0.addListener(Unknown Source)

Re: How to use HttpSessionListener? [message #1736663 is a reply to message #1736452] Fri, 01 July 2016 01:18 Go to previous message
Cho HyunJong is currently offline Cho HyunJongFriend
Messages: 103
Registered: July 2009
Location: korea
Senior Member

Please.
any idea?
Previous Topic:Can not run WAR-file with RAP Demo
Goto Forum:
  


Current Time: Sat Oct 23 12:25:04 GMT 2021

Powered by FUDForum. Page generated in 0.01485 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top