Jasper datasource - Can't create dabase JDBC connection via Connections properties

Posted on 2006-05-03
Last Modified: 2009-12-16
I have installed Jasper and created the datasource via Connection properties

JDBC Driver: sun.jdbc.odbc.jdbcOdbcDriver
JDBC URL:jdbc:sun:oracle://;sid=dev


When i click on the test button, it displays the following error message

General problem:null
Please check your username and password. The DBMS is running

Notes. the database is up and running and both user and password are correct.

In the Classpath, I add the Sun driver dt.jar

eg. c:\j2sdk1.4.2_08\lib\dt.jar

is dt.jar a Sun driver?

Please help
I'm sure you java guru know about these.
Question by:LeanMoreTryMore
    LVL 92

    Expert Comment

    that connect string looks wrong, try:


    where dsn is your data source name

    Author Comment

    OK . i changed the connection string to jdbc:sun:oracle://;SID=gdev

    This connection string works for my netbean tools.

    But i got the same problem.

    LVL 92

    Assisted Solution

    Is the odbc data source defined?
    LVL 30

    Accepted Solution

    >> i changed the connection string to jdbc:sun:oracle

    No, try with jdbc:odbc:DSN_NAME is what objects meant. You'll need to create an ODBC data-source using:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    squareUp  challenge 22 80
    Receive file in Servlet 1 25
    array11 challenge 16 40
    endX challenge 2 30
    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now