first, thanks, i appreciate the help.
as per your suggestion, i will move the Resource specification (of
server.xml) from the Context to the GlobalNamingResources (without
modification), and then within an explicitly defined context, define a
ResourceLink. So, if my Resource is specified as follows:
<Resource name="jdbc/eplResrc" auth="Container"
type="javax.sql.DataSource"/>
then, my ResourceLink should be as follows???
<Context ...>
...
<ResourceLink name="jdbc/eplResrc"
global="???"
type="javax.sql.DataSource"
...
</Context>
any idea what value "global" should be?
global The name of the linked global resource in the global JNDI
context.
-paul.
----- Original Message -----
From: "Madere, Colin" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, September 11, 2003 3:20 PM
Subject: RE: how to use single dbcp resource across multiple webapps
> You should be able to set up JNDI-based DataSources in the
> <GlobalNamingResources> tag at/near the top of your server.xml. Many
recent
> posts regarding this with problems using ResourceLinks in the
> DefaultContext, but if you're explicitly defining your contexts as it
> appears you are, it should work (link global resource in each Context you
> want to use it in).
>
> Search archives for more info.
>
> -----Original Message-----
> From: Paul [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 11, 2003 3:04 PM
> To: Tomcat Users List
> Subject: how to use single dbcp resource across multiple webapps
>
>
> hi,
>
> i setup dbcp according to Tomcat docs successfully for one web app, but
when
> tried to use resource (defined in server.xml) in second web app (with
> appropriate WEB-INF/web.xml), get the following:
>
> java.sql.SQLException: Cannot load JDBC driver class 'null'
>
> meanwhile, dbcp resource works fine with first app.
> i figure it is because the resource is defined within following context,
> where path specifies first web app:
>
> <Context path="/epl" docBase="epl" debug="5" reloadable="true"
> crossContext="true">
>
> do i need to define a second context and dbcp resource, or is there some
way
> to use a single dbcp resource across contexts/web-apps?
>
> -paul lomack
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]