RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
validation with 1 record, 1 >field to minimize the overhead. A validation query is performed before >each connection object is handed out. > >-Original Message- >From: Paul Mahoney [mailto:[EMAIL PROTECTED] >Sent: Wednesday, March 17, 2004 2:19 PM >To: D'Alessandr

RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
resource>links/references. > >Also, the full stacktrace of the exception may shed some other potential problems. > >-Original Message- >From: Paul Mahoney [mailto:[EMAIL PROTECTED] >Sent: Wednesday, March 17, 2004 1:05 PM >To: D'Alessandro, Arthur; 'Tomcat Us

RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
your resource definition. > >-Original Message- >From: Paul Mahoney [mailto:[EMAIL PROTECTED] >Sent: Wednesday, March 17, 2004 12:57 PM >To: 'Parsons Technical Services'; 'Tomcat Users List' >Subject: RE: Problem using JNDI/DBCP to get DataSouce

RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
Tried dataSource = (DataSource) initContext.lookup("java:comp/jdbc/OscarsDB"); But it return null, so tried dataSource = (DataSource) initContext.lookup("java:comp/env/jdbc/OscarsDB"); And a datasource instance was return so before, looking good... However, still got the same exception when try

RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
Here goes Cut and paste, but blanked out the password bits. I hope your eyes can spy the problem. I assume you have this working :) Server.xml (the Context bit) - validationQuery select count(*)

RE: Problem using JNDI/DBCP to get DataSouce

2004-03-17 Thread Paul Mahoney
Some progress but still not working. 1. Using my connection parameters I can open a connection to the database in the standard JDBC way. 2. I have to moved the DataSource configuration from GlobalNamingResources to the apps Context area of server.xml. This seems to have allowed the JNDI look-up t

RE: Problem using JNDI/DBCP to get DataSouce

2004-03-15 Thread Paul Mahoney
t Users List; [EMAIL PROTECTED] >Subject: Re: Problem using JNDI/DBCP to get DataSouce > > >Paul, > >Add this to the context for each application that needs the database. > >type="javax.sql.DataSource"/> > >Doug Parsons >www.parsonstechnical.com > >

Problem using JNDI/DBCP to get DataSouce

2004-03-15 Thread Paul Mahoney
My code looks up a DataSource instance using JNDI. It get an instance but all the fields are default or null values. When I try to get a connection I get the error Exception: Cannot create JDBC driver of class '' for connect URL 'null' Its like it finds my configured resource, but the server has n

Re: Own Login page

2003-02-26 Thread Paul Mahoney
From: James Chrystal [mailto:[EMAIL PROTECTED] Sent: 25 February 2003 20:34 To: [EMAIL PROTECTED] Subject: Own Login page Paul, I've run into your problem as well, and here's how I solved it. Please post this answer to the mailing archives, as I don't want to subscribe and get all that emai

Own Login page

2003-02-25 Thread Paul Mahoney
Dear Team I've been scanning the web, and this mail archive, looking for the answer to a question many have asked, but to which I not find any clear answer. Please bare with me... We are using form based authentication... works fine. However, on occasion we want to show a login form on a page. T

Deploying/Installing war using Tomcat 4.1 manager

2002-12-20 Thread Paul Mahoney
ncountered exception java.net.MalformedURLException: no protocol: The form has a third field: Config URL. I'm leaving this blank as I don't know what to put in it. Is this my problem? Is so, what goes here? Many thanks Paul --- Paul Mahoney, Director, X-Act Solutions Ltd smail: 71 South C

How do you set up a jsp action/filter for all documents in a directory

2002-04-26 Thread Paul Mahoney
Dear Team I've set up a test-bed Apache/Tomcat installation on my W2K box that is working fine. I just cannot figure out how to configure the following: I have a directory of files that can be served by Apache. Let say they are in directory "C:\myfiles". I can set up an Apache alias Alias /my