Re: jdbc realms timing out database connection and not reconnecting

2001-08-31 Thread Andrew Robson
Hi, I bet the elapsed time between your last succesful login and the next attempt is 8 hours. There's a connection timeout variable in MySql which controls this value but can't remember exact name off the top off my head. Anyway to sort it out try adding - autoReconnect=true to the

Re: STARTUP FILE HANGS AFTER A WHILE..........Error = Starting Ajp12ConnectionHandler on 8007

2001-08-30 Thread Andrew Robson
Hi, Are you sure it is hanging? The message you quote is the perfectly normal and is the last message you get once tomcat has completed its initialisation (with a default config). The Ajp12 Connector is necessary to shutdown tomcat smoothly and can be used to integrate tomcat with another

Re: Tomcat 3.3.2 with IIS

2001-08-27 Thread Andrew Robson
Hi, Have you looked at TOMCAT_HOME/doc/tomcat-iis-howto.html ? -andrew On Mon, 27 Aug 2001, you wrote: Hi, I am a new user with TomcatI need to establish a connector between IIS 4.0 and Tomcat 3.3.2 so that when IIS receive a JSP request, he'll send it to Tomcat... The Tomcat

Re: Has anyone used JDBC realms successfully yet?

2001-08-27 Thread Andrew Robson
On Mon, 27 Aug 2001, you wrote: Hello, I'm frustrated, trying to use JDBC realms. Can anyone help me here before I start wading trough the TOMCAT source-code? Thanks for any help -- Hi, I have this working and I'm sure a lot of other people do. I'm guessing you've read the howto? If you

RE: Pre-install question

2001-08-22 Thread Andrew Robson
Tomcat can also act as a http server. So it will handle your html as well as JSP's and servlets. Apache is not required. However many people choose to integrate the two so that apache is managing the static content and Tomcat is managing the dynamic content. There has been much recent discussion

Re: Tomcat FORM Authentication and Apache

2001-08-16 Thread Andrew Robson
Hi, You need to add JkMount /secure/j_security_check ajp13 to httpd.conf (or ajp12 if that is the connector you are using). btw, this has been answered many times on the list. A search of the archive at http://www.mail-archive.com/tomcat-user@jakarta.apache.org/ would have got you an answer

Re: How to get userRole from Tomcat 3.2.3?

2001-08-13 Thread Andrew Robson
Why not use HttpServletRequest boolean isUserInRole(java.lang.String role) andrew On Mon, 13 Aug 2001, you wrote: Hi, I am using JDBCRealm and need a convenient way to get the userRoles of the user. GetRemoteUser is not the right way. In the source code of JDBCRealm I found a

Re: RH Linux 7.1 Java Error

2001-08-10 Thread Andrew Robson
Hi, Your problem is that 'cut' is in the wrong place. Copy it from wherever it is (/bin I think) into /usr/bin/ This will get rid of error message but you're not out of the woods yet. See the thread from yesterday about a missing file - libstd++-libc6.1-1.so.2 I suspect you will get the same

RE: Servlet/ Database Conenction Persists Question

2001-08-07 Thread Andrew Robson
with Yahoo! Messenger http://phonecard.yahoo.com/ -- Andrew Robson tel: (0141) 424 0607 mobile: 07759 430234 email: [EMAIL PROTECTED]

Re: CPU going to 100%

