Re: jdbc tomcat

2006-03-02 Thread Bob_Savard
Hi. I'm using Tomcat 5.5.9 and MySQL 5.0.17 and here's what my relavent file sections look like (I've chaned the real app name to "foo", so notice where "foo" occurs): Note that you're missing the "name" and "factory" attributes, but I suspect "name" is more the culprit. In my WEB-INF/web.xml

Re: jdbc tomcat

2006-03-01 Thread David McMinn
no change - same situation. Mike Sabroff <[EMAIL PROTECTED]> wrote: When I do this from a program or bean or servlet, i make the connection a true url: url="jdbc:mysql://localhost:3306/everycitizen?username=everyuser&password=%" I dont know if it is different in the server.xml as I have n

Re: jdbc tomcat

2006-03-01 Thread Mike Sabroff
When I do this from a program or bean or servlet, i make the connection a true url: url="jdbc:mysql://localhost:3306/everycitizen?username=everyuser&password=%" I dont know if it is different in the server.xml as I have never tried this, but why should it be? I have been fooled by thinkin

jdbc tomcat

2006-03-01 Thread David McMinn
I'm running Tomcat 5.5 and trying to do a very simple jdbc connection a single table. I have set up tomcat to run on port 8070 and the mysql database on the default 3306 port. It's the connection statement in the jsp that is blowing up - If I take that out, it works fine. I'm getting pag

Re: first jdbc tomcat application

2006-03-01 Thread David McMinn
I'm running Tomcat 5.5 - The mysql port is 3306 - I made that change to the server.xml file "jdbc:mysql://localhost:3306/everycitizen Still get the same result - page not found or "Cannot create JDBC driver of class '' for connect URL 'null' ". Amila Suriarachchi <[EMAIL PROT

Re: first jdbc tomcat application

2006-02-26 Thread Amila Suriarachchi
On 2/26/06, David McMinn <[EMAIL PROTECTED]> wrote: > > I had not added an error-page tag to the web.xml - The default behavior > would be a stack trace which would be fine w/ me - In my jsp, I have @ page > errorPage="errorpg.jsp".. > > I don't get a stack trace but I get a page w/ this mes

RE: first jdbc tomcat application

2006-02-26 Thread Caldarale, Charles R
> From: umesh balasubramaniam [mailto:[EMAIL PROTECTED] > Subject: Re: first jdbc tomcat application > > I had a similar problem and solved it by adding the parameters using > resourceparams instead of specifying all the parameters in > the resource tag itself. Where the par

Re: first jdbc tomcat application

2006-02-25 Thread umesh balasubramaniam
David, I had a similar problem and solved it by adding the parameters using resourceparams instead of specifying all the parameters in the resource tag itself. Like this: factory org.apache.commons.dbcp .BasicDataSourceFa

Re: first jdbc tomcat application

2006-02-25 Thread David McMinn
I had not added an error-page tag to the web.xml - The default behavior would be a stack trace which would be fine w/ me - In my jsp, I have @ page errorPage="errorpg.jsp".. I don't get a stack trace but I get a page w/ this message"Cannot create JDBC driver of class '' for connec

Re: first jdbc tomcat application

2006-02-24 Thread Glen Mazza
David McMinn escribió: Unfortunately the logs don't say anything - I just get a page not found. If I take that out (and all subsequent jsp) it works fine. So right up to that point the jsp page renders fine - When I include that one more line, it blows up. I'm still looking but if someone kn

RE: first jdbc tomcat application

2006-02-24 Thread David McMinn
e indicated that he was successfully able to bring up Tomcat's index page. So I am not sure this is an issue. Fadi -Original Message- From: Glen Mazza [mailto:[EMAIL PROTECTED] Sent: Friday, February 24, 2006 1:07 PM To: Tomcat Users List Subject: Re: first jdbc tomcat application Da

RE: first jdbc tomcat application (UNCLASSIFIED)

2006-02-24 Thread Samara, Fadi N Mr ACSIM/ASPEX
PROTECTED] Sent: Friday, February 24, 2006 1:07 PM To: Tomcat Users List Subject: Re: first jdbc tomcat application David McMinn wrote: > > When I try to go to http://localhost:8070/jsp-examples/wroxjdbc/JDBCTest.jsp > I get a standard The page cannot be displayed page. > P

Re: first jdbc tomcat application

2006-02-24 Thread Glen Mazza
David McMinn wrote: > When I try to go to http://localhost:8070/jsp-examples/wroxjdbc/JDBCTest.jsp I get a standard The page cannot be displayed page. Port wrong? It is 8080 by default. Glen - To unsubscribe, e-mail:

Re: First JDBC tomcat app

2006-02-24 Thread Robert Taylor
What do the logs say? Have you tried connecting to MySQL outside of Tomcat? Does that work? Can you get the page to display without the JDBC stuff in it? /robert David McMinn wrote: I'm stepping through the example Professional Apache Tomcat 5 book by Wrox in Chapter 14 - I have set up the mys

First JDBC tomcat app

2006-02-24 Thread David McMinn
I'm stepping through the example Professional Apache Tomcat 5 book by Wrox in Chapter 14 - I have set up the mysql database and confirmed it works and set up the tomcat server and confirmed that I can see my index.jsp page. When I try to go to http://localhost:8070/jsp-examples/wroxjdbc/JDBCTest

RE: first jdbc tomcat application

2006-02-23 Thread Wang, Hansen
If you are using tomcat5, do not use ResourceParams. Instead, define those params as attribute of , as this: -Original Message- From: David McMinn [mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 2006 9:20 AM To: users@tomcat.apache.org Subject: first jdbc tomcat application

first jdbc tomcat application

2006-02-23 Thread David McMinn
I'm stepping through the example Professional Apache Tomcat 5 book by Wrox in Chapter 14 - I have set up the mysql database and confirmed it works and set up the tomcat server and confirmed that I can see my index.jsp page. When I try to go to http://localhost:8070/jsp-examples/wroxjdbc/JDBCTest