JNDI Datasource Problem

2007-04-02 Thread Melih Onvural
I've read through every archive that I can find, and I've tried every suggestion that I've seen including the tutorials on the Tomcat site. I'm using 5.5.x, and I can't connect to the database. This is killing me. I've pasted my server.xml, context.xml, and web.xml files here. Any help would be

Re: JNDI Datasource Problem

2007-04-02 Thread Melih Onvural
Also, the error message itself is: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: java.sql.SQLException: No driver found for jdbc/TestDB org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276) and I have

Re: JNDI Datasource Problem

2007-04-02 Thread Rashmi Rubdi
Is the Context associated with a Host? I tried and example as shown here: http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html and it works fine. I think the same instructions work for Tomcat 5.5.x as well. My server.xml Host name=connectionpooling

Re: JNDI Datasource Problem

2007-04-02 Thread Rashmi Rubdi
Also what does your JDBC code look like? (Please post small relevant snippets) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: JNDI Datasource Problem

2007-04-02 Thread Melih Onvural
I tried it both ways. Once my resource wasn't defined globally at all, but it was defined under the Context. Next, my resource was defined only globally and not under the context. Is that the problem? Should it be global and under the context? I'm using the test.jsp file and the

Re: JNDI Datasource Problem

2007-04-02 Thread Rashmi Rubdi
If you try the example exactly without any variations, it should work. It worked for me. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: JNDI Datasource Problem

