Database initialization fails with sfs but not start.sh

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

flarb
Posts: 131
Joined: 15 Oct 2007, 21:07
Location: Home of the Body Bag
Contact:

Database initialization fails with sfs but not start.sh

Postby flarb » 25 Apr 2009, 07:00

So I just did a long overdue upgrade from 1.6.2 to 1.6.6. I got everything working except.....when I run the server using "sfs" it fails at the database initialization

Code: Select all

DB Manager Activated ( org.gjt.mm.mysql.Driver )
jvm 1    | Can't load db driver: org.gjt.mm.mysql.Driver
jvm 1    | 01:17:12.410 - [ SEVERE ] > DbManager could not retrive a connection. java.sql.SQLException: No suitable driver found for jdbc:apache:commons:dbcp:simpleChat
jvm 1    | it.gotoandplay.smartfoxserver.exceptions.DbManagerException: The Test SQL statement failed! Please check your configuration.


When I use "start.sh" it works fine. What's the deal? Anything change from 1.6.2 to 1.6.6? This is driving me nuts!
User avatar
jjduran
Posts: 90
Joined: 03 Jan 2007, 05:11
Contact:

Postby jjduran » 27 Apr 2009, 00:31

You probably deleted the driver when you removed 1.6.2....

You need to add the org.gjt.mm.mysql.Driver here:

Code: Select all

/SFS_PRO_1.6.6/jre/lib/ext


My file looks like this, mysql-connector-java-5.1.5-bin.jar, just locate your driver and restart SFS
Player-vs-Player Online Battles
EpicDuel.com
flarb
Posts: 131
Joined: 15 Oct 2007, 21:07
Location: Home of the Body Bag
Contact:

Postby flarb » 27 Apr 2009, 04:54

ooooooooh yeah--that's probably it, I forgot to copy the driver over. I wonder why it finds it when I run it from the shell and not the sfs command though? Weird. Thanks!!

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 33 guests