This is pretty much exactly how mine is laid out already. The only
difference is that you have the type specified in the context.xml
resource link.
I have since added that attribute to my copy and I still have no luck..
Exact same error as before.
On Wed, 2004-04-14 at 00:04, Riaan Oberholzer
you are sending me all this mail...I don't think you intend it to come to me.
name is jdbc/GolfDB and I am running against a MySQL database.
> Make sure all the names match exactly as this will cause many bumps from
> banging you head. Adjust other setting to match your needs.
>
> I am on TAO linux, Tomcat 5.0.19 /4.1.29 And JVM 1.4.2_04-b05.
>
This here should work. Follows a slightly different
approach: declare the datasource global to Tomcat and
let your application use a reference to it. In your
server.xml, this should be added:
(Example is for MySql)
The global DataSource definition
On Tue, 2004-04-13 at 15:38, Parsons Technical Services wrote:
> Paul,
>
> Everything looks okay until here:
> >
> > DataSource ds = null;
> > try {
> > Context ctx = new InitialContext();
> > ds =
> > (DataSource)ctx.lookup("java:comp/env/jdbc/PhoenixDB");
> > if (
Paul,
Everything looks okay until here:
>
> DataSource ds = null;
> try {
> Context ctx = new InitialContext();
> ds =
> (DataSource)ctx.lookup("java:comp/env/jdbc/PhoenixDB");
> if (ds == null)
> throw new Exception("DS was null");
> ds.getConne
Paul,
I read the reply below on the tomcat-user list.
I am working here (BRM05) with JWSDP-1.3 and am able to access the manager.
Let me know what type of problem you have.
Arieh
Paul Richards wrote:
On Tue, 2004-04-13 at 14:26, Parsons Technical Services wrote:
Paul,
If manager is in this i
i;
}
Connection con = ds.getConnection("phoenix", "ashes");
out.println("Created connection to database.");
> Doug
>
> ----- Original Message -
> From: "Paul Richards" <[EMAIL PROTECTED]>
> To: "Tomcat Users L
calls the database.
Doug
- Original Message -
From: "Paul Richards" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 13, 2004 4:12 PM
Subject: Re: Tomcat and DataSource JNDI
> On Tue, 2004-04-13 at 13:35, Parsons
On Tue, 2004-04-13 at 14:12, Paul Richards wrote:
> On Tue, 2004-04-13 at 13:35, Parsons Technical Services wrote:
> > Paul,
> >
> > Here are my configuration files or parts of for my development box.
> >
> > First in the server.xml set up a GlobalResource such as this:
> >
> > Of course replace
ameters. In particular the driver class name.
> - Original Message -
> From: "Paul Richards" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 13, 2004 3:03 PM
> Subject: Tomcat and DataSource JNDI
>
>
> > Hi,
> > I
JVM 1.4.2_04-b05.
Doug
www.parsonstechnical.com
- Original Message -
From: "Paul Richards" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 13, 2004 3:03 PM
Subject: Tomcat and DataSource JNDI
> Hi,
> I am running Tomcat from the Java Webservi
Hi,
I am running Tomcat from the Java Webservices Developer Pack 1.3 and I
cannot get JNDI working for mysql DataSource objects. I have googled
around for my error which is:
java.sql.SQLException: Cannot load JDBC driver class 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataS
13 matches
Mail list logo