简体   繁体   中英

No suitable driver found to connect to MySql openshift

I'm trying to connect to MySql from tomcat(jboss) but i'm getting the error

 java.sql.SQLException : No suitable driver found

I have added the mysql connector jar file in my project lib ,it works fine in my local machine but not working in openshift, for openshift i have changed the username, password and url given by openshift to connect to MySql in my java program but it doesn't work do i have to place the jar file anywhere else...can any one help me with this?

Did you 'git add .' and then 'git commit' to make sure JAR file is on the server? Is there a reason you can't add the mysql connector jar to the dependencies in the pom.xml?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM