jk2 and virtual hosts

2002-07-31 Thread Simon Stewart
I've installed Apache 2.0.39, Tomcat 4.0.4 and jk2 from cvs and I'm seeing some strange behaviour. My Apache setup has numerous virtual hosts, most of which don't require Tomcat at all, though the default host does. Tomcat is configured with several Hosts and Aliases in server.xml, and is only

Re: Java servlets html escape codes.

2002-07-30 Thread Simon Stewart
On Tue, Jul 30, 2002 at 11:05:31AM +0100, Anthony Geoghegan wrote: Anyone know a low overhead class or method for converting text strings to html escape coded strings (and back again) for java Servlet implementation? i.e. -- amp; Alex Chafee's PurpleTech classes have something that do

Virtual Hosts and jk2

2002-07-29 Thread Simon Stewart
What's the correct way to handle virtual hosts when using mod_jk2 and Apache 2? Currently, a snippet from my workers2.properties looks like: # define the worker [ajp13:localhost:8009] channel=channel.un:/usr/local/tomcat/work/jk2.socket # Example site [uri:/content/*] group=lb servlet=content

Re: Use Worker MPM with mod_webapp

2002-05-27 Thread Simon Stewart
On Fri, May 24, 2002 at 10:07:50AM +0800, Steve Wong wrote: BUT, when I run ./configure --with-apxs=. FOR mod_webapp It says that I cannot mix the gcc and native cc. AND the configuration failed. The configuration success if I use Solaris's ld to make Apache. Why will this happen

Re: Use Worker MPM with mod_webapp

2002-05-23 Thread Simon Stewart
On Thu, May 23, 2002 at 10:49:53AM +0800, Steve Wong wrote: Does mod_webapp workwell with Worker MPM?? I find no problem when I am using prefork MPM but return code to be 500 = when I am using worker MPM. My config is Apache2.0.35, mod_webapp built from =

Re: Mod Webapp?

2002-05-23 Thread Simon Stewart
On Thu, May 23, 2002 at 05:07:49PM +, steven shingler wrote: i agree with Jay that web5 definitely has to exist but also i think you have to add the webapp module after you've loaded it - put the line AddModule mod_webapp.c with all the other AddModules in the conf file Not with Apache

Re: Mod Webapp?

2002-05-23 Thread Simon Stewart
On Thu, May 23, 2002 at 05:46:40PM +, steven shingler wrote: ah-hah - cool well that's good to know - thanks Simon if Paul's still wrestling with this though - you said you were using apache 1.3.23 - so i still reckon you'll need the add_module line its easy to check though i reckon -

Re: Tomcat and Java Locale

2002-05-15 Thread Simon Stewart
On Wed, 2002-05-15 at 20:03, Nance, Michael wrote: I am trying to solve a problem we are having with Non-ASCII characters and the Euro. First I am starting tomcat with -Dfile.encoding=ISO8859-1 in out java startup. However if I do something like this Locale localeTest = new

Re: Any one knows how to compile, install mod_jk on Apache2 andTomca t4.0.3?

2002-05-15 Thread Simon Stewart
On Wed, 2002-05-15 at 23:15, [EMAIL PROTECTED] wrote: Hi, If any one knows how to install mod_jk AJP on Apache2 and Tomcat4.0.3. Please show us here. Many people here are having problem with that. I even don't know if it will work for Apache2 and Tomcat4.0.3. IME, it doesn't work on Linux,

Re: Doing some work when an image is requested

2002-05-14 Thread Simon Stewart
On Tue, May 14, 2002 at 12:42:31PM +0100, Ben Rometsch wrote: Hi there, I dont think this has been asked before...Apologies if it has. I want to trigger Tomcat (4.0.3) into doing some work (writing a record to a DB, so ideally I want to execute a javabean method) when a specific image

Re: Doing some work when an image is requested

