Re: [Tomcat 5.5.20] How to use JAASRealm ?

2007-03-07 Thread olivier nouguier
the jaas.conf 4: Configure the context / web.xml file On 3/7/07, olivier nouguier <[EMAIL PROTECTED]> wrote: hi, I can't figure out why you need to extend a JaasRealm ? This class "lives" in the server classloader, therein it cannot be and should definitivly never be acce

Re: [Tomcat 5.5.20] How to use JAASRealm ?

2007-03-07 Thread olivier nouguier
hi, I can't figure out why you need to extend a JaasRealm ? This class "lives" in the server classloader, therein it cannot be and should definitivly never be accessed from your webapp. I think that you missunderstand the way to use the JaasRealm. Please look at my previous post (today) and tell m

Re: how to set role for JAASRealm

2007-03-07 Thread olivier nouguier
Hi First of all, are you sure a JDBCRealm or a DataSourceRealm do not fill your needs ? Secondly, AFAIK when providing a Jaas module to the JaasRealm you just need to provide the authentication method (LoginModule inteface). You don't have to manipulate the loginContext, it is the JaasRealm job .

Re: DB2/Tomcat Connection pooling problem

2007-02-04 Thread olivier nouguier
Hi Are you you sure that "select 1" is a valid query under DB2? It is under mysql but it is not under DB2/AS400 ! HIH On 2/2/07, Pete <[EMAIL PROTECTED]> wrote: Thanks Tim. More information to my intial question: -I have also installed Websphere App Server on this machine and configured t

Re: JNDI example for connecting to a DB2 on OS400

2007-01-11 Thread olivier nouguier
A query that *always* return a row ... On 1/11/07, Greg Foulks <[EMAIL PROTECTED]> wrote: then what would be a vaild validation query? On 1/11/07, olivier nouguier <[EMAIL PROTECTED]> wrote: > Hi, > Nothing more than for another database. > But: > - be

Re: JNDI example for connecting to a DB2 on OS400

2007-01-11 Thread olivier nouguier
Hi, Nothing more than for another database. But: - be carrefull to put a valid validationQuery ( eg: select 1; is not supported by DB2/OS400 )! the URL and drivers should look like: url jdbc:as400://yourServerName;libraries=YOURSLIB1,YOURSLIB2;prompt=false;errors=full;trace=false

Re: wrong version of Tomcat

2007-01-02 Thread olivier nouguier
In the web.xml: The servlet api must be set with something like: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> Instead of "old" DTD. On 1/2/07, Leon v

Re: Desperate: Tomcat 5.5. j_security_check

2006-12-21 Thread olivier nouguier
j_username should give you something better ;-) On 12/21/06, Gregor Schneider <[EMAIL PROTECTED]> wrote: Hi list, we're really, really deperate here. We have developed a web-app on Debian Edge with Tomcat 5.5.17 using Form-based Authentication with a JDBC-realm. Database is a MySQL 4.1.11

Re: avoiding multiple form submission

