Apache-Tomcat RewriteRule..
Hi I trying to get requests to all non-existing files redirected to a servlet. I'm using the following rule inspired by the Apache 1.3 Url Rewriting Guide: IfModule mod_rewrite.c RewriteEngine on RewriteLog /var/log/httpd/rewrite_log RewriteLogLevel 2 RewriteCond /home/docroot/%{REQUEST_FILENAME} !-f RewriteRule ^(.+)/servlet$1 /IfModule But this produces the following error in the Apache error log trying to access the HelloWorldExample servlet (copied from examples to ROOT): [date and time] [error] [client ip] File does not exist: /home/docroot/servlet/HelloWorldExample I'm loading the mod_jk module before the mod_rewrite module in httpd.conf. Doesn't the mod_jk catch the rewrited path or does the /home/docroot part of path do the damage? How do I get rid of the /home/docroot part?? Thanks, Christian Bjørnbak
Multiple sites on RequestController..
Hi We are building af site where a lot of companies are having there on site (expressed with xml and xslt) and sharing one common RequestController servlet. The url today is http://www.ourportal.com/requestControllerServlet?companyid=aCompany which isn't that readable or remendable for the average internet user. So I would like to setup Apache/Tomcat to serv the same servlet using the following url: http://www.ourportal.com/aCompany. I could be done with web.xml, but the company list is dynamic (we need to be able to add and delete companies without restarting the application)... I been thinking about doing it by suppling the companyid as PathInfo and map the servlet with DirectoryIndex (see my other posting). But I guess PathInfo and DirectoryIndex won't work at the same time.. Anyone any ideas?? Apache should still serv static material as images.. Thanks, /Christian Bjrnbak
Where is Alex.Garret??
Hi Posting to tomcat-user I get the following error message from [EMAIL PROTECTED] Could somebody please remove [EMAIL PROTECTED] from the list?? /Christian Bjrnbak -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 9. april 2001 08:29 To: [EMAIL PROTECTED] Subject: Undeliverable: Multiple sites on RequestController.. Your message To: '[EMAIL PROTECTED]' Subject: Multiple sites on RequestController.. Sent:Mon, 9 Apr 2001 01:28:06 -0500 did not reach the following recipient(s): [EMAIL PROTECTED] on Mon, 9 Apr 2001 01:29:09 -0500 The recipient name is not recognized The MTS-ID of the original message is: c=us;a=mark400;p=ge;l=KANS015CERCGE01040906292K9Q3FX0 MSEXCH:IMS:GE:CAPITALCERCNA:KANS015CERCGE 0 (000C05A6) Unknown Recipient Hi We are building af site where a lot of companies are having there on site (expressed with xml and xslt) and sharing one common RequestController servlet. The url today is http://www.ourportal.com/requestControllerServlet?companyid=aCompany which isn't that readable or remendable for the average internet user. So I would like to setup Apache/Tomcat to serv the same servlet using the following url: http://www.ourportal.com/aCompany. I could be done with web.xml, but the company list is dynamic (we need to be able to add and delete companies without restarting the application)... I been thinking about doing it by suppling the companyid as PathInfo and map the servlet with DirectoryIndex (see my other posting). But I guess PathInfo and DirectoryIndex won't work at the same time.. Anyone any ideas?? Apache should still serv static material as images.. Thanks, /Christian Bj ørnbak
RE: Apache 1.3.9. and Tomcat 3.2.1 integration
Hi Oracle IAS 8i is distributed with Jserv... So you have to remove this Oracle specific Jserv configuration - It's referenced in Httpd and the file is called oracle_web.conf or something. Hope it helps.. /Christian Bjrnbak -Original Message- From: Anne-Marie Ternes [mailto:[EMAIL PROTECTED]] Sent: 9. april 2001 12:20 To: [EMAIL PROTECTED] Subject: Apache 1.3.9. and Tomcat 3.2.1 integration Hi, I'm using here Oracle's IAS 8i, which is basically an Apache 1.3.9 web server. I've been trying desperately to integrate Tomcat into Apache. Tomcat on itself runs ok, the examples work. But when I try to start Apache, I always get a message telling me that several "ApJServ" directives should not be defined several times for the same host. So I tried to delete these directives from the Tomcat conf files, but to no avail, as these files are always recreated. He didn't neither accept that I delete them from jserv.conf. BTW, the documentation (Tomcat User Guide) is very confusing. I didn't really understand which one of tomcat.conf and tomcat-apache.conf I had to include in httpds.conf? Also, does jserv.conf still need to be included to? In the end I tried to get them again working separately, which is fine for Tomcat, but now Apache tells me that I had to mention the ApJServSecretKey feature. This directive IS in jserv.conf, not commented, and spelled correctly. I'd be really glad if someone could help me with this. The aim is to get Tomcat working with Apache, so that JSP and servlets are passed to Tomcat and Apache manages static files. Thank you very much in advance, Anne-Marie Ternes -- = Anne-Marie Ternes Informaticien diplm Centre Informatique de l'Etat B.P. L-1011 Luxembourg Tl: 49 925 642 E-Mail: [EMAIL PROTECTED] =
DirectoryIndex - /servlet/MyServlet
Hi How do I setup Apache to use /servlet/MyServlet as DirectoryIndex? Let's say I have the following url: http://www.mydomain.com I would like to get it translated it to http://www.mydomain.com/servlet/MyServlet /Christian Bjrnbak
EJB Connection Pool in Tomcat
Hi Does anyone know of a EJB Connection Pool to used in Tomcat? /Christian
XMLC on Tomcat
Hi Using a XMLC (from Enhydra.org) based Servlet on Tomcat gives a NoSuchMethodException. Consulting the XMLC maillinglist gives the answer that it's proberly because I use a level 1 DOM parser instead of the level 2 I should use... As I'm starting Tomcat without a classpath the only DOM parser to override the one in the xmlc.jar is the one in the tomcat xml.jar!? Is it correct that it is a level 1 DOM parser in Tomcat 3.1? Is it changed in newer Tomcats? Can I change it? How? Thanks, Christian Bjørnbak
RE: Tomcat and a watch guard firewall
Hi Peter Acording the standard Tomcat configuration files the ports used is 8080 for standalone connections to Tomcat and port 8007 for Apache connection... See server.xml for Tomcat configuration and apache-tomcat.conf for mod_jserv configuration in the tomcat/conf directory. /Christian Bjørnbak -Original Message- From: Pete Chase [mailto:[EMAIL PROTECTED]] Sent: 23. november 2000 15:59 To: '[EMAIL PROTECTED]' Subject: Tomcat and a watch guard firewall We currently have a Watchguard firewall and we are having problems getting access to the Tomcat server externally (internal connections show the site is running OK). We have opened port 8020 which the development team tell us is the standard port. The firewall does do a port mapping so port x.x.x.254 is mapped to y.y.y.254. Has anyone come across any issues with Firewall configuration ? Thanks Peter Chase __ Confidentiality Notice This message may contain privileged and confidential information. If you think, for any reason, that this message may have been addressed to you in error, you must not disseminate, copy or take any action in reliance on it, and we would ask you to notify us immediately by return email to "[EMAIL PROTECTED]". Registered Office:IMRglobal Limited, Broadlands House, Primett Road, Stevenage, Herts. SG1 3EE Registered Number: 1499718