Re: Can't create jdbc resource in context.xml

2007-04-25 Thread Glen Vermeylen
It also doesn't work with the resource-ref element. The error was javax.naming.NameNotFoundException: Name jdbc is not bound in this Context, but I was able to lookup the jdbc/sandwiches datasource using programmatic jndi lookup. Weird part is that everything works fine if I move the datasource

Re: Can't create jdbc resource in context.xml

2007-04-25 Thread Martin Gainty
a copy. Thank you. - Original Message - From: Glen Vermeylen [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, April 25, 2007 10:07 AM Subject: Re: Can't create jdbc resource in context.xml It also doesn't work with the resource-ref element. The error

Re: Can't create jdbc resource in context.xml

2007-04-23 Thread Glen Vermeylen
Thanks for the response, We use tomcat 5.5. -Glen 2007/4/20, Rashmi Rubdi [EMAIL PROTECTED]: Hello Glen, What is the version of Tomcat? I'm asking for the version because the JNDI Datasource configuration is different for different version of Tomcat. The one for 4.x is different from the

Re: Can't create jdbc resource in context.xml

2007-04-23 Thread Rashmi Rubdi
Hi Glen, I compared your configuration with the standard configuration mentioned http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html and found a few differences. Please see my replies to your post below: On 4/20/07, Glen Vermeylen [EMAIL PROTECTED] wrote: Hello

Can't create jdbc resource in context.xml

2007-04-20 Thread Glen Vermeylen
Hello everybody, I'm trying to move a global jdbc resource out of server.xml so it is application specific. Following is the server.xml (which works fine) ?xml version=1.0 encoding=UTF-8? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener/

Re: Can't create jdbc resource in context.xml

2007-04-20 Thread Rashmi Rubdi
Hello Glen, What is the version of Tomcat? I'm asking for the version because the JNDI Datasource configuration is different for different version of Tomcat. The one for 4.x is different from the one for 6.x for example. -Rashmi