tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: JNDI Problem under 4.1
Date Sun, 12 Jan 2003 08:32:10 GMT

change "user" to "username" and "driverName" to "url"

Jake

At 09:23 PM 1/12/2003 +1300, you wrote:
>I have just installed Tomcat 4.1 - to date I have been using Tomcat 4.0. In
>4.0 I have the following resource in the DefaultContext. I have copied this
>context from the sever.xml of 4.0 to the server.xml of the 4.1 version.
>Otherwise the war I am deploying on both is identical.
>
><DefaultContext debug="0" reloadable="false">
>
><Resource name="jdbc/foobar" auth="SERVLET" type="javax.sql.DataSource"/>
><ResourceParams name="jdbc/foobar">
><parameter><name>user</name><value>joe</value></parameter>
><parameter><name>password</name><value>bloggs</value></parameter>
><parameter><name>driverClassName</name><value>org.postgresql.Driver</value></parameter>
><parameter><name>driverName</name><value>jdbc:postgresql://localhost/foobar</value></parameter>
></ResourceParams>
>
></DefaultContext>
>
>In 4.0 everything runs fine, however when I run 4.1 I get the following:
>javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
>
>I did a search on google and there is one instance of something like a fix -
>however it was due to the resource parameters being outside a context. In
>this situation the resource parameters are clearly inside the DefaultContext.
>
>I also did a search of the tomcat list and didn't find an answer. I was
>wondering if I should stick with 4.0, or if there is a simple fix for 4.1?
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>

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