ibm mobilefirst - How to give Worklight Server access to MySQL (SQL adapter) -


i'm migrating worklight app 5.0.3 5.0.6.

i tried add

mysql-connector-java-5.1.22-bin.jar** worklight.war

file following error:

procedure invocation error. runtime: java.lang.classnotfoundexception: class com.mysql.jdbc.driver not found in worklight platform or project /worklight

any workaround?

why .war file? add more information question: running worklight in eclipse or on application server (tomcat/liberty/was)?

if using worklight developer edition (essentially plug-in download eclipse):

  • you need place mysql-connector-java-5.1.22-bin.jar \lib folder of project... located at: yourproject\server\lib.
  • make sure update datasource definitions in adapter xml:
<datasourcedefinition>     <driverclass>com.mysql.jdbc.driver</driverclass>     <url>jdbc:mysql://localhost:3306/mydb</url>     <user>myusername</user>     <password>mypassword</password>  </datasourcedefinition> 

if using worklight deploying application server (tomcat/libery/was), above actions update .war file, located in yourproject\bin, need redeploy application server.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -