You are on page 1of 3

signup

login

tour

StackOverflowisaquestionandanswersiteforprofessionalandenthusiastprogrammers.It's100%free,no
registrationrequired.

mysqlPentahoDataIntegrationSQLconnectionStackOverflow

28/5/2015

help

stackoverflowcareers

Takethe2minutetour

PentahoDataIntegrationSQLconnection
IamusingPentahoDataIntegrationandIamtryingtoconnecttomydatabaseviaMySQLbutwhenIdoIgetthiserror.....
Errorconnectingtodatabase[devdb2]:
org.pentaho.di.core.exception.KettleDatabaseException:
Erroroccuredwhiletryingtoconnecttothedatabase
Exceptionwhileloadingclass
org.gjt.mm.mysql.Driver

org.pentaho.di.core.exception.KettleDatabaseException:
Erroroccuredwhiletryingtoconnecttothedatabase
Exceptionwhileloadingclass
org.gjt.mm.mysql.Driver

atorg.pentaho.di.core.database.Database.normalConnect(Database.java:368)
atorg.pentaho.di.core.database.Database.connect(Database.java:317)
atorg.pentaho.di.core.database.Database.connect(Database.java:279)
atorg.pentaho.di.core.database.Database.connect(Database.java:269)
at
org.pentaho.di.core.database.DatabaseFactory.getConnectionTestReport(DatabaseFactory.java:86
atorg.pentaho.di.core.database.DatabaseMeta.testConnection(DatabaseMeta.java:2464)
at
org.pentaho.ui.database.event.DataHandler.testDatabaseConnection(DataHandler.java:533)
atsun.reflect.GeneratedMethodAccessor55.invoke(UnknownSource)
atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)
atjava.lang.reflect.Method.invoke(UnknownSource)
at
org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329)
atorg.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:139)
atorg.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123)
atorg.pentaho.ui.xul.swt.tags.SwtButton.access$500(SwtButton.java:26)
atorg.pentaho.ui.xul.swt.tags.SwtButton$4.widgetSelected(SwtButton.java:119)
atorg.eclipse.swt.widgets.TypedListener.handleEvent(UnknownSource)
atorg.eclipse.swt.widgets.EventTable.sendEvent(UnknownSource)
atorg.eclipse.swt.widgets.Widget.sendEvent(UnknownSource)
atorg.eclipse.swt.widgets.Display.runDeferredEvents(UnknownSource)
atorg.eclipse.swt.widgets.Display.readAndDispatch(UnknownSource)
atorg.eclipse.jface.window.Window.runEventLoop(Window.java:820)
atorg.eclipse.jface.window.Window.open(Window.java:796)
atorg.pentaho.ui.xul.swt.tags.SwtDialog.show(SwtDialog.java:378)
atorg.pentaho.ui.xul.swt.tags.SwtDialog.show(SwtDialog.java:304)
at
org.pentaho.di.ui.core.database.dialog.XulDatabaseDialog.open(XulDatabaseDialog.java:115)
atorg.pentaho.di.ui.core.database.dialog.DatabaseDialog.open(DatabaseDialog.java:62)
at
org.pentaho.di.ui.spoon.delegates.SpoonDBDelegate.newConnection(SpoonDBDelegate.java:493)
at
org.pentaho.di.ui.spoon.delegates.SpoonDBDelegate.newConnection(SpoonDBDelegate.java:478)
atorg.pentaho.di.ui.spoon.Spoon.newConnection(Spoon.java:7770)
atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
atsun.reflect.NativeMethodAccessorImpl.invoke(UnknownSource)
atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)
atjava.lang.reflect.Method.invoke(UnknownSource)
at
org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329)
atorg.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:139)
atorg.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123)
atorg.pentaho.ui.xul.swt.tags.SwtMenuitem.access$100(SwtMenuitem.java:27)
atorg.pentaho.ui.xul.swt.tags.SwtMenuitem$1.widgetSelected(SwtMenuitem.java:77)
atorg.eclipse.swt.widgets.TypedListener.handleEvent(UnknownSource)
atorg.eclipse.swt.widgets.EventTable.sendEvent(UnknownSource)
atorg.eclipse.swt.widgets.Widget.sendEvent(UnknownSource)
atorg.eclipse.swt.widgets.Display.runDeferredEvents(UnknownSource)
atorg.eclipse.swt.widgets.Display.readAndDispatch(UnknownSource)
atorg.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1183)
atorg.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6966)
atorg.pentaho.di.ui.spoon.Spoon.main(Spoon.java:567)
atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
atsun.reflect.NativeMethodAccessorImpl.invoke(UnknownSource)
atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)
atjava.lang.reflect.Method.invoke(UnknownSource)
atorg.pentaho.commons.launcher.Launcher.main(Launcher.java:134)
Causedby:org.pentaho.di.core.exception.KettleDatabaseException:

http://stackoverflow.com/questions/11634181/pentahodataintegrationsqlconnection

1/3

28/5/2015

mysqlPentahoDataIntegrationSQLconnectionStackOverflow

