Re: X11 Windows System and Tomcat

2002-05-12 Thread Michael Jennings
Modify the startup script for tomcat so that the java.awt.headless system property is set to true. Example: java -Djava.awt.headless=true -cp $CLASSPATH $MAINCLASS This will tell the Java virtual machine to use a non-X11 toolkit for images etc. - Original Message - From: "Micael Padra

Re: initKeyStore: java.io.IOException: Invalid keystore format errorwhen I start Tomcat 4.0.3

2002-05-11 Thread Michael Jennings
Hi, It sounds like the Java keystore file that was created was somehow damaged. Try using the JDK keytool utility to have a look inside it, or try using the GUI version of keytool available at: http://southgatesoftware.com/products/sskeytool/download/download.html to have a look at your Java keys

Re: Help importing SSL certificates

2002-01-14 Thread Michael Jennings
Hi Roland, As far as I understand tomcat/ssl/openssl and java's keystore, you need to do the following: 1. Generate a private key/self-signed certificate pair in a keystore file (mykeys.jks for example) and give it an alias ("tomcat" for example) 2. Export a certificate signing request (CSR) for

Re: Info on customizing jspc - jasper

2001-11-27 Thread Michael Jennings
I think you can do what you want by simply creating your own subclass/implementation of HttpServletRequest and HttpServletResponse to pass to the service() method of your servlet (or whatever the equivalent is for JSPs) Just make sure that the HttpServletResponse.getOutputStream() returns the Fil

Re: 3.3 classloading & resources

2001-11-26 Thread Michael Jennings
I could be being naive on this one, but I've always loaded property files and other resources by putting them in the WEB-INF/classes directory of my class path, then doing something like: InputStream istr=getClass().getResourceAsStream("/myprops.properties"); Properties props=new Properties(); pr

Re: jk_handler

2001-11-21 Thread Michael Jennings
Hi Costin, What about modifying mod_jk so that it can dynamically load .so files (or .dll on windows) that export well-known method names, so that one doesn't need to recompile mod_jk to add different functionality/protocols etc. ? -Mike - Original Message - From: <[EMAIL PROTECTED]> To

Performance of tomcat 3.2.3

2001-11-16 Thread Michael Jennings
Hi everyone, I'm working on a project for a client that involves a servlet engine component. I suggested tomcat since I am most familiar with it and it seems the most compliant servlet engine around. My client has mentioned concerns about tomcat's performance and now is insisting on using IBM we

patch to jk_uri_worker_map.c & ApacheConfig.java

2001-11-03 Thread Michael Jennings
glaring problems with the modifications, please let me know and I'll try and fix it. -Mike Jennings - Original Message - From: "Michael Jennings" <[EMAIL PROTECTED]> To: "Tomcat Developers List" <[EMAIL PROTECTED]> Sent: Friday, November 0

Re: patch to jk_uri_worker_map.c -> slightly more sophisticated string matching

2001-11-02 Thread Michael Jennings
ative. > > Of course, all rules have exceptions - but it is extremely painfull to > merge and track 2 codebases. > > Costin > > > On Fri, 2 Nov 2001, Michael Jennings wrote: > > > If anyone sees any glaring problems with the following modification to > >

patch to jk_uri_worker_map.c -> slightly more sophisticated string matching

