Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: GlassFish Error : No suitable driver found

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Thanked 0 Times in 0 Posts

    Exclamation GlassFish Error : No suitable driver found

    Hi guys,

    I am a biginner in Java web application ( glashfish - mysql - jdbc). I am working on a web project from netbeans web site. So , while deploying the application ( after connected the application to the database), I received this message :


    javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver found

    Whether you can help me with explanations !!!


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    So. Maryland, USA
    My Mood
    Thanked 698 Times in 680 Posts

    Default Re: GlassFish Error : No suitable driver found

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.

    Explain what you mean by "while deploying the application." Is this a case where it runs fine in Netbeans but not as a jar file?

Similar Threads

  1. Replies: 2
    Last Post: March 13th, 2014, 02:24 PM
  2. [SOLVED] no suitable constructor found for JTextArea error
    By steph_malcampo in forum What's Wrong With My Code?
    Replies: 12
    Last Post: March 31st, 2013, 12:04 AM
  3. No suitable driver found for jdbc:mysql://localhost/books
    By Moses76 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 30th, 2012, 12:17 PM
  4. Remaining compile errors: no suitable method found for & cannot find symbol
    By ChuckLep in forum What's Wrong With My Code?
    Replies: 4
    Last Post: December 12th, 2011, 03:33 PM
  5. No suitable driver found
    By Josheh in forum JDBC & Databases
    Replies: 2
    Last Post: October 16th, 2011, 01:12 AM