2001-08-03 Thread Andrew Robson
Hi, Following is taken from the readme for 3.2 and is probably what the person was referring to 6.11 Misconfiguration Can Cause CPU-Bound Loop If you misconfigure Tomcat 3.2 in a way that there is no valid context to handle a request (such as removing the root context and then

Re: .htm problem

2001-07-30 Thread Andrew Robson
On Mon, 30 Jul 2001, you wrote: I have a web site to which a lot of cross-links have been built up over time. Inevitably the links are to pages with names like index.htm. I would like to change these to jsp pages, but of course I can't change the name without breaking the link (and losing

Re: HTML in Messages and politeness

2001-07-29 Thread Andrew Robson
[X] +1 - Plain Text only. Strip HTML on the mailing list. Otherwise you start to exclude people who don't use html enabled mail client. Also it seems to me if you are going to post to a list you should read the guidelines first which explicity say not to post HTML or Stylelized emails. I

Re: Apache cannot connect to Tomcat

2001-07-29 Thread Andrew Robson
[EMAIL PROTECTED] -- Andrew Robson tel: (0141) 424 0607 mobile: 07759 430234 email: [EMAIL PROTECTED]

Re: Problems with authentication

2001-07-26 Thread Andrew Robson
Hi, If you get it to work in tomcat standalone (have you tried that?) then you need to add JkMount /examples/jsp/security/login/j_security_check ajp13 (or ajp12 if that's the connector you are using) to httpd.conf to get it to work with apache. Otherwise apache won't know to delegate the

Re: request for suggestions on how to secure a web application....

2001-07-25 Thread Andrew Robson
Hi Peter, Have you looked at Realms? This allows you to specify a set of resources (html, jsp, servlets etc) to be protected in your web.xml file. Any unauthorised access attempt to these files will automatically throw up a login form. Means you don't have to code in protection to each page.

Re: Need workaround for Tomcat security.

2001-07-16 Thread Andrew Robson
3.2.1 and 3.2.2. And I need it fixedas soon as possible. Does anyone know a workaround to thisone.(I'd rather not upgrade to Tomcat 4 yet,seems like its fixed here.) -- Nils O. SelÄsdal -- Andrew Robson

Re: Need workaround for Tomcat security.

2001-07-16 Thread Andrew Robson
Message - From: Andrew Robson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 16, 2001 7:29 AM Subject: Re: Need workaround for Tomcat security. Hi, No workaround I'm afraid. I can confirm that the problem affects form - based JDBCRealm as well. Tried putting */admin

Re: java-linux-tomcat configuration problem

2001-07-11 Thread Andrew Robson
-- === Andrew Robson 2/1 723 Pollokshaws Road Glasgow G41 2AA Tel: (0141) 424 0607 Mobile: 07759 430234

Re: List traffic et al

2001-07-06 Thread Andrew Robson
Hi, I've been on the list about eight months and I'm not sure I agree that splitting it will alleviate the volume problem. I'm rather afraid that I would end up subscribed to 2 or 3 high volume lists rather than one. I imagine that we would see a lot of multiple posts across the lists.

RE: Re: JDBC Realm

2001-06-13 Thread Andrew Robson
Below is good advice. If the login page does not come up (btw, what happens does it just take you direct to the protected resource?) the first place I would look is the tomcat config files. So basically I would double-check server.xml and the web-xml for your app. If you are sure they are

Re: java.lang.IllegalStateException

2001-05-16 Thread Andrew Robson
) at java.lang.Thread.run(Thread.java:484) -- === Andrew Robson 2/1 723 Pollockshaws Road Glasgow G41 2AA Tel: (0141) 424 0607 Mobile: 07759 430234

Re: where is j_security_check?

2001-05-10 Thread Andrew Robson
hi, Couple of possibilities. 1) You are trying to go directly to the login form rather than having it thrown up automatically when you try to access a protected resource 2) You are running apache which doesn't know to pass the handling of j_security_check to tomact. If so add following line to

Re: JDBC Realm problem

2001-04-23 Thread Andrew Robson
Hi Jeff, I had exactly the same problem (with mm 2.0.2) and only solved it by customisng JDBCRealm to use database connection pooling. A bit heavy handed but might be a lot easier than trying to track potential driver problem if time is an issue. I have also seen a suggestinon on the list

Re: timeout on form based security

2001-03-28 Thread Andrew Robson
Hi, One possibility: you can set a sesson timout value in the web.xml for your application !-- session timeout -- session-config session-timeout30/session-timeout!-- 30 minutes -- /session-config Don't know what default is if you don't andrew On Wed, 28 Mar 2001,

Re: Login Servlet

2001-03-23 Thread Andrew Robson
Hi, Tomcat has authentication via database built in which means you should be able to accomplish everything without need to write any code. Read http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/JDBCRealm.howto Look at server.xml for the examples of setting up a JDBCRealm with various

