eclipse - Why is my Derby database ping failing with a ClassNotFoundException? -
i have started derby database server ./asadmin start-database
, when clicked on database connect, couldn't. when pinged it, failed.
has experienced error before , how have solved it?
exception log:
java.lang.classnotfoundexception: org.apache.derby.jdbc.clientdriver @ java.net.urlclassloader$1.run(urlclassloader.java:202) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:190) @ java.lang.classloader.loadclass(classloader.java:306) @ java.net.factoryurlclassloader.loadclass(urlclassloader.java:627) @ java.lang.classloader.loadclass(classloader.java:247) @ org.eclipse.datatools.connectivity.drivers.jdbc.jdbcconnection.createconnection(jdbcconnection.java:213) @ org.eclipse.datatools.connectivity.apache.internal.derby.connection.derbyembeddedjdbcconnection.createconnection(derbyembeddedjdbcconnection.java:137) @ org.eclipse.datatools.connectivity.driverconnectionbase.internalcreateconnection(driverconnectionbase.java:105) @ org.eclipse.datatools.connectivity.driverconnectionbase.open(driverconnectionbase.java:54) @ org.eclipse.datatools.connectivity.drivers.jdbc.jdbcconnection.open(jdbcconnection.java:73) @ org.eclipse.datatools.connectivity.apache.internal.derby.connection.derbyjdbcconnectionfactory.createconnection(derbyjdbcconnectionfactory.java:32) @ org.eclipse.datatools.connectivity.internal.connectionfactoryprovider.createconnection(connectionfactoryprovider.java:83) @ org.eclipse.datatools.connectivity.internal.connectionprofile.createconnection(connectionprofile.java:359) @ org.eclipse.datatools.connectivity.ui.pingjob.createtestconnection(pingjob.java:76) @ org.eclipse.datatools.connectivity.ui.pingjob.run(pingjob.java:59) @ org.eclipse.core.internal.jobs.worker.run(worker.java:53)
i had same problem connecting ms sql server. found on site pointed me in right direction. go database connection edit driver details. go properties tab. in here make sure has right server name, database name, , user login , password. here site found -> http://www.eclipse.org/forums/index.php/m/39959/
Comments
Post a Comment