2006-12-20 Thread olivier nouguier
1) How do you submit your forms ... a few years ago I had a guy who show my that "issue", in fact he submitted the form "oncheck" on an input image ... 2a) There is a simple server side pattern two avoid double submit:(could not find the www reference). * jsp put a token in the session (scriplet,

Re: My webapp is oddly asking for user and password

2006-12-17 Thread olivier nouguier
hi http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html and http://java.sun.com/products/servlet/download.html On 12/17/06, Dani <[EMAIL PROTECTED]> wrote: Hi. I have my webapp in c:\tomcat\webapps\rms\ and when I access http://localhost/rms/ Tomcat asks me for a user and a password. Eve

Re: how do I restrict access to folder?

2006-12-12 Thread olivier nouguier
hi Just put then in /WEB-INF/templates ... On 12/12/06, Sköldheimer Fredrik <[EMAIL PROTECTED]> wrote: Hello I'm new to the tomcat servers (have experience from apache webserver). I have a project coded in Java/JSF/Facelets and I need to restrict access to the folder that contains the xhtml-t

Re: Character encoding

2006-12-12 Thread olivier nouguier
export CATALINA_OPTS="-Dfile.encoding=UTF-8" On 12/12/06, Mester József <[EMAIL PROTECTED]> wrote: Hi I have some problem with character encoding. I have found a page ( http://junlu.com/msg/1132.html ) and on this page there is a direction: 2. In the Catalina.bat (windows) catalina.sh (linux)

Re: Deploying shared .jar's

2006-12-11 Thread olivier nouguier
hi, By http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html Shared is the parent classloader of webapp. AFAIK the consequence of this in that a class loaded from webapp classloader can see other classes (whenever they come from shared, webapp or common), but the reverse is not true, a

Re: Problem with connectivity of web application with siebel(that sits behind firewall)

2006-12-02 Thread olivier nouguier
hi, http://tomcat.apache.org/connectors-doc/faq.html http://tomcat.apache.org/connectors-doc/howto/workers.html Look for "keep alive" On 12/1/06, Manish Kumar Singh <[EMAIL PROTECTED]> wrote: Hi All, We have a web application that communicates with siebel server 7.5.3. There is a firewall be

Re: virtual mapping on Tomcat 5.5

2006-11-30 Thread olivier nouguier
hi, A: put apache (httpd) in front of tomcat ==> quite easy. B: dirty read/stream hack ==> don't know what to say :-) On 11/29/06, Jennifer Lu <[EMAIL PROTECTED]> wrote: Hi David, I think I have joined the list as I have received the confirmation on this? Probably this is the first email I se

Re: Realms

2006-11-25 Thread olivier nouguier
ser will be redirected (internaly aka forward (tomcat > 5)) to the login page! sam olivier nouguier <[EMAIL PROTECTED]> wrote: hi, You are using the FORM authentication scheme! This scheme imply that: 1: a secured resource is accessed. 2: login (error-page) is given 3: login occures 4:

Re: Realms

2006-11-24 Thread olivier nouguier
hi, You are using the FORM authentication scheme! This scheme imply that: 1: a secured resource is accessed. 2: login (error-page) is given 3: login occures 4: secured resource (1) is given (with a GET !) 408 error code may occurs if: a - login page is access directly ( starting at stage 2). b

Re: Tomcat5: Losing JDBCRealm session starting application with own session

2006-11-23 Thread olivier nouguier
hi What do you mean by "start the application" ? Restart tomcat ? On 11/23/06, Dipl.-Ing. Holger Evers | Cybay New Media <[EMAIL PROTECTED]> wrote: Hello, i've set up my Tomcat with form based authentication and a JDBCRealm (besides i use an AJP-Connector to attach it to Apache1.3). Everything

Re: Tomcat & Log4j

2006-11-22 Thread olivier nouguier
Hi pierre, Simply what is your question ? Did you try wtp ? On 11/22/06, Pierre Goupil <[EMAIL PROTECTED]> wrote: Hi all ! I once had a Tomcat 5.5 and an Eclipse 3.2 that where running just fine and then... the HDD crashed... I suffered no data lost but since then, I can't start Tomcat anymore

Re: profiling a webapp

2006-11-22 Thread olivier nouguier
wtp && tptp? (www.eclipse.org/) On 11/22/06, asaf.lahav <[EMAIL PROTECTED]> wrote: Can anyone recommend a good (and FREE) java profiling tool that can be used to profile a webapp running under Tomcat 5.5? Thanks in advance, Asaf -- "Souviens-toi qu'au moment de ta naissance tout le mon

Re: tomcat 5.5 multiple contexts using same realm bug?

2006-11-22 Thread olivier nouguier
hy I was getting App A's login page in App B!?) but it is now working as I expect! Many thanks U welcome. Elliott -Original Message- From: olivier nouguier [mailto:[EMAIL PROTECTED] Sent: 22 November 2006 12:10 To: Tomcat Users List Subject: Re: tomcat 5.5 multiple contexts using sa

Re: tomcat 5.5 multiple contexts using same realm bug?

2006-11-22 Thread olivier nouguier
h for both apps. FORM /login.jsp -----Original Message- From: olivier nouguier [mailto:[EMAIL PROTECTED] Sent: 21 November 2006 18:20 To: Tomcat Users List Subject: Re: tomcat 5.5 multiple contexts using same realm bug? In the web.xml, is the "realm-name" is d

Re: Realm authentication - unconventional usage

2006-11-22 Thread olivier nouguier
eally smart to GET login & password in (clear) URL ;-) On 11/22/06, Santosh Puranshettiwar <[EMAIL PROTECTED]> wrote: olivier nouguier wrote: Thanks. > Hi > The "natural" *post* should be > http://localhost/realm-test >> >> /j_security_check?j_username=

Re: Realm authentication - unconventional usage

2006-11-22 Thread olivier nouguier
Hi The "natural" *post* should be http://localhost/realm-test /j_security_check?j_username=foo&j_password=bar And should be OK. What are your need ? On 11/22/06, Santosh Puranshettiwar <[EMAIL PROTECTED]> wrote: Hello, I wish to user a JDBCRealm with the username & password coming in the

Re: tomcat stop working for some minute regulary

2006-11-21 Thread olivier nouguier
Is there something between apache and tomcat (firewall ?). On 11/21/06, Rainer Jung <[EMAIL PROTECTED]> wrote: Please post your mod_jk config (Webserver part, eg. Jk* directoves in httpd.conf, workers.properties, other relevant config and the connector element of the AJP connector in your timca

Re: Tomcat Basic Authentication Problem

2006-11-21 Thread olivier nouguier
Hi Liu You should look at http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#JAASRealm It quite straight forward, even if Jaas stay too generic for me ;-) On 11/20/06, Liu Frank <[EMAIL PROTECTED]> wrote: Hi All, Now I want to use my own method for the basic authentication, does Tomcat p

Re: tomcat 5.5 multiple contexts using same realm bug?

2006-11-21 Thread olivier nouguier
In the web.xml, is the "realm-name" is different ? BASIC | FORM Auth On 11/21/06, Elliott Murray <[EMAIL PROTECTED]> wrote: Hi, I am trying to set up multiple contexts in Tomcat 5.5 but have a problem in logging in. I have them both up and running. They both use realms for login functionality.

Reloading JAAS Configuration File

2006-11-18 Thread olivier nouguier
Hi all, I was wondering if there is a smarter way to reload a jaas configuration file than to call "Configuration.getConfiguration().refresh();" in a servlet. I was thinking of such a call in a webapp lifcycle listener. I really don't know much about JMX but perhaps it should the only nice way? I