Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 16014D0C1 for ; Wed, 20 Jun 2012 07:14:35 +0000 (UTC) Received: (qmail 46555 invoked by uid 500); 20 Jun 2012 07:14:31 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 46346 invoked by uid 500); 20 Jun 2012 07:14:31 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 46292 invoked by uid 99); 20 Jun 2012 07:14:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2012 07:14:29 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of knst.kolinko@gmail.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pb0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2012 07:14:21 +0000 Received: by pbbro12 with SMTP id ro12so274498pbb.18 for ; Wed, 20 Jun 2012 00:14:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=SH7bHYegHE2ag5CHOygkSXZSNxPMZYfV5IG5tu6qm8U=; b=DPIUfNETY8jRXZBIGSHcKaBT6Ai/xL+dbbthgXfHN+Lxtfhw/QsifoCmb8EtSsdMz5 +uAokTUzSjxDwQiH8ZL4Qz79EQtnUwx3vwUti7YBYaBp4asUHZ7wJPx0JTifGnUljy5X zHqyMl3LZ57qF5Luu7EhoaYuRu42rZVQXl2XWtfV0Gg3mOww+sD7QFizhkPuIqoABFLj OPGqDAa0Y6kT3OmZ5/5PfkJ+K0wvQsYFb+qjSAi7LCpIy0wFqzj7fAY6e9F2yXJuodxl 0CsvF9tJkvxPgrmc/nq7Tc6XaN6ms1hkVyb+jWj4bZDVswBuBcS0RDuyeYLw4wGreZ40 RZ5g== MIME-Version: 1.0 Received: by 10.68.220.163 with SMTP id px3mr57809142pbc.167.1340176440128; Wed, 20 Jun 2012 00:14:00 -0700 (PDT) Received: by 10.68.46.36 with HTTP; Wed, 20 Jun 2012 00:14:00 -0700 (PDT) In-Reply-To: References: <4FE02DBE.7090301@gmail.com> <3D15888AD279410CA268E7EBABC35140@HP6910P> <0CB6270C811F4E4B9602BD114C4AB979@HP6910P> Date: Wed, 20 Jun 2012 11:14:00 +0400 Message-ID: Subject: Re: Apache tomcat (7.0.27) is not loading the user and role class for JAASRealm From: Konstantin Kolinko To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 2012/6/20 javed Ansari : > It seems I am invalidating another servlet than the one which authenticated > the webapp. This confusion is because I am using Google Web Toolkit > application template which not just a plain servlet application. > I am now trying to invalidate all the sessions by calling > HttpSession.logout(). I can see this API in a servlet book but in Eclipse > it is not able to find out even with the latest JDK 1.7. > May be I need to post this onto some Java forum... Servlet API is not part of Java SE, so JDK version does not matter much. To use Servlet 3.0 methods your app must be a "Servlet 3.0" web application (in your web.xml and in your Eclipse Project settings) and must use jars from Tomcat 7. (in your Java Build Path in your Eclipse Project settings) E.g. to create a new project (using Eclipse for Java EE Developers) menu File > New > Project... -> Web > Dynamic Web Project -> and the "New Dynamic Web Project" dialog needs the following values Target runtime = Tomcat 7, Dynamic web module version = 3.0. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org