Re: Newbie Question: Problem with Tomcat and MySql
- From: asd <nospam@xxxxxxxxxx>
- Date: Sat, 31 Mar 2007 11:50:01 -0700
On Sat, 31 Mar 2007 11:11:10 -0400, Lew wrote:
Copied "mysql-connector-java-5.0.5-bin.jar" file under
TOMCAT_DIR//common/lib
Why the double slash?
Typo :-)
asd wrote:
I changed my TOMCAT_DIR/webapps/ROOT/WEB-INF/web.xml file to
Is your test web app running in the root context? If not, you likely will need
to change the web.xml for the application you are running.
I am going to put them under ROOT. Everything is ok as long as they work.
Your posted code did not have a
Class.forName( "com.mysql.jdbc.Driver" );
Did you have that code anywhere that you didn't show us? Did you set up the
load of the driver class in a property file?
That was the problem I forgot Class.forName( "com.mysql.jdbc.Driver" );
in my code.
Thank you so much Lew and Andrew for your comments.
.
- Follow-Ups:
- Re: Newbie Question: Problem with Tomcat and MySql
- From: Andrew Thompson
- Re: Newbie Question: Problem with Tomcat and MySql
- References:
- Newbie Question: Problem with Tomcat and MySql
- From: asd
- Re: Newbie Question: Problem with Tomcat and MySql
- From: Andrew Thompson
- Re: Newbie Question: Problem with Tomcat and MySql
- From: Lew
- Newbie Question: Problem with Tomcat and MySql
- Prev by Date: Re: Quick way to initialize array with all zeros
- Next by Date: Re: Newbie Question: Problem with Tomcat and MySql
- Previous by thread: Re: Newbie Question: Problem with Tomcat and MySql
- Next by thread: Re: Newbie Question: Problem with Tomcat and MySql
- Index(es):
Relevant Pages
|