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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to