tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: JNDI configuration with 6.0.29
Date Wed, 07 Sep 2011 21:40:29 GMT
Hash: SHA1


On 9/7/2011 12:57 PM, Anjib Mulepati wrote:
>>> I did checked the XML file and it looks correct to me.
>>> Following is the content:
>>> <?xml version="1.0" encoding="UTF-8"?>  <Context 
>>> antiJARLocking="true" docBase="C:\Users\amulepati\My 
>>> Projects\ClientDAOTest\build\web" path="/ClientDAOTest">
>> It probably has no bearing on this particular problem, but the
>> "path" attribute is illegal here.
> Isn't that context path of web applciation is specified with the
> "path" attribute. 

You're not using Tomcat 4.0, you're using Tomcat 6.0. Look at the
documentation that is appropriate for your version of Tomcat: the
"path" attribute is only appropriate when the <Context> is defined in
server.xml, which is highly discouraged.

The name of the XML file (when deployed) or the name of the WAR file
(or exploded WAR directory structure) will dictate the context path
and so it need not (and should not) be specified in context.xml.

>>> <Resource auth="Container" 
>>> driverClassName="oracle.jdbc.driver.OracleDriver" 
>>> factory="oracle.jdbc.pool.OracleDataSourceFactory"
>> Do you need to use Oracle's DataSourceFactory? If not, allow
>> Tomcat to use it's own DataSourceFactory.
> To be safe can you tell me what change I have to do for that.

Simply remove the "factory" attribute altogether. Tomcat knows what
it's default is.

>>> maxActive="20" maxIdle="10" maxWait="-1" name="jdbc/dynic"
>> I'm curious why the lookup fails with the message about "dynic"
>> and not, as Felix asks, "jdbc/dynic".
> I am wondering on same. Is there any way to debug this.

Tomcat's logging usually provides some indication of a failure, but
you haven't mentioned anything about log entries. Can you see if there
are any log messages?

Finally, try changing the "user" attribute to "username".

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message