2002-05-14 Thread Simon Stewart
-filters.html HTH. On Tue, May 14, 2002 at 01:19:57PM +0100, Ben Rometsch wrote: Hi There, Sorry - could you explain a little further? I'm not quite sure where you're coming from... Many thanks for the reply, Ben -Original Message- From: Simon Stewart [mailto:[EMAIL PROTECTED

Re: mod_jk setup

2002-05-13 Thread Simon Stewart
It'll only bring you pain and grief, but here's how I did it on linux:q http://www.pubbitch.org/jboss I'll test with the latest CVS when I get a chance and update the HOWTO. There's been a site with tips for win32 that's been posted to the list several times. Have a root through the archives

Re: Which Connector for Tomcat 4.0.3 - mod_webapp or mod_jk

2002-05-03 Thread Simon Stewart
On Thu, May 02, 2002 at 09:55:29AM -0700, [EMAIL PROTECTED] wrote: One of the goals of mod_jk2 is to go further and be able to operate with only 'standard' apache directives and configuration ( i.e. Location and SetHandler ). That'll be much faster and easier to integrate - but even more

Re: how to configure apache 2.0.35 with --enable-mods-shared=most switch on

2002-04-27 Thread Simon Stewart
On Fri, Apr 26, 2002 at 03:41:37PM -0400, Cheng Yan wrote: As root, I did the following: snip However, I can not invoke apache: root@tbird 75 % /usr/tomcat/apache_source_withMod/bin/apachectl start (125)Address already in use: make_sock: could not bind to address [::]:80 no listening

Re: Mod_jk for apache2.0

2002-04-26 Thread Simon Stewart
On Fri, Apr 26, 2002 at 04:34:19PM +0530, Damnish wrote: Can anyone tell me url to get the bin of mod_jk for linux for apache2.0. Don't do it! IME, mod_jk for apache2 on UNIX is fails to connect and mod_jk2 sends apache into an infinte loop. mod_webapp appears to work properly, though

Re: Apache 2, Tomcat 4 and mod_jk2

2002-04-26 Thread Simon Stewart
The workers can be called anything you want them to be (for example, I use tomcat1) What tends to happen is that people take their (working) apache 1.3.x + mod_jk combo and use the same config files with apache 2.x and mod_jk2. On Fri, Apr 26, 2002 at 10:09:42AM -0400, Anthony W. Marino wrote:

Re: How to enforce SSL???

2002-04-26 Thread Simon Stewart
Check the value of request.isSecure() and Do The Right Thing ;) It's the app that cares whether the page is secure. On Fri, Apr 26, 2002 at 05:04:01PM +0100, Steve D George wrote: Hi, I'm working with a standalone Tomcat 4.0.2 on W2K. I've just gone through the SSL How To and created myself a

Re: Error compiling mod_webapp for debian Linux

2002-04-25 Thread Simon Stewart
On Wed, Apr 24, 2002 at 03:53:34PM -0400, Andy Carlisle wrote: For purposes of recording this on the user group so that others may benefit (if they bother to check first that is ;- ), here is exactly what I did: Thank you, Jeffrey, for posting the steps needed to get mod_webapp built for

Apache 2, Tomcat 4 and mod_jk2

2002-04-25 Thread Simon Stewart
Thanks to Michael Delamere and Pascal Forget, I'm happy to shout out that there's a HOWTO for setting up Apache 2, mod_jk2 and Tomcat on Linux (and therefore probably other UNIX flavours) It's linked from http://www.pubbitch.org/jboss Regards, Simon -- I'm moving to Mars next week, so if you

Re: secure connections with SSL

2002-04-25 Thread Simon Stewart
On Thu, Apr 25, 2002 at 12:15:58PM -0300, Sidney Barbosa Ansaloni wrote: Hi, I'm using TomCat 4.0.3-LE and J2SDK 1.4.0 in a Win98 PC. I've been deploying a web application and I would like that only certain pages run under SSL in my application (I've already configurated my TomCat to work

Re: Compiling mod_jk on Win2K, anyone?

2002-04-25 Thread Simon Stewart
On Thu, Apr 25, 2002 at 12:06:17PM -0400, Douglas, Rory wrote: Hello It seems some people are having success getting mod_jk2 compiled on Linux platforms. Is this the only way? There is a site with a Win32 DLL on it for mod_jk somewhere, but I can't remember where. It's been mentioned in

Re: Apache 2.0, mod_webapp, Redhat 7.2 build problem

2002-04-25 Thread Simon Stewart
The build process is buggy. This is something that has been discussed a lot recently, and there's a HOWTO that I've knocked up from my own experiences and those on the list. Take a look at http://www.pubbitch.org/jboss/ for the document. HTH! Cheers, Simon -- You know, I've gone to a lot of

Re: Apache 2.0, mod_webapp, tomcat 4.x integration

2002-04-25 Thread Simon Stewart
On Thu, Apr 25, 2002 at 01:49:33PM -0400, digital synapse wrote: i've managed to load tomcat and apache 2.035 fine with your supplied mod_webapp.so file Simon. I both tomcat and apache work on problem on their own however when i go to www.liquidshell.net/examples it gives me a Object

Re: Apache 2.0 and Tomcat 4.0.3 integration help need

2002-04-24 Thread Simon Stewart
wa_pool is defined in libwebapp.so (wa_main.c fwiw) If you haven't deleted or cleaned the source tree, you might want to make sure that this file was compiled (there should be a wa_main.o file in the webapp/lib directory) You should also have a libwebapp.so file that's larger than 0 bytes. If

Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Simon Stewart
On Tue, Apr 23, 2002 at 07:02:38PM -0400, Anthony W. Marino wrote: Any reason for using AJP14 over AJP13? And what about mod_webapp? I take it that this is mod_jk and mod_jk2? IME, mod_jk and Apache 2 don't get along well at all[1]. The impression that I've gleaned from reading past postings

Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread Simon Stewart
On Wed, Apr 24, 2002 at 04:34:42PM +0800, yilmaz wrote: Hi everyone, i know everyone is already sick of reading problems about apache and tomcat. I read almost all related mails and articles (how-to's) on the internet , which didn't help. i am working with tomcat 4.0-b7 on win 2000. And

Re: Apache 2.0 and Tomcat 4.0.3 integration help need

2002-04-24 Thread Simon Stewart
apache due to this wa_pool error -digitalsy From: Simon Stewart [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need Date: Wed, 24 Apr 2002 10:38:49 +0100 wa_pool

Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Simon Stewart
On Wed, Apr 24, 2002 at 08:04:17AM -0400, Anthony W. Marino wrote: On Tue, Apr 23, 2002 at 07:02:38PM -0400, Anthony W. Marino wrote: Any reason for using AJP14 over AJP13? And what about mod_webapp? I take it that this is mod_jk and mod_jk2? IME, mod_jk and Apache 2 don't get along

Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Simon Stewart
On Wed, Apr 24, 2002 at 08:31:44AM -0400, Anthony W. Marino wrote: On Wednesday 24 April 2002 08:23 am, Simon Stewart wrote: On Wed, Apr 24, 2002 at 08:04:17AM -0400, Anthony W. Marino wrote: On Tue, Apr 23, 2002 at 07:02:38PM -0400, Anthony W. Marino wrote: Is warp in the coyote

Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Simon Stewart
AFAIK, you have to compile that from source. On Wed, Apr 24, 2002 at 09:03:12AM -0400, Anthony W. Marino wrote: When you go the the coyote drop there are instructions on using it, however, where's the Apache specific part of the instructions and module??? Anthony Cheers, Simon -- The

Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread Simon Stewart
, except when i add LoadModule webapp_module modules/mod_webapp.so into the httpd.config file (as it is instructed) , and restart the apache, it can't start. Obviously the problem is with the above line of code. Any suggestions ? Thanks :) - Original Message - From: Simon Stewart [EMAIL

Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Simon Stewart
It isn't so. You can still serve static pages, but they'll come through Tomcat and then apache, rather than being served straight from apache. End result: you'll see a speed hit. This is what's being fixed, as I understand it. On Wed, Apr 24, 2002 at 03:00:59PM +, Lance Smith wrote: Using:

Re: Which Apache-To-Tomcat Connector

2002-04-24 Thread Simon Stewart
- From: Simon Stewart [mailto:[EMAIL PROTECTED]] Sent: April 24, 2002 8:11 AM To: Tomcat Users List Subject: Re: Which Apache-To-Tomcat Connector It isn't so. You can still serve static pages, but they'll come through Tomcat and then apache, rather than being served straight from apache

Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread Simon Stewart
be? thanks :) - Original Message - From: Simon Stewart [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 10:28 PM Subject: Re: LoadModule webapp_module modules/mod_webapp.so apachectl configtest ultimately runs httpd -t, so you could try

Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread Simon Stewart
Above any WebApp* directives. In apache 2, also include the port number. I've got: ServerName localhost:80 in my httpd.conf On Wed, Apr 24, 2002 at 11:52:45AM -0400, Dan K. wrote: Also, make sure you have a ServerName directive in your httpd.conf if you don't have it. Regards, Dan

Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread Simon Stewart
You attempt to define the warpConnection twice, once to localhost, once to a remote machine. This is mistake, and you can get round it by simply renaming one of the warpConnections (warpConnection2 if you're feeling unadventurous :) Does that help? Have you also tried the LoadModule line and not

Re: LoadModule webapp_module modules/mod_webapp.so

2002-04-24 Thread Simon Stewart
John, this is apache 2: you don't need the AddModule. That got left behind from Apache 1.3.x On Wed, Apr 24, 2002 at 05:44:14PM +0100, John Burgess wrote: One thing I've noticed is that you have two WebAppConnection lines, both defining the same name of connection -- either remove one or give

Re: Apache 2.0 and Tomcat 4.0.3 integration help need

2002-04-23 Thread Simon Stewart
A 0 length mod_webapp.slo file appears to be expected (on Linux, at least) I'm using the GNU dev chain. As a shot in the dark, once you've CDd to apache-2.0, try: ${APACHE_HOME}/build/libtool --silent --mode=link \ gcc -shared -o mod_webapp.so -rpath /usr/local/apache2/modules \ -module

Re: Apache 2.0.35, tomcat 4.0.3 and mod_webapp

2002-04-22 Thread Simon Stewart
On Sat, Apr 20, 2002 at 10:04:35PM -0400, Jeffrey Bonevich wrote: Simon Stewart wrote: Yet more digging suggests that this could be a bug: attaching an strace to the httpd process as it starts up gives: write(2, Syntax error on line 1018 of /us..., 66) = 66 write(2, Duplicate connection

Tomcat and Apache 2

2002-04-22 Thread Simon Stewart
There have been quite a few posts about how to integrate Apache 2 and Tomcat 4, and Jeff Bonevich has posted a HOWTO here, which you may have already read. I've taken the HOWTO, edited it a bit and added some extra notes on using Apache, Tomcat and JBoss 3 and put it on a website, because I know

Re: Tomcat and Apache 2

2002-04-22 Thread Simon Stewart
Something had to slip through the net, didn't it ;) Thanks for pointing that out; I've updated the HOWTO with your suggested URL. On Mon, Apr 22, 2002 at 03:44:07PM +0100, Alex Potter wrote: Simon an excellent document, however, the location of the mod_webapp connector source is given

Re: Tomcat and Apache 2

2002-04-22 Thread Simon Stewart
- From: Simon Stewart [mailto:[EMAIL PROTECTED]] Sent: 22 April 2002 16:03 To: Tomcat Users List Subject: Re: Tomcat and Apache 2 Something had to slip through the net, didn't it ;) Thanks for pointing that out; I've updated the HOWTO with your suggested URL. On Mon, Apr 22, 2002

Re: Apache 2.0.35, tomcat 4.0.3 and mod_webapp

2002-04-20 Thread Simon Stewart
On Fri, Apr 19, 2002 at 11:23:44PM -0400, Jeffrey Bonevich wrote: Simon Stewart wrote: Having looked through the mailing list archives, this looks like a popular subject, and I think that I've almost got it cracked. Almost. After following the advice in http://www.mail-archive.com

Re: Apache 2.0.35, tomcat 4.0.3 and mod_webapp

2002-04-20 Thread Simon Stewart
I've been doing some more work on this, and part of the problem appears to be the relative position of the ServerName and WebApp* directives. If the ServerName is declared above the WebApp* directive, there are no complaints about the invalid server name, but httpd now doesn't start at all

Re: Apache 2.0.35, tomcat 4.0.3 and mod_webapp

2002-04-20 Thread Simon Stewart
Yet more digging suggests that this could be a bug: attaching an strace to the httpd process as it starts up gives: write(2, Syntax error on line 1018 of /us..., 66) = 66 write(2, Duplicate connection name\n, 26) = 26 _exit(1)= ? Where line 1018 refers to:

Apache 2.0.35, tomcat 4.0.3 and mod_webapp

2002-04-19 Thread Simon Stewart
Having looked through the mailing list archives, this looks like a popular subject, and I think that I've almost got it cracked. Almost. After following the advice in http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg51557.html I just thought that people might like to know that

Re: Linking Apache 2 and Tomcat 4.0.3

2002-04-19 Thread Simon Stewart
I've found http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg51557.html to be the most useful source of info that I've found. Seems to work, too. :) Cheers, Simon -- I plead contemporary insanity. On Fri, Apr 19, 2002 at 05:43:40PM -0700, Ken Miller wrote: Can you tell me how