Re: Session across Realm and Servlet

2011-10-14 Thread sailendra karthik
On 10/15/11, Chema wrote: >> >> So how it is possible to access HttpRequestServlet and set some >> session attribute in my Custom Realm which extends RealmBase. >> > > > I guess you can't do it that > > >> >> Or else it should be a different Procedure. >> > > > You can try by using filters or try

Re: Session across Realm and Servlet

2011-10-14 Thread Chema
> > So how it is possible to access HttpRequestServlet and set some > session attribute in my Custom Realm which extends RealmBase. > I guess you can't do it that > > Or else it should be a different Procedure. > You can try by using filters or try Spring Security > > Waiting for some clue

Re: Configuration for both protected and public URLs in a web application

2011-10-14 Thread sailendra karthik
On 10/15/11, Yogesh Shankarappa wrote: > Hello All, > > >I am trying to configure web.xml to have both protected and > public URLs but still the app > authenticates the public URLs. Protected URLs works fine. I would greatly > appreciate if you can > help to configure the whole applica

Session across Realm and Servlet

2011-10-14 Thread sailendra karthik
I need to maintain a session object between Realm and Servlet. I have written a CustomRealm and every thing working fine and now it is required to send an object to servlets (possibly by HttpRequestServlet ) But i know/think Servlet is not yet Initiated. So how it is possible to access HttpReques

Configuration for both protected and public URLs in a web application

2011-10-14 Thread Yogesh Shankarappa
Hello All, I am trying to configure web.xml to have both protected and public URLs but still the app authenticates the public URLs. Protected URLs works fine. I would greatly appreciate if you can help to configure the whole application has protected except for few URLs which should be

Re: redirection error due to context path after JAAS authentication with mod_proxy

2011-10-14 Thread Woonsan Ko
> >From: André Warnier >To: Tomcat Users List >Sent: Wednesday, October 12, 2011 11:52 AM >Subject: Re: redirection error due to context path after JAAS authentication >with mod_proxy > >Woonsan Ko wrote: >> Hi, >> >> I have a reverse proxy configuration lik

Re: Help with mixed SSL and non-SSL pages in Tomcat 7.0

2011-10-14 Thread Mark Thomas
On 14/10/2011 21:09, Janet Preston wrote: > Hi, > > I have a web site with a login page that has to be accessed using SSL so > that the password is not sent as clear text. The rest of the site is > non-SSL. So the password is worth protecting but the session ID is not? The session ID is as good

Help with mixed SSL and non-SSL pages in Tomcat 7.0

2011-10-14 Thread Janet Preston
Hi, I have a web site with a login page that has to be accessed using SSL so that the password is not sent as clear text. The rest of the site is non-SSL. My configuration worked with this combination: Tomcat 5.5.27; Apache 2.0.58; JAVA 1.5.0_13 and, mod_jk (I'm not sure what version of mod_jk

Re: Disabling RNG initialization

2011-10-14 Thread Scott Van Wart
We use this during testing: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/startup/FastNonSecureRandom.java?view=annotate Once you have built this and added it to the lib directory, you need to configure the Manager to use it (in conf/context.xml). Excellent, I'll give tha

Re: Cannot retrieve client cert when requesting javax.net.ssl.peer_certificates

2011-10-14 Thread Bryant Panyarachun
Right, I have only been able to find a reference to it in the 2.1 servlet specification as well. On Fri, Oct 14, 2011 at 12:27 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Mark Thomas [mailto:ma...@apache.org] > > Subject: Re: Cannot retrieve client cert when requesting

RE: Cannot retrieve client cert when requesting javax.net.ssl.peer_certificates

2011-10-14 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:ma...@apache.org] > Subject: Re: Cannot retrieve client cert when requesting > javax.net.ssl.peer_certificates > I don't see that parameter anywhere in the servlet specification. It was in the 2.1 spec for ServletRequest, but seems to have disappeared somewhere alon

Re: Disabling RNG initialization

2011-10-14 Thread Mark Thomas
On 14/10/2011 19:48, Scott Van Wart wrote: > I tend to start/stop Tomcat a fair amount during the day through Eclipse > for my development. I don't use SSL or sessions. Here's what I've been > getting during startup: > > INFO: Creation of SecureRandom instance for session ID generation > usi

Disabling RNG initialization

2011-10-14 Thread Scott Van Wart
I tend to start/stop Tomcat a fair amount during the day through Eclipse for my development. I don't use SSL or sessions. Here's what I've been getting during startup: INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [17,053] milliseconds. Usually

Re: Cannot retrieve client cert when requesting javax.net.ssl.peer_certificates

2011-10-14 Thread Mark Thomas
On 14/10/2011 18:47, Bryant Panyarachun wrote: > Hi all, > > I am upgrading from Tomcat 6.0.18 to 7.0.21 (32-bit Win zip). > > Previously, when requesting a client certificate I would use: > > X509Certificate[] certs = > (X509Certificate[])req.getAttribute("javax.net.ssl.peer_certificates"); >

Cannot retrieve client cert when requesting javax.net.ssl.peer_certificates

2011-10-14 Thread Bryant Panyarachun
Hi all, I am upgrading from Tomcat 6.0.18 to 7.0.21 (32-bit Win zip). Previously, when requesting a client certificate I would use: X509Certificate[] certs = (X509Certificate[])req.getAttribute("javax.net.ssl.peer_certificates"); However, after upgrading to 7.0.21 this no longer works. Instead

Classloaders in catalina.properties

2011-10-14 Thread spring
Hi, in catalina.properties I can define paths for common, server and shared loaders. Where do I find them here in the docs?: http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html Here we have only system and common... Thank you --

Problem in spring-tomcat project

