Re: Callback (JAAS)

2006-02-06 Thread Franck Borel
According to the Tomcat User Guide, only two callbacks are supported: NameCallback and PasswordCallback. I have an app that has to have another call back: ClientCallback. In other words my login window looks like this: Clietn : || User:|| Password:|

Problems with JAAS-Realm

2007-09-21 Thread Franck Borel
Hi, my problem is a bit complicate and I hope someone has enough courage to find an answer :-). First I try to explain what I want to do: I am running an JAAS-Realm with FORM authentication. As known this can only passes username and credential. Now, I was trying to pass the current IP

Re: Problems with JAAS-Realm

2007-09-21 Thread Franck Borel
Salut David, thanks very much for your answer! public SecurityConstraint[] findSecurityConstraints(Request request, Context context) { HttpServletRequest req = request;// catch Request session = req.getSession(); // catch session ipAddress =

Re: Problems with JAAS-Realm

2007-09-24 Thread Franck Borel
their value back to null our you could face a case of memory leak. Ok. Thanks! -- Franck En l'instant précis du 21/09/07 13:21, Franck Borel s'exprimait en ces termes: Salut David, thanks very much for your answer! public SecurityConstraint[] findSecurityConstraints(Request request, Context

Re: Tomcat 5.5.20 Stops Responding

2007-09-26 Thread Franck Borel
] -- Beste Grüße Franck Borel ** Dipl.-Hyd. Franck BorelTelefon: +49[0]761-203 3908 Universitätsbibliothek Fax: +49[0]761-203 3987 Werthmannsplatz 2 E-Mail : [EMAIL PROTECTED

Filter GET and POST

2007-09-26 Thread Franck Borel
Hi, i have a problem with an application that only accept GET requests. Now, I would like to know, if there is any possibility to write a filter, who is able to change the method from POST to GET. I see that the FORM-Authentication could speek GET after authentication with POST method. Is

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Franck Borel
Hi Martin, Its happened 3 times now. Always at exactly midnight. 21.09, 25.09 and 26.09. We have VM Ware Server as the hardware - could this cause the problem? What kind of network connection are you using? NAT or Bridge? I have a firewall on the machine with only the HTTPS port open.

Re: Filter GET and POST

2007-09-26 Thread Franck Borel
Hi Christopher, thank you very much for your answer. i have a problem with an application that only accept GET requests. Now, I would like to know, if there is any possibility to write a filter, who is able to change the method from POST to GET. What do you mean by that? Do you just want to

Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Franck Borel
] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Beste Grüße Franck Borel ** Dipl.-Hyd

Re: Filter GET and POST

2007-09-27 Thread Franck Borel
Hi Christopher, I'm not sure why you'd want to do this, since servlets do not really distinguish between GET and POST parameters -- the API abstracts that complexity away from your code. If I change the request from POST to GET the Servlet works. I have no possibility to change the Servlet

Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Franck Borel
Charles, one problem could be insufficient RAM you assigned to Tomcat. How much RAM have you set to your Tomcat? Don't confuse physical RAM with the virtual memory sizing of the Java heap. Having insufficient RAM on the system will only result in excessive paging, not process termination.

Re: j_security_check and JAAS = GOOD or BAD ?

2006-02-28 Thread Franck Borel
Hi Vinc, 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

Re: eclipse and tomcat deployment

2006-03-08 Thread Franck Borel
Hi azri, what do you mean wih running your project? Did you mean, that you have problems creating a new tomcat project? Sysdeo is not compatible with the eclipse version 3.2M2-3.2M4. Perhaps there are similar problems with your eclipse version. Best regards - Franck Hi everybody, I am

Problem with filter

2006-03-09 Thread Franck Borel
Hi all, I am using tomcat 5.5 and I am trying to implement a filter. Now, I have setted the xmlValidation to true. This causing some strange sax errors: - 2006-03-08 16:47:27,324 [main] ERROR org.apache.commons.digester.Digester - Parse Error at line

Re: Problem with filter

2006-03-09 Thread Franck Borel
Hi Markus, thank you very much. Who is able to read has some advantages :-). Ok, this resovle my problem and now it works. Greetings - Franck Franck Borel wrote: Hi all, I am using tomcat 5.5 and I am trying to implement a filter. Now, I have setted the xmlValidation to true

Re: First time with Tomcat