Exceptionwhileloadingclass
org.gjt.mm.mysql.Driver
atorg.pentaho.di.core.database.Database.connectUsingClass(Database.java:423)
atorg.pentaho.di.core.database.Database.normalConnect(Database.java:352)
...50more
Causedby:java.lang.ClassNotFoundException:org.gjt.mm.mysql.Driver
atjava.net.URLClassLoader$1.run(UnknownSource)
atjava.security.AccessController.doPrivileged(NativeMethod)
atjava.net.URLClassLoader.findClass(UnknownSource)
atjava.lang.ClassLoader.loadClass(UnknownSource)
atjava.lang.ClassLoader.loadClass(UnknownSource)
atjava.lang.Class.forName0(NativeMethod)
atjava.lang.Class.forName(UnknownSource)
atorg.pentaho.di.core.database.Database.connectUsingClass(Database.java:414)
...51more

IfIusedSQLiteasmyConnectionTypeitworksbutnodataisreturnedwhenIgotoexploreit.SomyquestionishowdoIgetMySQL
workingorgetthedatausingSQLite?
AmImissingalibraryoraclass?
mysql pentaho

askedJul24'12at15:26
user979331
165

13

51

88

3Answers

IjustcameacrossthesameissuewhiletryingtoqueryaMySQLDatabasefromPentaho.
Errorconnectingtodatabase[LocalMySQLDB]:
org.pentaho.di.core.exception.KettleDatabaseException:Erroroccuredwhiletryingtoconnect
tothedatabase
Exceptionwhileloadingclassorg.gjt.mm.mysql.Driver
Expandingpostby@user979331thesolutionis:
1. DownloadtheLatestMySQLJavaConnector/Driver
2. Unzipthezipfile(inmycaseitwasmysqlconnectorjava5.1.31.zip)
3. copy the.jarfile(mysqlconnectorjava5.1.31bin.jar)andpasteitinyourLibfolder:
PC:C:\ProgramFiles\pentaho\designtools\dataintegration\lib
Mac:/Applications/dataintegration/lib
RestartPentaho(DataIntegration)andretesttheMySQLConnection.
editedOct4'14at9:21

answeredOct11'12at10:32
nelsonic
3,050

22

33

doesyouknowwhatthecorrespondingfolderwouldbefortheBIserver?decalJun11'13at22:31
Dude,youaregreat!!StormssonSep17'13at14:09
ipastedthejarfilelatestconnectionbuterrorstillpersists noobiephpOct29'13at14:42
@noobiephpCanyouconnecttoMySQLfromthecommandlineorthroughanotheradmininterface?
nelsonic Nov2'13at17:51
1 @Suryano,sorrythatsoundslikeitmightbedifferentissue.youcouldtrypostinganewquestionhereon
StackOverflowwithabitmoredetail(yourpreciseconfiguration,versionofSpoonetc)sothedevelopers
cantroubleshoottheissue.nelsonic Jun17'14at22:16

TurnsoutIwillmissingaclasscalledmysqlconnectorjava5.1.2.jar,Iaddeditthisfolder
(C:\ProgramFiles\pentaho\designtools\dataintegration\lib)anditworkedwithaMySQL
connectionandmydataandtablesappear.
answeredJul24'12at16:07

http://stackoverflow.com/questions/11634181/pentahodataintegrationsqlconnection

2/3

28/5/2015

mysqlPentahoDataIntegrationSQLconnectionStackOverflow
user979331
165

13

51

88

Workinggr8fromspoon,butissueonschedulingthejob.Cannotfindthedirver.ihaveincludedthedriver
intomcat\webapps\pentaho\WEBINF\libbutstill....Anyideainwhichlocationmysqldriverismissing..?
SuryaApr7'14at6:13

Missingdriverfile.
ThiserrorisreallycommonforpeoplejustgettingstartedwithPDI.
Driversgoin\pentaho\designtools\dataintegration\libext\JDBCforPDI.Ifyouareusingother
toolsinthePentahosuite,youmayneedtocopydriverstoadditionallocationsforthosetools.
Forreference,herearetheappropriatefoldersforsomeoftheotherdesigntools:
AggregationDesigner:\pentaho\designtools\aggregationdesigner\drivers
MetadataEditor:\pentaho\designtools\metadataeditor\libext\JDBC
ReportDesigner:\pentaho\designtools\reportdesigner\lib\jdbc
SchemaWorkbench:\pentaho\designtools\schemaworkbench\drivers
Ifthistransformationorjobwillrunonanotherbox,suchasatestorproductionserver,don't
forgettoincludecopyingthejarfileandrestartingPDIortheDataIntegrationServerinyour
deploymentconsiderations.
answeredSep18'12at15:02
FremenFreedom
459

protectedbyCommunity Mar14'14at12:32
Thankyouforyourinterestinthisquestion.Becauseithasattractedlowqualityanswers,postingananswernowrequires10reputationonthissite.
Wouldyouliketoansweroneoftheseunansweredquestions instead?

http://stackoverflow.com/questions/11634181/pentahodataintegrationsqlconnection

3/3

You might also like