I have defined the resource in web.xml as below... and also defined the
datasouce resources under context in server.xml... even then it does not
help.. I get the same error org.apache.jasper.JasperException: Name
prototypedb is not bound in this Context
Web.xml
I believe if you're defining your DataSource in the Context directly,
not in the Global Naming Resources, then you do not need the
resource-ref in web.xml, nor the ResourceLink mentioned below.
What code are you using to get to your connection? The JNDI lookup
should be to
);
conn = ds.getConnection();
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 27, 2004 11:07 AM
To: Tomcat Users List
Subject: Re: Tomcat Datasource -- please help..
I believe if you're defining your DataSource in the Context directly
(jdbc/prototypedb);
conn = ds.getConnection();
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 27, 2004 11:07 AM
To: Tomcat Users List
Subject: Re: Tomcat Datasource -- please help..
I believe if you're defining your DataSource
Users List
Subject: Re: Tomcat Datasource -- please help..
I believe that should work. I'm out of ideas ... it seems strange that
the Exception you're getting is complaining about prototypedb not
being bound, instead of jdbc not being bound ... usually that comes
first. That's the only thing
AM
To: Tomcat Users List
Subject: RE: Tomcat Datasource -- please help..
As you have said i am getting jdbc not bound exception only. But at
one
point i changed the env lookup to point to prototypedb instead of
jdbc/prototypedb.. so thats when i get prototypedb not bound error...
Anyway do you
.
which is correct way...
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 27, 2004 11:29 AM
To: Tomcat Users List
Subject: Re: Tomcat Datasource -- please help..
I believe that should work. I'm out of ideas ... it seems strange that
the Exception you're getting
Hi. I see a couple of things different from my working setup in your
setup below.
First: You need a tag as below just before the
ResourceParams.../ResourceParams block:
Resource name=jdbc/prototypedb auth=container
type=javax.sql.DataSource/
Second, and this might not be a show stopper,