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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:31:10+00:00 2026-05-12T23:31:10+00:00

I have a j2ee application deployed on GlassFish. I have mysql jars in GlassFish’s

  • 0

I have a j2ee application deployed on GlassFish.
I have mysql jars in GlassFish’s lib directory.
I am trying to use JPA, and my persistence file is:

<persistence-unit name="teamPU"
    transaction-type="RESOURCE_LOCAL">
    <provider>
        oracle.toplink.essentials.PersistenceProvider
    </provider>
    <class>com.team.dao.Roles</class>
    <properties>
        <property name="toplink.jdbc.driver"
            value="com.mysql.jdbc.Driver" />
        <property name="toplink.jdbc.url"
            value="jdbc:mysql://localhost:3306/test" />
        <property name="toplink.jdbc.user" value="root" />
        <property name="toplink.ddl-generation"
            value="create-tables" />
    </properties>
</persistence-unit>

i also have toplink-essentials* jars in lib.
When I call dao.find*, it throws the No suitable driver.
Don’t I have all the jars where they should be?

  • 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-05-12T23:31:11+00:00Added an answer on May 12, 2026 at 11:31 pm

    I had this issue with a Java web app (Servlets/JSP) using JPA/toplink. It worked fine on my development system w/NetBeans deploying to Tomcat. When I deployed the web app to Tomcat on the production server, I’d get “java.sql.SQLException: No suitable driver” and I saw toplink packages in the call stack. What’s interesting is that I’m also using direct JDBC in my web app and that worked fine on the production server.

    The fix was to copy the appropriate jdbc driver .jar to the jre6\lib\ext folder.

    It would be nice to know why it’s not enough to have the jdbc .jar put into the web app .war file in the case of toplink…

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

Sidebar

Related Questions

I have a j2ee application running on spring framework. I am trying to apply
I have a J2EE web-application running on Sun hardware with OpenSolaris/Glassfish stack. We're starting
i have a web based j2ee application. is there any way to use .dll
I have a GlassFish/j2ee application, and I develop on one box, and production is
I have a J2EE application, deployed in JBoss6 application server in Windows (Vista 32
I have a j2ee application using spring framework. I am trying to export jasper
in eclipse, i have a weblogic server running, and a j2ee application deployed to
I have J2EE web application which uses JSF framework. Now I am trying to
I have two web application which are deployed in the same J2EE Application server.
I have a J2EE application running on an IBM Websphere Application Server on a

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.