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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:24:45+00:00 2026-06-02T19:24:45+00:00

I am using jasper reports 4.5.1. I just included all the dependencies required for

  • 0

I am using jasper reports 4.5.1. I just included all the dependencies required for jasper-reports-4.5.1. I am getting the following exception

Could not connect to the database: No suitable driver found for CatalogNew No suitable driver found for CatalogNew.
Apr 26, 2012 1:01:51 PM net.sf.jasperreports.engine.query.JRJdbcQueryExecuter <init>
WARNING: The supplied java.sql.Connection object is null. 

on executing following code.

  databaseName=ReportDriver.databaseName;
  userName=ReportDriver.userName;
  password=ReportDriver.password;
 Class.forName("net.sourceforge.jtds.jdbc.Driver");
 jdbcConnection = DriverManager.getConnection(databaseName,userName,password);

I also included the database lib jtds.1.2.5 in the lib folder of IReport-4.5.1 installation.

  • 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-02T19:24:46+00:00Added an answer on June 2, 2026 at 7:24 pm

    Apparently ReportDriver.databaseName contains a database name (“CatalogNew”), not a JDBC URL.

    But the method DriverManager.getConnection() expects a JDBC URL.

    Most probably you’ll need to do something like this:

    String baseURL "jdbc:jtds:sqlserver://localhost/";
    jdbcConnection = DriverManager.getConnection(baseURL + databaseName,userName,password);
    

    You will need to replace localhost with the name of the server running your SQL Server instance.

    For more details on the connection URL see the jTDS documentation:
    http://jtds.sourceforge.net/faq.html#urlFormat

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

Sidebar

Related Questions

I've briefly looked at using Jasper Reports as a reporting engine. However it's all
We have developed reports using jasper and all was ok when we developed it.
I am using Jasper Reports and am using following libraries in my class path
I am using Jasper Reports and am using following libraries in my class path
I'm using Jasper Reports and iReport to generate the reports of my app. I
Has anyone successfully connected to their MS Access db using Jasper Reports iReport? I
How to display jasper reports in JSP page? I am using iReport1.3.3 tool to
We are currently using Jasper Reports to generate PDF 417 barcodes using Barcode4j. We
I have created a small report using jasper reports and I previewed it using
Some of my company consultants created multiple jasper reports (using iReports) which will be

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.