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 9014593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:32:49+00:00 2026-06-16T03:32:49+00:00

Possible Duplicate: ClassCastException DataSource cannot be cast to javax.sql.ConnectionPoolDataSource How to make tomcat-jdbc.jar work

  • 0

Possible Duplicate:
ClassCastException DataSource cannot be cast to javax.sql.ConnectionPoolDataSource

How to make tomcat-jdbc.jar work with Tomcat 6?

We have an application that was designed to be deployed in Tomcat 6 however due to fixes we did, we needed to put JDBC pool codes, that I believe only works with Tomcat 7? Since tomcat 6 is already in our production server, I may need to make JDBC pool work with Tomcat 6?

*I was doing my local development for our application and use Tomcat7 for debugging, that I forgot that we use Tomcat6 in production**

Update:

When I run in tomcat 6 I get this exception:

java.lang.ClassCastException: org.apache.tomcat.jdbc.pool.DataSource cannot be cast to javax.sql.ConnectionPoolDataSource

When it works without problems in Tomcat7…

  • 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-16T03:32:51+00:00Added an answer on June 16, 2026 at 3:32 am

    This is fairly easy, I am running Tomcat JDBC for more than a year now on Tomcat 6. Configure it as you would configure a normal DataSource but put the JAR in Tomcat’s lib dir and add the factory attribute with the value org.apache.tomcat.jdbc.pool.DataSourceFactory to your Resource element.

    Off topic: Just a tip, always use the same Tomcat version for testing as you would use for production.

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

Sidebar

Related Questions

Possible Duplicate: How do I make a request using HTTP basic authentication with PHP
Possible Duplicate: How to read Windows loged in username with PHP/IIS I'm work on
Possible Duplicate: Java how to: Generic Array creation Error generic array creation I have
Possible Duplicate: Is there some ninja trick to make a variable constant after its
Possible Duplicate: Adding multiple JProgressBar to TableColumn of JTable i have a jTable with
Possible Duplicate: RegEx match open tags except XHTML self-contained tags I have a HTML
Possible Duplicate: How to convert java.util.date to java.sql.date? I found error on my function,
Possible Duplicate: Why does ‘sizeof’ give wrong measurement? I have a structure called CBUFFER_PEROBJECT:
Possible Duplicate: JavaScript Variable Scope I have a JavaScript function for HTML select options
Possible Duplicate: nth-child for every two table rows I'm trying to work my way

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.