2006-03-03 Thread lee hwaying
need it,application specific context.xml works) 4 remove the resourcelink from ..\conf\Catalina\localhost\...xml From: Wang, Hansen [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: RE: JNDI Datasource Problem Date: Mon

Re: JNDI Datasource Problem

2006-02-25 Thread lee hwaying
may i know how to use connetor/J? From: umesh balasubramaniam [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: Re: JNDI Datasource Problem Date: Fri, 24 Feb 2006 21:55:15 -0800 Try using connector/J

RE: JNDI Datasource Problem

2006-02-25 Thread Caldarale, Charles R
From: umesh balasubramaniam [mailto:[EMAIL PROTECTED] Subject: Re: JNDI Datasource Problem Try using connector/J and the configuration below: Resource name=jdbc/galleryDB auth=Container type= javax.sql.DataSource/ ResourceParams name=jdbc/galleryDB No idea what

Re: JNDI Datasource Problem

2006-02-25 Thread Vinny
: umesh balasubramaniam [mailto:[EMAIL PROTECTED] Subject: Re: JNDI Datasource Problem Try using connector/J and the configuration below: Resource name=jdbc/galleryDB auth=Container type= javax.sql.DataSource/ ResourceParams name=jdbc/galleryDB No idea what

JNDI Datasource Problem

2006-02-24 Thread lee hwaying
ERROR JDBCExceptionReporter - Cannot create JDBC driver of class '' for connect URL 'null' I still get the above error in Tomcat 5.5.15 after doing the below. Please help web.xml : ... resource-ref res-ref-namejdbc/galleryDB/res-ref-name

Re: JNDI Datasource Problem

2006-02-24 Thread umesh balasubramaniam
Try using connector/J and the configuration below: Resource name=jdbc/galleryDB auth=Container type= javax.sql.DataSource/ ResourceParams name=jdbc/galleryDB parameter namefactory/name

Re: JNDI Datasource Problem

2006-02-20 Thread chuanjiang lo
i think you would need to change the context.xml? On 2/20/06, Mark Whitby [EMAIL PROTECTED] wrote: Hey guys, Thanks for the help with the previous problem I had, I've managed to solve them now thanks to your help. But now I'm having a problem with setting up a DataSource connection. I've

RE: JNDI Datasource Problem

2006-02-20 Thread Rose, Greg
is started. -Original Message- From: chuanjiang lo [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 7:25 AM To: Tomcat Users List Subject: Re: JNDI Datasource Problem i think you would need to change the context.xml? On 2/20/06, Mark Whitby [EMAIL PROTECTED] wrote: Hey guys

Re: JNDI Datasource Problem

2006-02-20 Thread Mark Whitby
://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html Mark - Original Message - From: Rose, Greg [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, February 20, 2006 12:33 PM Subject: RE: JNDI Datasource Problem What release of Tomcat

RE: JNDI Datasource Problem

2006-02-20 Thread Caldarale, Charles R
From: Rose, Greg [mailto:[EMAIL PROTECTED] Subject: RE: JNDI Datasource Problem If it is 5.5.x, you can not alter the Server.xml file. That's not correct. It is strongly recommended to put Context tags in either the META-INF directory of the webapp or in conf/Catalina/[hostname]/[appname

RE: JNDI Datasource Problem

2006-02-20 Thread Rose, Greg
into my application's META-INF directory works for me. That is the last option given in the help. -Original Message- From: Mark Whitby [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 7:37 AM To: Tomcat Users List Subject: Re: JNDI Datasource Problem Yeah it's 5.5.15. It's strange

RE: JNDI Datasource Problem

2006-02-20 Thread Rose, Greg
, February 20, 2006 7:43 AM To: Tomcat Users List Subject: RE: JNDI Datasource Problem From: Rose, Greg [mailto:[EMAIL PROTECTED] Subject: RE: JNDI Datasource Problem If it is 5.5.x, you can not alter the Server.xml file. That's not correct. It is strongly recommended to put Context tags in either

Re: JNDI Datasource Problem

2006-02-20 Thread Markus Schönhaber
Rose, Greg wrote: If you look at the resulting link when you click on CONTEXT http://tomcat.apache.org/tomcat-5.5-doc/config/context.html It gives you several options as to setting up your context. They all refer to the context.xml file, not the Server.xml file. I have found that placing

Re: JNDI Datasource Problem

2006-02-20 Thread Marc Richards
I didn't see any mention of the Tomcat version here, but in 5.5 the ResourceParams part of the config is no longer used. All paramters go in the Resource ... tag with name=value format just like name and auth from your example below. i.e. maxIdle=30. -marc --- Mark Whitby [EMAIL PROTECTED]

Re: JNDI Datasource Problem

2006-02-20 Thread Mark Whitby
- From: Marc Richards [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, February 20, 2006 8:55 PM Subject: Re: JNDI Datasource Problem I didn't see any mention of the Tomcat version here, but in 5.5 the ResourceParams part of the config is no longer used. All

Re: JNDI Datasource Problem

2006-02-20 Thread Marc Richards
?autoReconnect=true/ /Context /Host /Engine /Service /Server - Original Message - From: Marc Richards [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, February 20, 2006 8:55 PM Subject: Re: JNDI Datasource Problem I didn't see

JNDI Datasource Problem

2006-02-19 Thread Mark Whitby
Hey guys, Thanks for the help with the previous problem I had, I've managed to solve them now thanks to your help. But now I'm having a problem with setting up a DataSource connection. I've followed the example word for word and got the following error: javax.servlet.ServletException:

Re: JNDI Datasource Problem

2006-02-19 Thread Parsons Technical Services
Look up resource link. It goes in the context.xml Also only put the jar file in the common/lib and no where else. - Original Message - From: Mark Whitby [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, February 19, 2006 12:53 PM Subject: JNDI Datasource

Re: JNDI Datasource Problem

2006-02-19 Thread Mark Whitby
type=javax.sql.DataSource auth=Container / /Context Any further suggestions? Mark - Original Message - From: Parsons Technical Services [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, February 19, 2006 7:02 PM Subject: Re: JNDI Datasource Problem

Re: JNDI Datasource Problem

2006-02-19 Thread Bill Barker
auth=Container / /Context Any further suggestions? Mark - Original Message - From: Parsons Technical Services [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, February 19, 2006 7:02 PM Subject: Re: JNDI Datasource Problem Look up resource link

Re: JNDI Datasource Problem

2006-02-19 Thread Mark Whitby
@tomcat.apache.org Sent: Sunday, February 19, 2006 8:40 PM Subject: Re: JNDI Datasource Problem Since you have WatchedResources /, this suggests you are using some version of 5.5. In this case, the ResourceParams / is ignored (you set them as attributes on the Resource / tag). Mark Whitby [EMAIL

Re: JNDI Datasource Problem

2006-02-19 Thread Len Popp
. So would it make any difference removing one of these or as it's ignored does it not matter? Mark - Original Message - From: Bill Barker [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Sunday, February 19, 2006 8:40 PM Subject: Re: JNDI Datasource Problem Since you have

Re: JNDI Datasource Problem

2006-02-19 Thread Mark Whitby
List users@tomcat.apache.org Sent: Sunday, February 19, 2006 9:22 PM Subject: Re: JNDI Datasource Problem There is no ResourceParams in 5.5. Check the documentation again, and make sure you're looking at the docs for 5.5 not 5.0. -- Len On 2/19/06, Mark Whitby [EMAIL PROTECTED] wrote: Yes I'm

Re: JNDI Datasource Problem

2006-02-19 Thread Mark Whitby
- Original Message - From: Mark Whitby [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, February 19, 2006 9:34 PM Subject: Re: JNDI Datasource Problem I've checked the documentation and yes I was reading the 5.0 version not the 5.5 one! However I've followed

Re: JNDI Datasource Problem

2006-02-19 Thread Mike Sabroff
] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, February 19, 2006 9:34 PM Subject: Re: JNDI Datasource Problem I've checked the documentation and yes I was reading the 5.0 version not the 5.5 one! However I've followed the new instructions and still get the following error