2001-11-02 Thread Michael Jennings
ect: RE: Does anyone see anything wrong with this fix? > It isn't a matter of how the '*' is interpreted, but that > mod_jk will put a null terminator following the '*' if the > next character isn't a '.'. Thus: > >JkMount /*something ...

Re: Does anyone see anything wrong with this fix?

2001-11-01 Thread Michael Jennings
, so it was removed from Tomcat 3.3. It may still > get implemented in the jakarta-tomcat-connectors version > of mod_jk, assuming a better approach doesn't present itself. > > Larry > > > -Original Message- > > From: Michael Jennings [mailto:[EMAIL PROTECTED]

Re: Does anyone see anything wrong with this fix?

2001-11-01 Thread Michael Jennings
rite a mod_jk.conf similar to that of Tomcat 3.2.x, > but with additional mappings. These additional mappings for > the context will include one like the following: > > JkMount /examples/jsp/security/login/j_security_check ajp13 > > If you want "j_security_check" to

Re: Can someone commit this minor fix?

2001-11-01 Thread Michael Jennings
2.4 before the final release. > > > Marc Saegesser > > > -Original Message- > > From: Michael Jennings [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, November 01, 2001 10:51 AM > > To: [EMAIL PROTECTED] > > Subject: Can someone commit this minor

Re: Tomcat3.2.2 bug...?

2001-11-01 Thread Michael Jennings
As far as I know, that is a problem with Internet Explorer closing the socket prematurely on an http request. Try hitting your servlet or JSP with a java.net.URL object and see if you get the same error. Also try with Netscape. My guess is that this "bug" is just how tomcat deals with clients that

Does anyone see anything wrong with this fix?

2001-11-01 Thread Michael Jennings
As far as I can tell, the following modification to the ApacheConfig.java class will enable form-based authentication to work for people using mod_jk.conf-auto with Apache. mod_jk needs to be told to handle requests of the form "/webapproot/somedir/j_security_check" since a login.jsp page (for

Can someone commit this minor fix?

2001-11-01 Thread Michael Jennings
The following fix enables form-based authentication to work with Apache + Tomcat. Can someone add this to tomcat 3.2? Thanks! -Mike Jennings Index: jakarta-tomcat/src/share/org/apache/tomcat/task/ApacheConfig.java === RCS file: /h

Can someone apply this diff and commit?

2001-10-31 Thread Michael Jennings
The following fix enables form-based authentication to work with Apache + Tomcat. Can someone add this to tomcat 3.2? Thanks! -Mike Jennings Index: jakarta-tomcat/src/share/org/apache/tomcat/task/ApacheConfig.java === RCS file: /ho

Re: problem launching apache 1.3.19 with apr lib

2001-06-27 Thread Michael Jennings
Bonjour! When I was trying to get mod_jk to work I had to pass a parameter to GCC: gcc -shared -lposix4 -o mod_jk.so *.o To tell it to link in the correct library. What compiler are you using? Is it GCC? If so, what version? I would try commenting out code until you get a .so file that does not

Re: FORM-based authentication idea

2001-06-21 Thread Michael Jennings
So the redirection thing is just how it is implemented right now. Stupid me. -Mike - Original Message - From: "Michael Jennings" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 21, 2001 2:21 PM Subject: Re: FORM-based authentication idea > >

Re: FORM-based authentication idea

2001-06-21 Thread Michael Jennings
> It's kinda hard for them to bookmark the login page when they don't know > the URL. > > Keep in mind that, as far as the browser is concerned, the URL in the > location is still the page that was originally requested. Therefore, a > bookmark for the login form will actually be to the real page

Re: FORM-based authentication idea

2001-06-21 Thread Michael Jennings
> Why is the button there at all? There should be zero linkages to the > login page from *anywhere* in your user interface. That's true. The point I was trying to make is that there is nothing to stop an end-user from bookmarking a login page or typing it in directly, even if you have no linkag

Re: FORM-based authentication idea

2001-06-21 Thread Michael Jennings
> The best way to think about form-based login is like this: > > * The login page is (in essence) part of the container, > not the application. Therefore, ... > > * The login page should *never* be referenced directly by any > other application page, and ... > > * The login page should *never

Re: FORM-based authentication idea

2001-06-20 Thread Michael Jennings
> I would simply be a little bit leary of extending the web.xml file > format beyond what the spec states, given that Tomcat is the official > reference implementation. My feeling would be to change the internal > behavior of the problem you point out to be handled a bit more > elegantly, rather t

Re: FORM-based authentication idea

2001-06-20 Thread Michael Jennings
> FWIW, I guess I could see some small convenience in a target-fail and > target-succeed context parameter. I guess I if I had multiple entry > points into my application, such as a more complex manual authentication > routine within a different application or something, I could also grab > these

Re: FORM-based authentication idea

2001-06-20 Thread Michael Jennings
> > The alternative is to look for the presence of a session variable called > > "tomcat.auth.originalLocation" > > and set up a default from within the login page if that session variable > > isn't there. > > > > Any thoughts? > > > Why not supply the default in a hidden field on the login page?

FORM-based authentication idea

2001-06-20 Thread Michael Jennings
Hi everyone, I just wanted to bounce an idea off of everyone. In tomcat, when one specifies form-based authentication you have to tell tomcat which page is the login page. This is done via the context's web.xml file by setting the property under the section. When a user hits a protected URL in

Re: per-context realms

2001-06-07 Thread Michael Jennings
.0... Saludos , Ignacio J. Ortega > -----Mensaje original- > De: Michael Jennings [mailto:[EMAIL PROTECTED]] > Enviado el: miƩrcoles 6 de junio de 2001 17:56 > Para: [EMAIL PROTECTED] > Asunto: per-context realms > > > Hi everyone, > > Does anyone have an idea of h

Re: per-context realms

2001-06-07 Thread Michael Jennings
Thanks! That is EXACTLY what I was looking for! -Mike - Original Message - From: "Antony Bowesman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 06, 2001 10:39 PM Subject: Re: per-context realms > Michael Jennings wrote: > > > &

per-context realms

2001-06-06 Thread Michael Jennings
Hi everyone, Does anyone have an idea of how I could go about implementing realms/authentication on a per-context basis? Ideally, what I would like to do is have each context control their users and roles. Where should I look to get a clue? -Mike __ Mike Jennings Southgate

Re: distributed session management

2001-06-05 Thread Michael Jennings
Sounds like a VERY cool idea! What kind of database structure do you use? I know that ColdFusion and PHP both have the capability to store their session info in a database, do you know what schema they use? If your code can use the same schema as PHP or ColdFusion, then one could conceivably use

Re: realms and authentication

2001-06-05 Thread Michael Jennings
Antony Bowesman wrote: > > > > Andy Armstrong wrote: > > > > > > Michael Jennings wrote: > > > > > > > > Thanks for the feedback! > > > > > > > > Does tomcat 3.2.2 currently support JAAS? > > > > > > Not in

Re: realms and authentication

2001-06-04 Thread Michael Jennings
ess what JAAS does? There are a number of JAAS > modules at http://free.tagish.net/ that implement among other things a > JDBC Authentication provider. > > Michael Jennings wrote: > > > > Hi everyone, > > > > Just for my own education, I decided to write my own au

realms and authentication

2001-06-04 Thread Michael Jennings
Hi everyone, Just for my own education, I decided to write my own authentication-stuff for tomcat 3.2.2 To that end I wrote a Request Interceptor that takes 2 parameters called "realmProviderClass" and "setupString". The "realmProviderClass" is the fully-qualified class name of a class which im

Re: cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/config ApacheConfig.java

2001-05-28 Thread Michael Jennings
auto file. -Mike - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, May 27, 2001 4:11 PM Subject: cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/config ApacheConfig.java > costin 01/05/27 16:11:08 > > Modified:sr

form-based authentication tomcat->apache

2001-05-27 Thread Michael Jennings
Hi! I've made a modification to the ApacheConfig module to enable the mod_jk.conf-auto to include directives to enable form-based authentication. Can someone with "commit" privilege commit this change? Here's the cvs diff: Index: jakarta-tomcat/src/share/org/apache/tomcat/modules/config/Apache