Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 80550 invoked from network); 14 Nov 2003 22:29:55 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 14 Nov 2003 22:29:55 -0000 Received: (qmail 53560 invoked by uid 500); 14 Nov 2003 22:29:22 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 53231 invoked by uid 500); 14 Nov 2003 22:29:20 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 53177 invoked from network); 14 Nov 2003 22:29:18 -0000 Received: from unknown (HELO gatekeeper.fma.co.za) (196.30.143.210) by daedalus.apache.org with SMTP; 14 Nov 2003 22:29:18 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by gatekeeper.fma.co.za (Postfix) with ESMTP id 0867C3391C for ; Sat, 15 Nov 2003 00:29:02 +0200 (SAST) Received: from gatekeeper.fma.co.za ([127.0.0.1]) by localhost (gatekeeper.fma.co.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26278-03 for ; Sat, 15 Nov 2003 00:29:01 +0200 (SAST) Received: from sharp.fm (gatekeeper.fma.co.za [196.30.143.210]) by gatekeeper.fma.co.za (Postfix) with ESMTP id 58F7B335FE for ; Sat, 15 Nov 2003 00:29:01 +0200 (SAST) Message-ID: <3FB5572D.6080905@sharp.fm> Date: Sat, 15 Nov 2003 00:29:01 +0200 From: Graham Leggett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030807 X-Accept-Language: en-za, en-us, en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Basic auth setup "The request sent by the client was syntactically incorrect" Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at fma.co.za X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 sent by the client was syntactically incorrect" instead. No error messages are logged anywhere. Anyone know what I am doing wrong? My web.xml includes this: Patricia Datasource jdbc/patricia javax.sql.DataSource Container Patricia Security Constraint Protected Area /*.do DELETE GET POST PUT administrator underwriter accountant broker BASIC Patricia administrator underwriter accountant broker My context definition in tomcat is this: factory org.apache.commons.dbcp.BasicDataSourceFactory driverClassName org.postgresql.Driver url jdbc:postgresql://127.0.0.1:5432/patricia username user_name password password maxActive 20 maxIdle 10 maxWait -1 Regards, Graham -- --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org