Re: JDBCRealm - can't make it work

2001-01-26 Thread Rolf Veen
Hi. Maybe your problem is that you are using a recent MySQL with an old JDBC driver. Get the latest MM driver (2.0.4 at the moment) from http://mmmysql.sourceforge.net/ I use Mysql for my applications and just drop the MM binary in the corresponding /WEB-INF/lib directory, and that's all.

Re: Enterprise Tomcat

2001-01-26 Thread Paul Libbrecht
I think you have more chances with JServ... Paul On Friday, December 8, 2000, at 07:41 PM, Michael Kuz wrote: Hello all, Does anyone know of Corperate (Fortune 500) companies using Tomcat as their enterprise servlet container? Anything like that at all? Links would be great.

jserv SHUTDOWN_GRACEFULLY functionality with mod_jk?

2001-01-26 Thread Stefan . Aberg
Hi, are there any plans to add the functionality found in mod_jserv for managing high availability with load balancing? Secifically the shutdown functionality seems to be missing where you could take one tomcat off the load balancing pool and still send old sessions there for a while. Checking

Re: Thread-safety

2001-01-26 Thread Pier Fumagalli
Luc Vanlerberghe [EMAIL PROTECTED] wrote: Thanks for incorporating this change to jasper. I had suggested it a couple of months ago (22/11/2000 in fact: see http://w6.metronet.com/~wjm/tomcat/2000/Nov/msg00747.html) In the meantime, however, I have been browsing through the sessions of

problem with Tomcat and Xalan20D07

2001-01-26 Thread sven . ehrke
BDY.RTF

request queuing in tomcat

2001-01-26 Thread Erik Pischel
Hi, for academic purpose I want to introduce a real-time algorithm in a web server. Since I'm quite familiar with java, i thought of tomcat... B/W a wonderfull 'product', thanks for all the dev. efforts! what I want to do: when requests arrive and are queued, order this queue due to some sort

Re: Tomcat 3.2.1 mod_jk and Apache default_handler question

2001-01-26 Thread Ron Bolin
RE: Tomcat 3.2.1 and mod_jk on UNIX and Apache default_handler interaction. When you configure apache for mod_jk, the Apache default_handler checks to see if the full UNIX path for the URI exists. If it does not exist the the server returns a permission error (FORBIDDEN) and never calls the

String/StringBuffer (was Re: An alternative to JSP)

2001-01-26 Thread Arieh Markel
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:[EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] From: Paul Speed [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: An

Re: problem with Tomcat and Xalan20D07

2001-01-26 Thread cmanolache
My lib folder contains the xerces.jar and the xalan.jar which come with Xalan20D07. Workarounds: - replace parser.jar with xerces.jar ( in tomcat_home/lib ) - replace parser.jar with crimson.jar ( part of jaxp1.1 or built from apache xml-crimson ) ( you'll have to also replace jaxp.jar with

RE: String/StringBuffer (was Re: An alternative to JSP)

2001-01-26 Thread Christopher Kirk
Paul, Actually, my investigations in the past have shown that (at least in Sun's JDK 1.2) this is implemented as: new StringBuffer ("My").append("dog").append("has").append("fleas").toString(); It is also possible to write a statement like: "My" + "dog" + '.' The

Re: An alternative to JSP

2001-01-26 Thread Brad Cox
At 11:03 AM -0800 01/25/2001, Mel Martinez wrote: That presumes the line termination character of choice for the output is a linefeed character. Good point. Will fix when I get a moment. Another issue is that the example creates catenated String literals. I would hope that the actual code

Re: TOMCAT + mod_jk or mod_webapp

2001-01-26 Thread Dan Milstein
Great to hear that you want to contribute some work! As to mod_jk / TC 4.0, that's a complicated question. mod_jk is currently used by a lot of people, and will continue to be for a while (I think), since I expect a lot of people to continue to be using the 3.x source in the near future. So

Re: Tomcat 3.2.1 mod_jk and Apache default_handler question

2001-01-26 Thread Ron Bolin
Just found the problem. Well I found that the Alias in mod_jk.conf seems to be the problem with separating the web server from the servlet engine. Removing the alias makes it work. Ron Ron Bolin wrote: RE: Tomcat 3.2.1 and mod_jk on UNIX and Apache default_handler interaction. When you

Re: jserv SHUTDOWN_GRACEFULLY functionality with mod_jk?

2001-01-26 Thread Dan Milstein
Stefan, Michael Kuz actually submitted a nice patch to do just this, which I've been intending to apply. The only thing which has held me back is that you have to restart apache to let it know that it should stop sending new sessions to a particular TC instance. Since you're interested in

Re: An alternative to JSP

2001-01-26 Thread Brad Cox
At 11:23 AM -0500 01/26/2001, Brad Cox wrote: so the user's session will be lost if they ever browse to a hard-coded html pag I meant to say... for browsers that don't support cookies or if the user has disabled cookies. -- --- Dr. Brad Cox; [EMAIL PROTECTED] Phone: 703 361 4751 Fax: 703 995

RE: Thread-safety

2001-01-26 Thread Ethan Wallwork
"When the thread exits the synchonized block, it is required to commit all its changes to main memory" Does this mean that the following code would be thread safe? if (_jspx_inited == false) { synchronized (this) { if (_jspx_inited == false) { synchronized(new Object())

RE: String/StringBuffer (was Re: An alternative to JSP)

2001-01-26 Thread Michael . Smith
Last paragraph in the java.lang.String javadoc says: The Java language provides special support for the string concatentation operator ( + ), and for conversion of other objects to strings. String concatenation is implemented through the StringBuffer class and its append method.

Re: Thread-safety

2001-01-26 Thread Luc Vanlerberghe
Does this mean that the following code would be thread safe? NO, it's not! Check the JavaOne session I mentioned and follow the links they gave. There have been various patches suggested, but most of them are wrong... The only safe way to do it is synchronize before the first test... The

Re: An alternative to JSP

2001-01-26 Thread Glenn Nielsen
This list is for discussing issues related to developing the Tomcat servlet container, not design of web applications. Could this discussion get moved elsewhere? Thanks, Glenn Brad Cox wrote: At 11:23 AM -0500 01/26/2001, Brad Cox wrote: so the user's session will be lost if they ever

RE: Thread-safety

2001-01-26 Thread Steve Downey
That code has also been found to be _not_ thread safe. Much to the surprise and dismay of several experts. See: http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html The "Double-Checked Locking is Broken" Declaration -Original Message- From: Ethan Wallwork

Re: jserv SHUTDOWN_GRACEFULLY functionality with mod_jk?

2001-01-26 Thread Thom May
Hi Dan. I really appreciate the work you're doing on Apache - Tomcat connectivity! Couple of questions first: 1) (totally unrelated) the mod_jk howto seems to suggest that mod_jk is useable from _inside_ apache VirtualHost statements. However, practical experience - ands much screaming ;) - have

BIZZAR Caching Problem !!

2001-01-26 Thread Shahed Ali
Hi, I am using Tomcat 3.2.1 w/Sun JDK 1.3 on Solaris 8 + Apache 1.3.14 + mod_jk Now here is my problem. I have a jsp page with an include to refer to file a.inc. I change the include to refer to another file (b.inc) I reload the page. I still see the content of a.inc. I touch the jsp file.

Re: Thread-safety

2001-01-26 Thread Paul Speed
Steve Downey wrote: That code has also been found to be _not_ thread safe. Much to the surprise and dismay of several experts. See: http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html The "Double-Checked Locking is Broken" Declaration -Original Message-

Re: jserv SHUTDOWN_GRACEFULLY functionality with mod_jk?

2001-01-26 Thread Dan Milstein
Thom, Thanks for the feedback. 1) The mod_jk howto / vhosts The mod_jk user docs are (as far as I can tell) kind of a mess. I have a medium-term goal of overhauling them and cleaning them up, but I haven't done so yet. I'm not clear on what they say about vhosts, and, to be honest, I'm no

RE: TOMCAT + mod_jk or mod_webapp

2001-01-26 Thread Keith Wannamaker
Hi, Dan, thanks for your informative response. |File Upload was badly broken with mod_jk/ajp13 in both 3.2 and 3.x |-- some basic bugs have been fixed in both of those repositories, |but have not yet been released. Just so you know. I am working with source from jakarta-tomcat cvs head, but

RE: String/StringBuffer (was Re: An alternative to JSP)

2001-01-26 Thread Arieh Markel
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:[EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE:

Re: Thread-safety

2001-01-26 Thread PSA
Pier Fumagalli wrote: Luc Vanlerberghe [EMAIL PROTECTED] wrote: Thanks for incorporating this change to jasper. I had suggested it a couple of months ago (22/11/2000 in fact: see http://w6.metronet.com/~wjm/tomcat/2000/Nov/msg00747.html) In the meantime, however, I have been

Re: tomcat w/Win2k and IIS5

2001-01-26 Thread Praet Wim
I've installed Tomcat 3.2.1 on an IIS5.0 and Win2k. Everything is working fine, I can get the servlet and jsp examples to run from http://localhost/examples/jsp but the big problem is that when I want to try to run the same thing on the live site it seems like tomcat is not responding to servlets

RE: Thread-safety

2001-01-26 Thread Marc Saegesser
This is a truly fascinating thread of discussion. However, from reading the article _The "Double-Checked Locking is Broken" Declaration_ (http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html) It seems to me that the following code is thread safe. if (_jspx_inited == false) {

Re: Thread-safety

2001-01-26 Thread Paul Speed
Marc Saegesser wrote: This is a truly fascinating thread of discussion. However, from reading the article _The "Double-Checked Locking is Broken" Declaration_ (http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html) It seems to me that the following code is thread safe.

Re: An update to Tomcat

2001-01-26 Thread Anil Vijendran
David, Can you follow this up with Pierre and tomcat-dev? This could probably go into 3.3 and 4.x. Thanks. David Pollak wrote: Anil, My team has been using Tomcat and noticed that changing included files does not cause Tomcat to recompile the pages that include that changed files. I've

RE: Thread-safety

2001-01-26 Thread Marc Saegesser
OK, if _jspx_init() can be inlined and the _jspx_inited=true assignment might get interspersed within the inlined code (the fog is lifting now) then the second approach I presented where the result of _jspx_init() is used should work. -Original Message- From: Paul Speed [mailto:[EMAIL

Re: request queuing in tomcat

2001-01-26 Thread Craig R. McClanahan
Erik Pischel wrote: Hi, for academic purpose I want to introduce a real-time algorithm in a web server. Since I'm quite familiar with java, i thought of tomcat... B/W a wonderfull 'product', thanks for all the dev. efforts! what I want to do: when requests arrive and are queued, order

Re: An update to Tomcat

2001-01-26 Thread David Pollak
Pierre et. al., I've updated the 3.2.1 code to support testing included files for changes when determining wether to compile a JSP page. Do you want the code? If so, please let me know the best format to deliver it. Thanks, David Anil Vijendran wrote: David, Can you follow this up with

RE: An alternative to JSP

2001-01-26 Thread Mel Martinez
Brad Cox [mailto:[EMAIL PROTECTED]] wrote: At 11:03 AM -0800 01/25/2001, Mel Martinez wrote: That presumes the line termination character of choice for the output is a linefeed character. Good point. Will fix when I get a moment. Another issue is that the example creates catenated String

Re: 3.2 nightly builds

2001-01-26 Thread Craig R. McClanahan
Marc Saegesser wrote: This was first time I've looked in a while so I'm not sure when this happened, but there don't seem to be any nightly builds for the 3.2 branch on the Jakarta site. I will fix this soon ... makes sense because I'm already creating and uploading a lot of the nightly

cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector HttpResponseBase.java

2001-01-26 Thread craigmcc
craigmcc01/01/26 13:33:13 Modified:catalina/src/share/org/apache/catalina/connector HttpResponseBase.java Log: Correct the isEncodeable() method to correctly assume a default port of 443 for https, rather than always assuming the default port is 80.

RE: 3.2 nightly builds

2001-01-26 Thread Keith Wannamaker
Hi, I'm developing patches to add webdav support to ajpv13 in jakarta-tomcat, and I'm interesting in expediting this code to a release. If I got it in next week, could it be a canidate to go out with 3.2, or would you prefer to wait until 3.3? Keith -Original Message- From: Marc

Re: SSL Session problem with URL Rewriting

2001-01-26 Thread Craig R. McClanahan
Mathias Bachner wrote: Hello Developers, I have here a little problem with jakarta-tomcat-4.0-b1. I use a Session to keep track of the user login. For security purpose, I also use SSL. When I don't use any cookies, everything is ok, as long as I don't switch over to SSL. When using SSL,

[PATCH] Ajpv13 webdav support

2001-01-26 Thread Keith Wannamaker
This is a patch against cvs head to add support to ajpv13 for webdav methods: http://www.apache.org/~keith/jk/webdav1.txt Also, this is a patch against cvs head to update the win32 project files to reflect the new directory structure: http://www.apache.org/~keith/jk/win32.txt I'd be happy to

RE: 3.2 nightly builds

2001-01-26 Thread Marc Saegesser
I don't think this should go to the tomcat_32 branch. The activity on 3.2 is just bug fixes these days. Any new *functionality* for Tomcat 3 should go on the HEAD. -Original Message- From: Keith Wannamaker [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 3:34 PM To: [EMAIL

cvs commit: jakarta-tomcat/src/tests/webpages/WEB-INF test-tomcat.xml

2001-01-26 Thread nacho
nacho 01/01/26 16:59:20 Modified:src/tests/webpages/WEB-INF test-tomcat.xml Log: * Tests involving welcome.tst were bad , because now the 302 body response is localizd * Tests involving a Location header were trying to match up with "localhost" the default it's

cvs commit: jakarta-tomcat-4.0/tester/web/WEB-INF web.xml

2001-01-26 Thread craigmcc
craigmcc01/01/26 17:49:15 Modified:tester/src/bin tester.xml tester/src/tester/org/apache/tester TestClient.java tester/web/WEB-INF web.xml Added: tester/src/tester/org/apache/tester Aggregate01.java Aggregate02.java Log:

Re: Thread-safety

2001-01-26 Thread Brian Goetz
The reputation of Bill Pugh is quite high - enough so that I would be nclined to take his statements on this subject as beyond challenge. As well you should. And many very smart people have signed his declaration, including Doug Lea. Upon careful reading of the link mentioned in this thread,