Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8229603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:51:07+00:00 2026-06-07T16:51:07+00:00

I am using Connector/J as JDBC driver for setting up a connection pool between

  • 0

I am using Connector/J as JDBC driver for setting up a connection pool between Tomcat7 and MySQL 5.5 installed on an Amazon EC2 instance. I am getting the following error when I am trying to access MySql from Java Servlet

Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

I think the error is because I have not copied the Connector/J in the lib folder of Tomcat7.

My Question

How to copy Connector/J Jar to lib folder of Tomcat7 on Amazon EC2?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T16:51:09+00:00Added an answer on June 7, 2026 at 4:51 pm

    Upload it into the relevant /lib folder, if it the servers common pool put it into /commons/lib of the server (or ask your administrator to put it into the servers /commons/lib as specified in its configuration info), If its loaded by the application with a dynamic connection pool and context then it goes in the applications home /WEB-INF/lib folder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting this error while running tomcat 'java.lang.ClassNotFoundException: com.mysql.jdbc.Driver'. I'm using a combination of
I'm accessing public mySQL database using JDBC and mySQL java connector . exonCount is
I'm using Mysql database and neatbeans IDE conncting by mysql-connector-java-5.1.21 jdbc , and I
I'm trying to connect to MySQL using JDBC connection in a Servlet .I'm using
I believe I am using the correct queryString params for jdbc connection jdbc:mysql://localhost:3306/databasename?useUnicode=true&characterEncoding=utf8&noAccessToProcedureBodies=true My
I am creating a JDBC connection pool resource for GlassFish, using the server's Admin
So I want to create a JDBC connection to MySQL server that is installed
I am getting the following exception [Microsoft][SQLServer 2000 Driver for JDBC]Connection reset by peer:
I am getting this error when compiling my java program java.lang.ClassNotFoundException: com.mysql.jdbc.Driver Then I
All, I am getting the com.mysql.jdbc.Driver exception when trying to load the Driver class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.