Connection failed in sun solaris,thus passed in ms windows
I make a java program that need to connect to mysql db,When I run it in ms windows system,it passed,but when I run it in sun solaris system,error occoured.
My debug message like follows
INFO [2005-07-29 09:53:23,736 synchronization.DBManagement.getConnections()] -- ===> Connecting mysql db
INFO [2005-07-29 09:53:23,780 synchronization.DBManagement.getConnection()] -- datasource driver class name:com.mysql.jdbc.Driver
INFO [2005-07-29 09:53:23,792 synchronization.DBManagement.getConnection()] -- datasource username:mydb
INFO [2005-07-29 09:53:23,803 synchronization.DBManagement.getConnection()] -- datasource password:mydb
INFO [2005-07-29 09:53:23,814 synchronization.DBManagement.getConnection()] -- datasource url:jdbc:mysql://127.0.0.1:3306/mydb?useUnicode=true&characterEncoding=gbk
INFO [2005-07-29 09:53:23,825 synchronization.DBManagement.getConnection()] -- datasource :org.apache.commons.dbcp.BasicDataSource@c90991
Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Savepoint
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(Compiled Code)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at synchronization.DBManagement.getConnection(DBManagement.java:189)
at synchronization.DBManagement.getConnections(DBManagement.java:221)
at synchronization.DBManagement.getConnMap(DBManagement.java:306)
at synchronization.DBManagement.destory(DBManagement.java:61)
at synchronization.DBAction.doAllSynchro(Compiled Code)
at synchronization.DBAction.main(DBAction.java:355)
Subject
Written By
Posted
Connection failed in sun solaris,thus passed in ms windows
July 28, 2005 08:34PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.