Re: Why is Tomcat/Connector Installation So Incredibly Painful??

2004-09-08 Thread Greg Ward
On 07 September 2004, Endre St?lsvik said: The mod_jk approach of inventing a new binary protocol and whatnot is maybe not the right solution for this. A simple raw forwarding of the requests from Apache HTTPD to Apache Tomcat would be incredibly nice. Do what I did: try to replace mod_jk with

Re: Why is Tomcat/Connector Installation So Incredibly Painful??

2004-09-08 Thread Greg Ward
[me] * to forward both SSL and non-SSL requests with mod_proxy, you'd need two HTTP connectors in Tomcat, meaning two thread pools [Yoav Shapiro] This is a serious stumbling block? Really? I buy your other (redirect-related) argument but not this one at all. You can easily configure

Re: Why is Tomcat/Connector Installation So Incredibly Painful??

2004-09-07 Thread Greg Ward
On 03 September 2004, Peter Alvin said: But why is it so incredibly painful to install Apache/Tomcat/Connector? It always takes me about two days. I look forward to it as much as doing my federal tax returns. I'm in complete agreement with you. Even finding the right files to download is a

Re: RHEL 3.0, Tomcat 4.x and IPTables

2004-09-02 Thread Greg Ward
On 02 September 2004, Sean Finkel said: When Tomcat hangs, what happens is, half the page is returned to the browser and the status bar sits at waiting for domain.com. As Soon as I issue service iptables stop the page finishes loading, and I cannot make any other pages half-load. Any apache

Re: Tomcat 4.1.29 - Special chars in a file name

2004-08-31 Thread Greg Ward
On 31 August 2004, Surendra Kumar said: Hi I am using Tomcat 4.1.29 + Apache 1.3.31. In one of my webapp i have a file named test+.gif Probably a URL encoding problem -- if a web page includes a href=test+.gif then the browser will ask for test .gif, because test+.gif is one of the

IllegalStateException from java.nio.charset.CharsetEncoder

2004-08-31 Thread Greg Ward
On one of our servers, we're using Tomcat 4.1.29 under Java 1.4.2_02, connecting to Apache 2.0.48 with mod_jk 1.2.4, all running on Red Hat Linux 6.2. (Wow, what a zoo of version numbers!) Recently we got a support call because some (all?) HTTP requests were failing with Internal Server Error.

Re: change mod_jk2.conf without restarting Apache

2004-08-25 Thread Greg Ward
On 23 August 2004, Richard Dyson said: I'm working on a web application (platform details - SuSE 8.2, Apache 2.0.50, mod_jk2 as the connector between Tomcat and Apache). My intention is to make changes to mod_jk2.conf (add/remove LocationMatch blocks), and have Apache pick them up

Re: ajp1.3 errors while using tomcat 5.0.25, apache 2.0.49, modjk2

2004-08-20 Thread Greg Ward
On 17 August 2004, dawg fan said: I get the following error in apache's error logs while testing tomcat under extreme load: [Tue Aug 17 14:15:25 2004] [error] channelApr.receive(): Error receiving message body -1 11 [Tue Aug 17 14:15:25 2004] [error] workerEnv.processCallbacks() Error

HttpConnector: seting proxyName dynamically

2004-08-11 Thread Greg Ward
Hello -- I'm trying to setup Apache 2.0.50 and Tomcat 4.1.30 together, with requests relayed from Apache to Tomcat using mod_proxy. (We've been using mod_jk for many months, but have observed random, hard-to-reproduce flakiness, so I'm investigating the possibility of dropping mod_jk in favour of

Re: HttpConnector: seting proxyName dynamically

2004-08-11 Thread Greg Ward
On 11 August 2004, I said: Everything works fine as long as I set proxyName and proxyPort in the Connector element, eg.: Connector className=org.apache.catalina.connector.http.HttpConnector address=127.0.0.1 port=8180 proxyName=servername proxyPort=80

Re: Can't compile jk 1.2.6

2004-08-04 Thread Greg Ward
On 03 August 2004, Joseph Shraibman said: Then configure ends with: creating libtool checking for test... /usr/bin/test checking for rm... /bin/rm checking for grep... /bin/grep checking for echo... /bin/echo checking for sed... /bin/sed checking for cp... /bin/cp checking for mkdir...

Re: ajp over ssl

