I am installing 4.1.0 and having a problem connecting with MySQL. I downloaded the JDBC driver for MySQL, extracted mysql-connector-java-5.1.7-bin.jar and installed it in /usr/local/servoy/application_server/drivers/ . I then opened up Developer to create a new server. I specified a server name of ‘repository_server’, username, password, a URL of jdbc:mysql://localhost/repository_server and a driver of org.gjt.mm.mysql.Driver. When I tried to save the new server I got this error:
Cannot setup server
JDBC Driver ‘org.gjt.mm.mysql.Driver’ not found in classpath or drivers directory : java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver org.gjt.mm.mysql.Driver
I had this problem on a Linux installation, but I checked my working Windows instance and the driver is the same and the entries are the same.
I can reproduce this issue on Ubuntu 8.10. Did a clean install (after installing Sun JDK 6). Downloaded the MySQL 5.0.8 JDBC driver and tried to setup a connection. Same error as you.
Tried the same thing with a PostgreSQL connection. Same type of error.
Now I noticed that the driver combobox only shows the sun.jdbc.odbc.jdbcOdbcDriver and not all the others that are in my Drivers directory.
So it seems some Servoy config file doesn’t have the correct classpath(s).
Will investigate this some more.
jcompagner:
that is very weird that the feature.xml has anything to do with the drivers loading.
Because the drivers dont have anything to do with eclipse or the way eclipse loads plugins thats completely standalone.
very strange.
Seems you are right. When I try to create a connection now it doesn’t work anymore. Makes me wonder what I did in the first place to make it work…
Very strange indeed.
Ohhhhhkay, found the bugger.
When I launch Servoy from the link on the desktop then things break. When I launch Servoy from the directory it lives in then it all works.