Re: ODP: JDBCRealm reconnect problems?

2001-03-19 Thread Andrew Robson
Hi, I've had this as well. Solved it by customising JDBCRealm to use database connection pooling - perhaps a little heavy handed ;-). As far as I could make out the problem seemed to be related to the wait_timout variable set to 28800 by default. According to earlier posts 1) This bug is

RE: almost there

2001-03-15 Thread Andrew Robson
that I have some configuration wrong. I don't start tomcat as a user, just root for the moment. Thanks, Ken -Original Message- From: Andrew Robson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 4:50 PM To: [EMAIL PROTECTED] Subject: Re: almost there Hi, Sorry don't

Re: database question

2001-03-15 Thread Andrew Robson
Firstly I very strongly highly recommend you buy a decent book on servlets with a section on JDBC The O'Reilly book Java Servlet Programming - by Jason Hunter is a good one. On Thu, 15 Mar 2001, you wrote: Hi I am using MySQL and JDBC mm.mysql Driver to connect to the database. I am

Re: Ctx( ): IOException in: R( + /tomcat-power.gif + null) socket write error

2001-03-12 Thread Andrew Robson
Hi, I think this is an error which has been discussed a number of times on the list. To the best of my recollection problem stems from IE's caching behaviour. You have two choices 1) Ignore it - as you say page loads fine 2) Do something to prevent IE caching the resources however recollection

Re: Does Tomcat3.2.1 use a servlet pool in SingleThreadModel

2001-03-09 Thread Andrew Robson
Hi, No. It synchronizes the calls to the service method (see Craig McLanahan's post from 2nd of March). That tomcat properly implements SingleThreadModel should be easy to verify by generating a unique id for each of your requests and tracing their execution. Andrew On Fri, 09 Mar 2001, you

Re: Form Based Authentication with Encryption

2001-03-07 Thread Andrew Robson
Hi Amit, I'm using 3.2 so details may vary. What you want to do is write your own authentication module. Easier than it sounds. Just take a copy of the authentication module you are using (SimpleRealm?) to use as a base for your own code. Add in the functionality you want, compile and include

Re: mySQL again

2001-03-01 Thread Andrew Robson
Hi, You might want to try something like the following. It works for me. RequestInterceptor className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/somedb"

Re: apache/tomcat with formbased security

2001-02-28 Thread Andrew Robson
John, This question has appeared on the list before. Below is a quote from a reply by one of the tomcat developers. I have the same problem. I want to integrate apache/tomcat but can't at the moment because I need the functionality I've built into my custom JDBCRealm. And I don't know how to

Re: Web-site security

2001-01-16 Thread Andrew Robson
For additional commands, email: [EMAIL PROTECTED] -- ======= Andrew Robson 10 Bank Street Glasgow G12 8JQ Tel: (0141) 339 9970 Mobile: 07759 430234 - To unsubscribe, e-mail: [E

Re: TOMCAT PROBLEM of disconection

2001-01-12 Thread Andrew Robson
Are you using Redhat 7.0? This sounds similiar to a known bug I came across recently. Tomcat dies and spits out # # HotSpot Virtual Machine Error, Unexpected Signal 11 # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 4F533F4C494E55580E43505005BC # #

Re: How to: make authentication on tomcat

2001-01-09 Thread Andrew Robson
Try http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/JDBCRealm.howto There's an jsp example in your tomcat distribution (3.2 anyway) which this takes you through -A On Tue, 09 Jan 2001, you wrote: Hi all, Do you know any documentation on how to set the authentication on tomcat from

Re: Linux/Apache/Tomcat/JDBC/MySQL, was: RE: Tomcat and jdk

2000-12-14 Thread Andrew Robson
Try http://www.mysql.com/downloads/api-jdbc.html to get mm MySql driver (type 4). I'm using jdk1.3 and seems to work OK (so far!) Andrew PS you probably shouldn't be posting to this list unless tomcat specific ;-) On Thu, 14 Dec 2000, you wrote: jdk1.2 I'm currently using the IBM JDK