2004-08-04 Thread Greg Ward
On 03 August 2004, Michael J?rgens said: No I want to connect an apache webserver over internet to a tomcat server. So far I have no problem. My problem is, how to secure the connection between apache and tomcat. One idea: you could use mod_proxy as the Apache/Tomcat connection rather than

mod_jk2: channelApr.receive(): Error receiving message body

2004-07-21 Thread Greg Ward
I've just compiled Apache 2.0.50 and mod_jk2 2.0.4. (We've been using mod_jk 1.2.4 for a while, and it seems to work -- but we have observed occasional problems with response bodies being truncated. So I figured as long as I'm building a new Apache, might as well throw in mod_jk2 and see if it

Thread reuse question (Tomcat 4.1)

2004-06-08 Thread Greg Ward
I have a question motivated by our application's slightly peculiar logging requirements. (Details below, if you're curious.) Specifically, does Tomcat 4.1 reuse request-processing threads across web apps, or only within a single web app? I.e. if thread X is created to service a request for web

Re: HTML quoting

2003-10-03 Thread Greg Ward
On 02 October 2003, Andy Eastham said: Standard one is java.net.URLEncoder.encode() and java.net.URLEncoder.decode() No. HTML quoting and URL encoding are quite different. URLEncoder.encode() on my test string returns Jeb+said%2C+%22Hell+%26+damnation%21+Is+5+%3E+4%3F%22 (It would also be

Re: HTML quoting

2003-10-03 Thread Greg Ward
On 02 October 2003, Tim Funk said: JSTL by default escapes all output to be HTML friendly c:out value=${myValue}/ and to disable: c:out value=${myValue} escapeXML=false/ Alas, I'm working on some crufty old servlets that are chock full of System.out.println( ... boatloads of HTML ...); We

HTML quoting

2003-10-02 Thread Greg Ward
What's the standard way of quoting text for inclusion in a web page in Java? Ie. I need a method to convert the string Jeb said, Hell damnation! Is 5 4? to Jeb said, quot;Hell amp; damnation! Is 5 gt; 4?quot; (I think: I've never been entirely sure what the right way to handle quotes

Re: Stop Tomcat Remotely

2003-09-24 Thread Greg Ward
On 24 September 2003, srinath narasimhan said: Is there any way to stop tomcat from remote computer ? Tomcat is run as windows service. Well, how do you normally run commands remotely with Windows? If the server is a Unix box, you could do this: ssh [EMAIL PROTECTED]

Simple command-line manager tool?

2003-09-23 Thread Greg Ward
Has anyone written a simple command-line interface to the Tomcat Manager? Having Ant tasks is nice, but I have no intention of installing Ant on our production servers. I'm thinking of something like this: # tomcat restart app1 # tomcat stop app2 ...where all the script does is stitch the

Re: Disabling session management (FAQ not enough)

2003-09-22 Thread Greg Ward
On 20 September 2003, Chris Rolfe said: You might try: Manager classname=org.apache.catalina.session.StandardManager pathname= / Yep, I eventually found that in the O'Reilly Tomcat book. Turns out classname isn't even necessary, so this is a one-line-of-XML-per-context configuration

Disabling session management (FAQ not enough)

2003-09-18 Thread Greg Ward
I would like to completely disable Tomcat session management. I'm in the process of porting a legacy app with homebrew session management from JServ to Tomcat, and I want to keep using that homebrew session management for the time being. (I'm using Tomcat 4.1.24, JDK 1.4.0.) Currently, Tomcat's

Re: Disabling session management (FAQ not enough)

2003-09-18 Thread Greg Ward
On 18 September 2003, Greg Ward said: Surely someone has written a dummy session manager class that does nothing... OK, I took a crack at this. My first attempt at DummySessionManager looked like this: import org.apache.catalina.Manager; class DummySessionManager implements Manager

Re: Memory leaks?

2003-09-04 Thread Greg Ward
On 03 September 2003, Jim Lynch said: OK, that's probably what's going on. I know I should close Statements and Connections and do normally but I'm fairly certain I've some out there dangling. I didn't know you had to close ResultSets, however. Glad to know that. You don't have to close

Re: setting the field focus with a servlet

2003-09-04 Thread Greg Ward
On 04 September 2003, Luke Vanderfluit said: I am working on a servlet that checks a form content without using javascript. Does anyone know if there is a way to set the focus to a particular field using java? I think you need to learn how HTML forms work and interact with the browser. If