Re: CRUD Operations using Tomcat

2004-07-20 Thread Graham Leggett
Valter G. Nogueira Jr. wrote: I am looking for good ways to implements CRUD ops using Tomcat We use Apache Struts to implement the CRUD approach, along with it's DynaActionForms feature. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature

Re: x-forwarded-for

2004-07-19 Thread Graham Leggett
Boulay Arnaud wrote: I would like to know how I can catch the real client IP address with Tomcat even if there is some proxy between them. If you're using unsecured HTTP, the X-Forwarded-For header might help you in some cases, but as there is no guarantee that all proxy servers add this header

Re: can a virtual host have its own privatly used SSL certificate?

2004-07-15 Thread Graham Leggett
Guy Katz wrote: i am going to put my application in a shared hosting solution which does not provide any shared SSL support. is it possible to buy and put a SSL certificate in the scope of my virtual host in the hosting company. (i mean is it technically possible - disregarding the hosting

Re: can a virtual host have its own privatly used SSL certificate ?

2004-07-15 Thread Graham Leggett
Guy Katz wrote: thanks but are you sure? I'm sure. i read some more and got the impression that when using apache+tomcat with ip based virtual hosting this can be achieved. The problem is that there can only be one certificate per listening port that tomcat is listening on, and the certificate

Re: can a virtual host have its own privatly used SSL certificate ?

2004-07-15 Thread Graham Leggett
Guy Katz wrote: you are relating to tomcat. i think in my situation they have a different listen port for every vhost internally such that the apache server delivers the http request on different ports for different vhost. does this simplify the problem? This is the way to get around this problem

Re: can a virtual host have its own privatly used SSL certificate?

2004-07-15 Thread Graham Leggett
Nikola Milutinovic wrote: SSL is done on IP level. I think (correct me if I'm wrong) that TLS is on application level, but I haven't heard of HTTP/TLS. HTTP/TLS does exist, it just isn't supported by the major servers yet. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature

Re: can a virtual host have its own privatly used SSL certificate ?

2004-07-15 Thread Graham Leggett
Carl Olivier wrote: Actually, you can as far as I know. Technically no - what you're describing is the setup for a dedicated IP per host, not virtual host. You're describing the correct solution, it's just that calling it a virtual host is potentially confusing, as the virtual part is no

Tomcat 5, proxy and SSL accelerators

2004-07-07 Thread Graham Leggett
Hi all, I have a tomcat server running behind an SSL accelerator. I have used the proxyName and proxyPort config settings to make sure the real name of the server is used by the web application, but I can find no way of telling the web app that it is running on a secure server. Our server

Tomcat RPMs and database pools - no joy

2004-06-17 Thread Graham Leggett
Hi all, I have a war that connects to a database pool defined in a Resource section within server.xml. This war is run in a tomcat v5.0.19 environment as binary released by the jakarta project, and works 100%. I now want to deploy the war inside a jpackage RPM version of tomcat on my

Re: Tomcat 5 Database Connections

2004-06-17 Thread Graham Leggett
Jeff Sexton wrote: This week I realized that my servlets are getting: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: null As a test, try the binary package as provided by Jakarta for tomcat (unless of course you are already doing

Re: Tomcat 5 Database Connections

2004-06-17 Thread Graham Leggett
Jeff Sexton wrote: I'm working with the binary for 5.0.24. Maybe I should try 5.0.19. I tried the v5.0.24 RPM, and then downgraded it to v5.0.19 to be the same as our development version, which is the binary v5.0.19. One thing I did not mention is that I am doing this on AIX, but that doesn't

JNDI based Datasource - anybody got a working example?

2003-11-15 Thread Graham Leggett
Hi all, I am trying to configure tomcat to provide a JNDI Datasource, both so that the container can provide Basic Authentication, and for the war file to use (via Torque). I have followed the instructions at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html,

Re: JNDI based Datasource - anybody got a working example?

2003-11-15 Thread Graham Leggett
Christopher Schultz wrote: I was getting this same error and played around for the better part of two days to get this working. Finally, I can do all of these things: 1. Use the Realm the way I want to 2. Have Torque use the same JNDI DataSource (Just so you know, this is what I use for my

Basic auth setup The request sent by the client was syntactically incorrect

2003-11-14 Thread Graham Leggett
Hi all, I have been trying to follow the bits and pieces of docs that describe how to configure a DataSource, and then configure a Basic Authentication security constraint, against that DataSource. When I access the protected URL, instead of getting 401 Auth Required, I get 400 The request

Re: Basic auth setup The request sent by the client was syntactically incorrect

2003-11-14 Thread Graham Leggett
Graham Leggett wrote: When I access the protected URL, instead of getting 401 Auth Required, I get 400 The request sent by the client was syntactically incorrect instead. No error messages are logged anywhere. url-pattern/*.do/url-pattern Turned out the /*.do didn't match - changed

Setting cache headers on tomcat served files - How?

2003-01-06 Thread Graham Leggett
Hi all, I have a web application running within tomcat which serves both JSP files and static GIF files. I need to set the cache-control headers on the GIF files to specify Cache-Control: no-cache. This is easy to do for the JSP files, but I can find no reference on how to do it for static

Re: tunneling https through http

2002-05-16 Thread Graham Leggett
Rich Catlett wrote: Yes, I am trying to access an https site through a proxy. As I said before I'm asking this question because the error I get on the client side - Unrecognized SSL handshake says, as far as I can tell, that an https connection is being attempted on an http line. I have

Re: Apache/Tomcat meet Visa

2002-05-11 Thread Graham Leggett
Brian Tol wrote: In particular, the bottom half of page 12 refers to Network encryption (VPN) may be used betweeen any merchant system and any back-end database and on page 14: When transmitting data across networks, always use encryption techniques... If I'm reading this correctly, it

Re: Session Problem - URGENT!!!!

2002-05-10 Thread Graham Leggett
Jack Li wrote: -1 -1 means veto, and is only used by people with a veto. So - do you have a veto, or are you just being a wiseass? ;) Regards, Graham -- - [EMAIL PROTECTED]There's a moon over

Tomcat + IBMJava/LinuxPPC - out of memory

2002-04-24 Thread Graham Leggett
Hi all, I have a Tomcat v4.0.1 installation that currently works 100% using the Blackdown JDK v1.3.1 for LinuxPPC, however there is no JIT compiler for this platform. I have given the IBMJava JDK v1.3.1 pSeries a try, however this JDK bombs out on startup every time with the following error:

Tomcat v4.01 refuses to install on WinXP

2002-01-09 Thread Graham Leggett
Hi all, I have had a long lasting headache trying to get the Installshield version of Tomcat to install at all under Windows XP. I have tried both the IBM JDK v1.3, and the Sun JDK (enterprise edition) v1.3, and neither of these JDKs can be found by the Tomcat Installshield. In both cases the

Re: Tomcat v4.01 refuses to install on WinXP

2002-01-09 Thread Graham Leggett
[EMAIL PROTECTED] wrote: I don't use any installshield version, I use the nullsoft (who doesn't know WinAmp?) install version from the jakarta website. Well... I am just assuming it is installshield but I could be wrong - the file is called jakarta-tomcat-4.0.1.exe and I downloaded it from

Tomcat installer cannot find IBM JDK

2001-12-13 Thread Graham Leggett
Hi all, I just installed the IBM JDK v1.3 on a Windows 98 SE machine, then tried to install Tomcat v4.0.1 from the .exe installer. The installer complained that there was no JVM installed - when there was. No clue was given by the installer as to why it could not find it, or where it was

Tomcat won't start: java.lang.ArrayStoreException

2001-12-09 Thread Graham Leggett
Hi all, After upgrading my system (but not my Blackdown JDK v1.3.0 nor my Tomcat v4.0.1) Tomcat suddenly refuses to start. The following exception is thrown on startup in catalina.out: ERROR reading /var/tomcat4/conf/server.xml At Line 58 /Server/Service/Connector/

escape a URL within a sevlet - how?

2001-11-12 Thread Graham Leggett
Hi all, I am trying to generate a set of name/value pairs that will be tacked onto the end of a generated URL like this: url.html?name1=value1name2=value2 These name value pairs have to be escaped first (problem characters converted to %HH) before they are added to the URL - I am looking for

Re: [ANNOUNCEMENT] Apache Tomcat 4.0.1

2001-10-19 Thread Graham Leggett
Peter Mutsaers wrote: What in the world do you need RPM's for?!? RPMS enforce the correct way of doing things, which means that in six months time when another admin takes over the machine they're not going to find any surprises. Regards, Graham -- -

Re: Tomcat spawning multiple processes under Linux

2001-09-25 Thread Graham Leggett
Tor Arne Benjaminsen wrote: I've tried both 3.2.3 and 4.0, and both spawn a varying number of processes, usually between 10 and 25, like this: They aren't processes, they are threads. Within Linux, threads and processes are treated in very similar ways which is why you see them listed like

Re: Using tomcat as a proxy

2001-09-25 Thread Graham Leggett
Donie Kelly wrote: We have a HTTP application written in C and we now need to add https support. I was thinking that we could use tomcat as a proxy to accept the request on one side and forward it over https... Any ideas on how we could do this? We could use apache using mod_proxy (I

Re: jasperLog - what does it do?

2001-09-22 Thread Graham Leggett
Craig R. McClanahan wrote: Do you by chance have pieces of Tomcat in your system classpath, or your system extensions directory ($JAVA_HOME/jre/lib/ext)? I discovered that there were pieces of jasper and some other .jar files in the servlet directory I was given. Going through these jar files

Directories - best practice

2001-09-22 Thread Graham Leggett
Hi all, While configuring a to-be-deployed servlet, I have noticed that the programmer has placed absolute pathnames in a number of places within the parameters in web.xml, and within the log4j configuration file. Some experimentation has revealed that the default directory of a given servlet

load-on-startup and Tomcat v4.0

2001-09-21 Thread Graham Leggett
Hi all, I have just been trying to get a servlet application transferred from Tomcat v3.2 to v4.0. It's worked fine before with v3.2, but on starting v4.0, I get an error like so: org.xml.sax.SAXParseException: Element servlet does not allow load-on-startup here. Unfortunately the error

Re: load-on-startup and Tomcat v4.0

2001-09-21 Thread Graham Leggett
Craig R. McClanahan wrote: As a general note, Tomcat 4 uses a validating XML parser when reading web.xml files, to help you ensure that your web apps will be portable to any container. A consequence of this is that you must follow the element ordering requirements in the DTD *exactly*.

jasperLog - what does it do?

2001-09-21 Thread Graham Leggett
Hi all, While starting up a servlet that uses Jasper, it refuses to load with the following error: 2001-09-21 16:37:09 StandardContext[/thh]: Servlet /thh threw load() exception javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception [snip] - Root Cause -

mod_jk / tomcat webserver 404 weirdness

2001-09-14 Thread Graham Leggett
Hi, I am having some grief with a new tomcat/mod_jk installation. I've installed the required context in server.xml, and have used the auto-generated apache mod_jk config file to taylor httpd.html. The configured URL works great from the tomcat webserver running on port 8080 by default, but

Re: mod_jk / tomcat webserver 404 weirdness

2001-09-14 Thread Graham Leggett
-- -Original Message- From: minfrin [mailto:minfrin]On Behalf Of Graham Leggett Sent: Friday, September 14, 2001 7:38 AM To: Tomcat User Subject: mod_jk / tomcat webserver 404 weirdness Hi, I am having some grief with a new tomcat/mod_jk installation. I've installed the required

Re: mod_jk / tomcat webserver 404 weirdness

2001-09-14 Thread Graham Leggett
Tony Vinayak wrote: Since your browser URI is /thh/feersum/healthbar/bloomsbury/home.html, you don't have a corresponding JkMount in your httpd.conf file. None of your current defs: JkMount /thh/servlet/* ajp13 JkMount /thh/*.jsp ajp13 will cause the browser URI to be redirected to