Tomcat 6.0.26 64 bits = CPU 100%

2010-09-14 Thread Vincent DELHOMMOIS
Hi everybody, We have several virtual machines on Windows 2008 server with Tomcat 6.0.26 64 bits (JDK 1.6 64 bits). The servers have 6 Go of RAM and we declare 4 Go for the Tomcat. Our application works fine except some days. On these days, the CPU are stuck at 100% and doesn't decrease. Do you hav

Tomcat 6.0.26 64 bits = CPU 100%

2010-09-14 Thread Vincent DELHOMMOIS
Hi everybody, We have several virtual machines on Windows 2008 server with Tomcat 6.0.26 64 bits (JDK 1.6 64 bits). The servers have 6 Go of RAM and we declare 4 Go for the Tomcat. Our application works fine except some days. On these days, the CPU are stuck at 100% and doesn't decrease. Do you hav

j_security_check and JAAS => GOOD or BAD ?

2006-02-28 Thread Vincent Delhommois
Hello, When I look all the JAAS example, I see that you have to use the following code to use the LoginModule, etc... LoginContext lc = new LoginContext("MyExample"); try { lc.login(); } catch (LoginException) { // Authentication failed. } The "MyExample" is the name th

[JAAS] HTTP 400 : Référence directe à la f orm de connexion (form login page) invalide

2006-02-27 Thread Vincent Delhommois
Hello, I implements successfully a JAAS authentification but an error sometimes appends : The process is : First I logon the application ssuccessfully (JAAS OK => LoginModule return true) => My application JSP page is weel displayed Then I disconnect (session.invalidate()) Then I try to reconnect

2 sessions different instead of one wished !!!

2006-02-23 Thread Vincent Delhommois
Hello, I use JAAS and filter (security-filter) of Tomcat with the j_security_check. So here is the context : - the user try to access to the ActionServlet?action=welcome As the user is not authenticates, it loads the login.jsp page : - login.jsp submit the username and password through the j_secur

Re: JAAS : HTTP 400  Invalid direct reference to form login ... (JAAS + Filter + j_security_check)

2006-02-23 Thread Vincent Delhommois
AS : HTTP 400 Invalid direct reference to form login ... (JAAS > + Filter + j_security_check) > > Login module should return false if not authenticated. If you need to > store messages for the user, i'll suggest you pass them another way > (like by using a ThreadLocal pattern) >

JAAS : HTTP 400 Invalid direct reference to form login ... (JAAS + Filter + j_security_check)

2006-02-23 Thread Vincent Delhommois
Hello, I implements a solution with JAAS and userfilter on Tomcat. the loginmodule return always 'true' eventhough the password is wrong. I do that to be able to return detail error messages to the login.jsp. (I use the role principal to display messages). The filter is used to dispatch to the

JAAS /Tomcat : Which Realm should I use with my custom LoginModule ?

2006-02-16 Thread Vincent Delhommois
Hello, I had a problem implementing JAAS with Tomcat and I found my error, I was specifying my custum loginModule in the (I want to create a index.jsp page with 2 fields (login, pwd) and use the j_security_check). Thanks again

RE: LoginModule JAAS and Tomcat (initialize method is not called)

2006-02-15 Thread Vincent Delhommois
conf file... > Message du 15/02/06 à 19h29 > De : "Caldarale, Charles R" > A : "Tomcat Users List" , [EMAIL PROTECTED] > Copie à : > Objet : RE: LoginModule JAAS and Tomcat (initialize method is not called) > > > From: Vincent Delhommois [mailto:[E

Re: LoginModule JAAS and Tomcat (initialize method is not called)

2006-02-15 Thread Vincent Delhommois
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > Message du 15/02/06 à 17h51 > De : "Vincent Delhommois" > A : users@tomcat.apache.org > Copie à : > Objet : LoginModule JAAS and Tomcat

LoginModule JAAS and Tomcat (initialize method is not called)

2006-02-15 Thread Vincent Delhommois
Hello, I developped my own LoginModule which is very simple for the moment. I wanted to know if I have to create the JAAS configuration file ? If yes where you I locate it ? When I start Tomcat, the constructor of the LoginModule is well called but Tomcat failed before the initialize method. Tom