tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
Subject Re: JNDI Problem under 4.1
Date Sun, 12 Jan 2003 17:01:51 GMT

Actually, you can define your JNDI Datasource in <GlobalNamingResources> 
and then define a <ResourceLink> inside your context although I would have 
thought that <DefaultContext> would have worked as well?


At 10:25 PM 1/12/2003 +1300, you wrote:
>On Sun, 12 Jan 2003 21:32, Jacob Kjome wrote:
> > change "user" to "username" and "driverName" to "url"
>Did this - but still had the same problem.
>A little reading put me right however, as I have now found that the reason 
>that I was attempting to define the context in the <DefaultContext>. This
>appears to work in 4.0, but not in 4.1. Instead you need to specify the
>resource in a specific context, ie:
><Context path="/foobar" docBase="foobar" debug="0" reloadable="flase">
><Resource name="jdbc/foobar" auth="SERVLET" type="javax.sql.DataSource"/>
><ResourceParams name="jdbc/foobar">
>All appears okay now, thanks for the quick replies,
>To unsubscribe, e-mail:   <>
>For additional commands, e-mail: <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message