Re: RequestDispatcher and [contentType] question...

2004-04-16 Thread Timothy Stone
to the forwarding of the request. Thank you, Yansheng. Tim -Original Message- From: Timothy Stone [mailto:[EMAIL PROTECTED] Sent: April 15, 2004 14:45 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: RequestDispatcher and pageEncoding question... Timothy Stone wrote: Timothy

RequestDispatcher and pageEncoding question...

2004-04-15 Thread Timothy Stone
List, A servlet I am debugging and trying to understand sets the response's contentType as follows: response.setContentType( text/html;charset=UTF-8 ); Shortly following the following forward is done: request.getRequestDispatcher( jspPage ).forward( request, response );

Re: RequestDispatcher and pageEncoding question...

2004-04-15 Thread Timothy Stone
Timothy Stone wrote: List, A servlet I am debugging and trying to understand sets the response's contentType as follows: response.setContentType( text/html;charset=UTF-8 ); Shortly following the following forward is done: request.getRequestDispatcher( jspPage ).forward( request, response

Re: RequestDispatcher and pageEncoding question...

2004-04-15 Thread Timothy Stone
Timothy Stone wrote: Timothy Stone wrote: List, A servlet I am debugging and trying to understand sets the response's contentType as follows: response.setContentType( text/html;charset=UTF-8 ); Shortly following the following forward is done: request.getRequestDispatcher( jspPage ).forward

Re: FAIL - Application at context path /[context] could not be started ???

2004-03-03 Thread Timothy Stone
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext. java:193) ... *The very same app runs from /tmp* Any ideas... as I said, I 777 the dev tree, no luck. Many thanks, Tim -Original Message- From: Timothy Stone [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 2:11 PM To: Tomcat

[CLOSED] Re: FAIL - Application at context path /[context] could not be started ???

2004-03-03 Thread Timothy Stone
Timothy Stone wrote: Yansheng Lin wrote: What's the console output? how far did you get before you encounter that specific error? Sounds to me like a mis-configuration of the context path problem. You sure you have the right deploy descriptor in your war file? well, it some sort

FAIL - Application at context path /[context] could not be started ???

2004-03-02 Thread Timothy Stone
List, I did an archive search. Nothing meaningful returned, so I'm posting what must be a regular question. I can get a development tree to install via the Manager interface, but I can't get it started. This seems to be a UNIX problem at the moment. For example on Windoze: Install directory

Windows XP, TC 4.1.29 and logging question (catalina.out)...

2004-02-12 Thread Timothy Stone
List, I must be too close to the problem, having a background in managing Tomcat on Linux, I can't seem to figure out what is so drastically different about Tomcat on Windows that logging doesn't behave the same. Specifically: c:\%tomcat_home%\bin\startup.bat runs in a separate window

Re: Connecting Tomcat to Apache

2004-01-23 Thread Timothy Stone
Yiannis Mavroukakis wrote: Install the pcre (Perl Compatible Regular Expressions)libs..either via rpm *retch* or download and build the source from sourceforge(http://sourceforge.net/projects/pcre/) Yiannis PCRE should build out of the box in Red Hat 8+. It did on Mac OS X. For Mac OS X, it was

Re: Connecting Tomcat to Apache

2004-01-22 Thread Timothy Stone
David Grant wrote: Hello, I am using a preety good but rather old HOWTO and I now need to connect apache to tomcat, so that apache acts as the web server and tomcat handles jsp's and servlets. I've tested it all up to this point and everything is up and running. I am using IBM Java2 1.4.1,

Re: jk2 for Apache 2.0.43 (and only 2.0.43)

2004-01-20 Thread Timothy Stone
Brennon Obst wrote: Why does it say the following. start This is the 2.0.2 release of JK2 You'll find here binaries for Apache 1.3, 2.0 and IIS. Build under Windows XP, Apache 1.3.27 and 2.0.43, IIS 5.1 * isapi_redirector2.dll is for Microsoft's IIS web server *

Re: virtual hosting and tomcat wt Apache 2 and JK2

2004-01-16 Thread Timothy Stone
Brennon Obst wrote: Dear usergroup, ... When I activated the apache--tomcat connection it took over ALL of the virtual hosts and was routing them through Tomcat, does anyone know how to stop that? Is it my Apache 2 and JK2 connectors, where do I turn now? Thank you in advance, I saw this

Successful build of mod_jk2 on Mac OS X Panther

2004-01-15 Thread Timothy Stone
List, I have successfully built mod_jk2 on Mac OS X Panther (10.3.2). I document my success at: http://forums.serverlogistics.com/viewtopic.php?t=644 *where comments are welcome.* NB: My success in part may be due to using ServerLogistic's Complete Apache 2.0.48 distro, so it is somewhat

Re: Building jakarta-tomcat-connectors-jk2-2.0.2-src [HOW?]

2004-01-12 Thread Timothy Stone
Carlos Cajina - Hotmail wrote: Hi everyone. Tryin' to build mod_jk2 for my Slackware box (version 9.1 with reiserfs) I've come to a dead-end, and I would appreciate any help since the documentation I've looked into (including the mailing lists) seems to be out of date regarding the building

Re: Apache2 + Tomcat4 + mod_jk2 success

2004-01-05 Thread Timothy Stone
...snip instructions... Ian, Thank you! Just want'd to pass along some notes from the field on this: 1. Works on RHL8 (psyche). 2. Config: Binary Tomcat in /usr/local/jakarta-tomcat-4.1.29 Source build of Apache 2.0.48 in /usr/local/httpd-2.0.48 # maybe not the most

Re: How to set the user runnig tomcat ? ( + start/stop problem)

2003-11-24 Thread Timothy Stone
Julien, If I can just provide you some feedback, at least if only to let you know that someone is reading and following this thread. :) I'm am trying to do the same, not on Linux but Mac OS X. I'm very interested in this as well. That said, allow me to provide some comments on your post:

Re: Starting Tomcat as nobody...

2003-11-22 Thread Timothy Stone
On Nov 21, 2003, at 9:42 PM, Timothy Stone wrote: Now, how do I start Tomcat as said user? It seems defeatist, at best, to have to login as root to start Tomcat. If I set permissions say 750 (rwxr-x---, this permission is shown in the aforemention Mac OS X directory listing) when I login

Starting Tomcat as nobody...

2003-11-21 Thread Timothy Stone
I have been devouring /Tomcat: TDG/ by Brittain and Darwin. I have regularly been using Tomcat for years, but some of security tips found in this book are valuable gems indeed. One such as installing Tomcat as a low- or non-privileged user like nobody. I know about the nobody user, starting

Re: mod_jk2, load balancing and TC:TDC

2003-09-11 Thread Timothy Stone
-Original Message- From: Timothy Stone [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 5:45 PM To: [EMAIL PROTECTED] Subject: mod_jk2, load balancing and TC:TDC What's not clear in the book, or the documentation, is if mod_jk2 on a given httpd instance autodiscovers other

mod_jk2, load balancing and TC:TDC

2003-09-04 Thread Timothy Stone
List, O'Reilly's new /Tomcat:The Definitive Guide/ is worth the purchase. But something seems a miss in the chapter on load balancing Tomcats with mod_jk2. I want to provide load balancing and failover as illustrated in the book (pg. 237, fig. 10-2). For those without the book, here's the

Re: [OT] how to pronounce Apache ?

2003-08-14 Thread Timothy Stone
John Turner wrote: Sheesh...that wasn't the poster's point. The point was: the pronunciation is the same as the pronunciation of Apache when the context is a Native American people. John [EMAIL PROTECTED] wrote: Apache has NOTHING to do with indigenous American people. It stands for a

Re: [OT] how to pronounce Apache ?

2003-08-14 Thread Timothy Stone
Madere, Colin wrote: Anyone smell revisionist history? :P Who's revising history? I first heard the A PAtCHy server story in a course on implementing web security. I found it humorous, but recall thinking at the time that I had read elsewhere that it was definitively named for the native

Re: Alternatives to DBCP

2003-06-23 Thread Timothy Stone
[EMAIL PROTECTED] wrote: Has anyone used any alternatives to the DBCP with Tomcat because it seems to get worse and worse as I use it more. Pete, Are you asking if there are other connection pool managers other than DBCP? Yes. Many. Unfortunately, I can only name a couple off the top of my

Re: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-17 Thread Timothy Stone
This issue is archived at: http://marc.theaimsgroup.com/?l=tomcat-userm=105578975520239w=2 Timothy Stone wrote: I have to say, the behavior seems almost identical to the described behavior of RequestDispatcher#include since control is given back to the forwarding servlet. The subtle differences

RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Timothy Stone
List, I'm having some trouble with using a RequestDispatcher, it works and doesn't work. #doPost( req, res ) ... 50 Customer customer = 51 Customer.findCustomer( emailAddress, custData); 52 53 if(( customer == null ) || 54( password == null ) || 55( !password.equals(

Re: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Timothy Stone
Tim Funk wrote: It should blow up at line 61. customer is null. Add a line 57.5: return; -Tim I know it's null :) That's the idea of checking to see if the customer or the password on the request is null, or if the password is incorrect. Forward the user to the /move/accounts.jsp. The forward is

Re: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Timothy Stone
Shapira, Yoav wrote: Howdy, The return; that Tim added is just as important as the null check... Yoav Shapira Millennium ChemInformatics Tim Funk wrote: It should blow up at line 61. customer is null. Add a line 57.5: return; -Tim I guess that the way I understood forward( req, res) was that

Re: RequestDispatcher anomolies (Tomcat v4.1.24)

2003-06-16 Thread Timothy Stone
Shapira, Yoav wrote: Howdy, I'm attaching a .zip file containing a .war that should help you convince yourself. I'd attach the .war or the source files directly but the listserv doesn't like that. Note the Servlet Specification, v2.3, does not mention whether/when method the method should return

getResourceAsStream and relative paths in web.xml

2003-06-13 Thread Timothy Stone
List, I'm following a twist on some advice that I got from Yoav Shapira. But in playing to learn more I ran across something that I have not been able to solve from reading the documentation. I want to put the relative path to a user=password property file in the web.xml. Given: #web.xml ...

Re: getResourceAsStream and relative paths in web.xml

2003-06-13 Thread Timothy Stone
1. Certainly, using a FileXXX class will attempt to interpret the init parameter value (/WEB-INF...) is an absolute path, because that's how absolute paths are defined for files. Thank you again Yoav. The recommendation then is to skip trying to use a FileInputStream (because the String provided

CATALINA_BASE --help

2003-06-10 Thread Timothy Stone
Gurus, I'm trying to get a better understanding of the CATALINA_BASE variable. Here is my dilemma (with ASCII art): I have a load balanced Tomcat (v4.0.6) configuration on Win2k using mod_jk + Apache 2. It's all working in a production environment. However, on occassion, about once a month, I

jdbc:odbc bridge and CSV/Excel

2003-06-06 Thread Timothy Stone
I've used the jdbc:odbc bridge for Access. Is it possible to do the same with comma-seperated text files and excel documents? The details I'll work out. For a simple web page. nothing exciting or robust. just need to do something quick and dirty with some exported data. Thanks, Tim

[OT] jdbc connections open?

2003-05-30 Thread Timothy Stone
I'm debugging an web app that seems to hang after three to four logins are initiated. One possible item to look at is the number of open connections to the MySQL database. The app was built around a number of Jakarta technologies about 8 months ago. What's the quickest way to check the number

placement of properties files

2003-05-29 Thread Timothy Stone
Q: where is the proper place for [props].properties files? such as something that might store username and password pairs. Not the best practice, but if one wanted to. Thanks, Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: placement of properties files

2003-05-29 Thread Timothy Stone
Shapira, Yoav wrote: Howdy, I agree with under WEB-INF as that's a directory the servlet container will protect for you. I don't like to put configuration information on the classpath however. I prefer to access them via other mechanisms, such as the ServletContext. So I would create a