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
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
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
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
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(*)
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
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
>
>
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
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
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
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
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
12 matches
Mail list logo