2011-10-14 Thread Anisha Karki
I am following the tutorial: http://static.springsource.org/docs/Spring-MVC-step-by-step/part2.html on developing and configuring the views and the controller. But i am getting following error: org.apache.jasper.JasperException: /index.jsp (line: 1, column: 1) The absolute uri: http://java.sun.c

Re: Configure tomcat using init.d

2011-10-14 Thread Mark Thomas
On 14/10/2011 16:15, Mark H. Wood wrote: > This I can agree with. They don't allow application managers > access to Tomcat's config., but anyone can drop stuff into > /etc/init.d, whence it will run as root? Really? Something is not > right here. Is it just me, or is the simple privilege escala

Re: Configure tomcat using init.d

2011-10-14 Thread Mark H. Wood
On Fri, Oct 14, 2011 at 07:33:28AM -0700, Hassan Schroeder wrote: > On Fri, Oct 14, 2011 at 1:52 AM, ettoregia wrote: > > My system: Linux, the version I'don't know how to realize, since I've got > > just an ssh connection and typing some command I've not been able to > > discover it, maybe you ca

Re: Configure tomcat using init.d

2011-10-14 Thread André Warnier
ettoregia wrote: Hi guys, hope you're all doing well. Today I'm facing a new challenge, at least for myself. My system: Linux, the version I'don't know how to realize, since I've got just an ssh connection and typing some command I've not been able to discover it, maybe you can help me out on

Re: Using the Apache Tomcat 6.0 SSL Configuration HOW-TO guide, but it is not working

2011-10-14 Thread Konstantin Kolinko
2011/10/14 ML Harmon : > > I don't even know enough about Tomcat to know how to troubleshoot this, am > very new to this. > 1) If you know where your server.xml is, you should know where your log files are as well. There is logs folder that is sibling to conf. 2) There are two different implemen

Using the Apache Tomcat 6.0 SSL Configuration HOW-TO guide, but it is not working

2011-10-14 Thread ML Harmon
Using this link, to setup my Apache Tomcat 6.0 webserver with SSL, but I can't get it to work. I am very new to Apache Tomcat 6.0. Infact this is the first time I have ever worked with it. http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html Our Apache Tomcat 6.0 is currently running on a Wind

Re: Configure tomcat using init.d

2011-10-14 Thread Hassan Schroeder
On Fri, Oct 14, 2011 at 1:52 AM, ettoregia wrote: > My system: Linux, the version I'don't know how to realize, since I've got > just an ssh connection and typing some command I've not been able to > discover it, maybe you can help me out on this as well. `cat /proc/version` should give you somet

Re: async per servlet 3.0

2011-10-14 Thread Konstantin Kolinko
2011/10/14 Mete BALCI : > I found the problem using new Exception().printStackTrace() > > The problem was PsiProbe application that I am using to monitor Tomcat. The > valve it is using to instrument tomcat is probably not async aware. After > undeploying it, async support works as expected. I will

Re: Tomcat 7 won't run as Windows service

2011-10-14 Thread Konstantin Kolinko
2011/10/14 David Rush : > I've been running Tomcat 6.0.18 for a long time, and am now trying to > upgrade to 7.0.22 (64 bit .zip download). > > I can start Tomcat 7 with startup.bat and it's working fine. > > The script to install it as a service worked without complaint, and the > service is there

Tomcat 7 won't run as Windows service

2011-10-14 Thread David Rush
I've been running Tomcat 6.0.18 for a long time, and am now trying to upgrade to 7.0.22 (64 bit .zip download). I can start Tomcat 7 with startup.bat and it's working fine. The script to install it as a service worked without complaint, and the service is there. However when I try to start i

Re: async per servlet 3.0

2011-10-14 Thread Mete BALCI
I found the problem using new Exception().printStackTrace() The problem was PsiProbe application that I am using to monitor Tomcat. The valve it is using to instrument tomcat is probably not async aware. After undeploying it, async support works as expected. I will notify PsiProbe team about the i

Re: async per servlet 3.0

2011-10-14 Thread Konstantin Kolinko
2011/10/14 Mete BALCI : > web.xml root is: > 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"> > > I tried mapping

Re: async per servlet 3.0

2011-10-14 Thread Mete BALCI
I want to clarify the situation with a simpler example. I have created a war with 2 servlets, without a web.xml. So war contains only 2 classes (for each servlet). One servlet is annotated as: @WebServlet(value = "/async", asyncSupported = true) Other is annotated as: @WebServlet(value = "/sync"

Re: async per servlet 3.0

2011-10-14 Thread Mete BALCI
web.xml root is: 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"> I tried mapping both with annotation and web.xml. A

Re: async per servlet 3.0

2011-10-14 Thread Konstantin Kolinko
2011/10/14 Mete BALCI : > Hello, > > I am trying to use Servlet 3 async support in Tomcat 7.0.21. I tried setting > annotation asyncSupported=true and writing this to web.xml, tried using apr > and nio, still getting false from isAsyncSupported, what am I missing ? > > Mete > > PS: There is no filt

async per servlet 3.0

2011-10-14 Thread Mete BALCI
Hello, I am trying to use Servlet 3 async support in Tomcat 7.0.21. I tried setting annotation asyncSupported=true and writing this to web.xml, tried using apr and nio, still getting false from isAsyncSupported, what am I missing ? Mete PS: There is no filter, just a single servlet overriding do

Configure tomcat using init.d

2011-10-14 Thread ettoregia
Hi guys, hope you're all doing well. Today I'm facing a new challenge, at least for myself. My system: Linux, the version I'don't know how to realize, since I've got just an ssh connection and typing some command I've not been able to discover it, maybe you can help me out on this as well. Tom