2006-03-29 Thread Franck Borel
protocol=AJP/1.3 tomcatAuthentication=false / This is the connector entry on the Tomcate side. Now, restart the Apache and the Tomcat and try to get a jsp web page. Is it now working? - Franck Jean-François Lebeau From: Franck Borel [EMAIL PROTECTED] Reply-To: Tomcat

Re: HTTP 404

2006-03-29 Thread Franck Borel
Hello Vikas, look at your login.jsp. There is an entry like this: .. form method=post action=j_security_check name=loginform ... Be sure that you there is only j_security_check in the action field. This is calling the Tomcat authentication valve and you don't need any directory information. --

Re: is it possible to determin the requested resource when using realm authentication?

2006-04-03 Thread Franck Borel
Hi Jay, I believe that I already know the answer to this. But, if possible, it would be nice to have some confirmation. I have an application that uses JAASRealm for authentication. Within my LoginModule class, is it possible to determine which resource the user is currently trying to

Re: getsession if you know the id?

2006-04-03 Thread Franck Borel
If you know the id of a session is there anyway to get it out of the application? Sorry, this is to vague to know what you are doing. Which application do mean? -- Franck - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: JAAS Realm Help

2006-04-06 Thread Franck Borel
Information about JAAS can be faound at: http://www.JAASbook.com Hi, Trying to get a custom login through a JAAS LoginModule. Got the authentication to work (confirmed thru println()), but get back a HTTP unauthorized error in the browser. Gets to the commit() of LoginModule, where I add a

Re: How do disable session in tomcat 5.5?

2006-04-07 Thread Franck Borel
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dipl.-Hyd. Franck Borel Universitaetsbibliothek Freiburg EMail: [EMAIL PROTECTED

Re: Apache and Tomcat

2006-04-10 Thread Franck Borel
Hi ALL Apache is a Standalone Web Server Tomcat is a Standalone Application Server Tomcat is a Servlet-Container/JSP! If you need an application Server, use JBoss or Geronimo instead. In case of Tomcat its actually a Servlet/JSP Container so programs written in JSP or Servlets can be

Re: Apache and Tomcat

2006-04-10 Thread Franck Borel
On Mon, April 10, 2006 9:59 am, Franck Borel said: The Apache Web Server and mod_jk are written in C++ Small detail, they are both written in C. Small ;-))! Another detail about mod_jk 1.2 web server connector for Tomcat: Only the web server connector source is included

Re: Error on Startup.

2006-04-10 Thread Franck Borel
I'm getting following error whenever i try to start the tomcat Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap Sounds like your Tomcat can't find your JDK. Have you set the PATH and JAVA_HOME environmen variable? Try: root# echo

Re: cannot connect to localhost:8080 (jsvc -user tomcat ...)

2006-04-11 Thread Franck Borel
] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dipl.-Hyd. Franck Borel Universitaetsbibliothek Freiburg EMail: [EMAIL

Re: RE Tomcat and SSL

2006-04-12 Thread Franck Borel
Hi, I solved that problem. Now running in a new one: I have changed the file server.xml and set port 8080 to 80. I uncommented the SSL section and configured the port to 443. Now I expect Tomcat to run on port 80 (what is does), and that, when I call the same URL with https, that it calls

Re: Form Authentication against JNDI Datasource Realm

2006-04-12 Thread Franck Borel
] For additional commands, e-mail: [EMAIL PROTECTED] -- Dipl.-Hyd. Franck Borel Universitaetsbibliothek Freiburg EMail: [EMAIL PROTECTED] EDV-Dezernat Tel. : +49-761 / 203-3908 Werthmannplatz 2 | Postfach

Re: RE Tomcat and SSL

2006-04-12 Thread Franck Borel
Hi Klaus, Hi Franck, thank you for your hint. But I am not sure, which parameter is which file. To make things clear, here my procedure: openssl req -x509 -newkey rsa:512 -keyout ./demoCA/private/cakey.pem -out

Re: RE Tomcat and SSL

2006-04-12 Thread Franck Borel
. -- Franck Franck Borel schrieb: Hi Klaus, Hi Franck, thank you for your hint. But I am not sure, which parameter is which file. To make things clear, here my procedure: openssl req -x509 -newkey rsa:512

Re: RE Tomcat and SSL

2006-04-13 Thread Franck Borel
for tests. Don't give up! -- Franck Klaus Franck Borel schrieb: Sorry to disturb you again, but all the entries in my server.xml do not seem to be the problem. *At present, TOMCAT states, that my .keystore was tampered or my password was incorrect.* But I did everything over and over

Re: RE Tomcat and SSL

