users@glassfish.java.net

Re: session persistence on gf3

From: <glassfish_at_javadesktop.org>
Date: Thu, 01 Jul 2010 23:40:00 PDT

hello,

I can't use Servlet 3. When I get HttpServletRequest from servlet, it doesn't have login/logout method.
In runtime It seems to be an org.apache.catalina.connector.RequestFacade. It has an inner request object which is PwcCoyoteRequest. It doesn't has login/logout method.
In libraries of project contains GF libraries. There is a javax.servlet.jar in this list.

The META.INF of this jar say:
Export-Package: javax.servlet;uses:="javax.servlet.annotation,javax.se
 rvlet.descriptor";version="3.0",javax.servlet.descriptor;version="3.0
 ",javax.servlet.annotation;uses:="javax.servlet";version="3.0",javax.
 servlet.http;uses:="javax.servlet";version="3.0"
Tool: Bnd-0.0.357
Bundle-Name: javax.servlet API v.3.0
Bundle-Vendor: GlassFish Community
Bundle-Version: 3.0.1
Bnd-LastModified: 1276033246103

my glassfish is 3.01 build 22 in Linux.

When gf is starting it prints:
Welcome to Felix
================
INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
INFO: Starting Grizzly Framework 1.9.18-o - Fri Jul 02 07:15:26 CEST 2010
INFO: Grizzly Framework 1.9.18-o started in: 143ms listening on port 8080
INFO: Grizzly Framework 1.9.18-o started in: 105ms listening on port 4848
INFO: Grizzly Framework 1.9.18-o started in: 111ms listening on port 8181
INFO: Grizzly Framework 1.9.18-o started in: 57ms listening on port 3700
INFO: Starting Grizzly Framework 1.9.18-o - Fri Jul 02 07:15:26 CEST 2010
INFO: Grizzly Framework 1.9.18-o started in: 52ms listening on port 7676
INFO: The Admin Console is already installed, but not yet loaded.

All of libraries which I use are:

- gf-security.jar (for ProgrammaticLogin, it doesn't has javax.servlet.*)
- gwt-servlet.jar it doesn't has javax.servlet.*
- gwt-user.jar it has a javax.servlet.HttpServletRequest, but it doesn't packaged to war
- gwt-dev.jar it has a javax.servlet.HttpServletRequest, but it doesn't packaged to war
- jdk1.6 default it doesn't has javax.servlet.*
- Glassfish v3 it has javax.servlet.*

I think gwt-user and gwt-dev doesn't cause this, because they aren't packaging into the war.
Do I need to set anything to force servlet 3?

thx in advance
[Message sent by forum member 'zamek']

http://forums.java.net/jive/thread.jspa?messageID=476608