2006-04-13 Thread Franck Borel
Hi Klaus, Good Morning Franck, yesterday, you did a great job, trying to help me. I appreciate that! Thanks. But... I am running out of ideas. Regarding the password: presently, I am using changeit for everything (just to get in running), but I still have no success. Yesterday, I sent

Re: R: R: Form Authentication against JNDI Datasource Realm

2006-04-13 Thread Franck Borel
and go home... Bye Ale -Messaggio originale- Da: Franck Borel [mailto:[EMAIL PROTECTED] Inviato: mercoledì 12 aprile 2006 16.54 A: Tomcat Users List Oggetto: Re: R: Form Authentication against JNDI Datasource Realm The server.xml is looking for Windows like server.xml for all

Re: RE Tomcat and SSL

2006-04-13 Thread Franck Borel
Next suggestion: Did you make the key as root? And do you start Tomcat as root? -- Franck Yes, in testphase, I do all pw's in low-cases... Franck Borel schrieb: Hi Klaus, Good Morning Franck, yesterday, you did a great job, trying to help me. I appreciate that! Thanks. But... I am

Re: RE Tomcat and SSL

2006-04-13 Thread Franck Borel
could be the problem. Do you have an idea where I could find a dummy key for just checking, my key is not the problem. It should be a key which is already working with tomcat. Thanks Klaus Klaus-F. Kaal schrieb: Yes, Franck, I am root when I run key-creation and tomcat... Franck Borel

Re: RE Tomcat and SSL

2006-04-13 Thread Franck Borel
Does that tell you more? Not really. But I think you must augment the debug value to 99: Connector debug=99 / Better? -- Franck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: SSL enabled and trying to open the port 8443 wit h the browser and nothing happend

2006-05-08 Thread Franck Borel
Please take a look at your log file: /opt/tomcat/logs/catalina.out or C:\tomcat\logs\catalina.out This is the first thing to do, if you have problems. -- Franck Hi I enable SSL in Tomcat, creating a key creaded with keytool and I updated my server.xml removing the comments on the port 8443

Re: Newbie: Deploying .war file, getting it working with MySQL

2006-05-08 Thread Franck Borel
/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dipl.-Hyd. Franck Borel Universitaetsbibliothek

Re: Newbie: Deploying .war file, getting it working with MySQL

2006-05-08 Thread Franck Borel
Have you set the entry unpackWARs true like this ? Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false -- Franck Franck Borel wrote: Have you installed a mysql-connector? -- http://dev.mysql.com/downloads

Re: Newbie: Deploying .war file, getting it working with MySQL

2006-05-08 Thread Franck Borel
Where did you place your Realm block? It must be placed inside the context block like this: Context .. Realm ./ /Context.. -- Franck Franck Borel wrote: Have you set the entry unpackWARs true like this ? Host name=localhost appBase=webapps unpackWARs=true

Re: Newbie: Deploying .war file, getting it working with MySQL

2006-05-08 Thread Franck Borel
/namevalueroot/value/parameter paramaternamepassword/namevalueROOT_PASSWORD/value/parameter parameternamedriverClassName/namevaluecom.mysql.jdbc.Driver/value/parameter parameternameurl/namevaluejdbc:mysql://localhost/authority/value/parameter /ResourceParams /Context -- Franck Franck Borel wrote

Re: error page

2006-05-18 Thread Franck Borel
I'm trying to use the error handling mechanism described in http://java.sun.com/developer/EJTechTips/2003/tt0114.html. When an exception in thrown in JSP1 it is indeed redirected to JSP2. in JSP2 I've put System.out.println(exception.getMessage()); and sure enough the exception's message

Re: Using mod_jk?

2006-05-18 Thread Franck Borel
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dipl.-Hyd. Franck Borel

Re: Odd problem with Java Web service deployment

2006-07-03 Thread Franck Borel
According to all different things I have seen on the internet they sometimes talks about the classpath, however even if I add explicitely the servlet-api.jar that is in $CATALINA_HOME/common/lib on the classpath inside catalina.sh or on the system classpath that does not change anything. And

Re: multiple Tomcat config question

2006-10-20 Thread Franck Borel
:-). -- Franck -- Dipl.-Hyd. Franck Borel Universitaetsbibliothek Freiburg EMail: [EMAIL PROTECTED] EDV-Dezernat Tel. : +49-761 / 203-3908 Werthmannplatz 2 | Postfach 1629 Fax : +49-761 / 203-3987