java.sql.SQLException: Configuration file not found

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

Moderators: Lapo, Bax

User avatar
mistermind
Posts: 131
Joined: 15 Sep 2007, 01:33
Contact:

java.sql.SQLException: Configuration file not found

Postby mistermind » 30 May 2008, 03:52

Hello there again,
When trying to start SFS manually instead of a service, I get this message:

Code: Select all

20:48:21.296 - [ SEVERE ] > DbManager could not retrive a connection. java.sql.SQLException: Configuration file not found

it.gotoandplay.smartfoxserver.exceptions.DbManagerException: The Test SQL statement failed! Please check your configuration.


I'm currently running a database extension on MySQL, and it works just fine when I run as a service, but when trying running the start.bat I get this error followed by a shutdown.

I'm running a Windows Server btw.

Thanks!
SELECT * FROM users WHERE clue > 0
0 rows returned.
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 30 May 2008, 06:50

You have a problem with your test SQL. Double check the syntax, table name etc...
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
mistermind
Posts: 131
Joined: 15 Sep 2007, 01:33
Contact:

Postby mistermind » 30 May 2008, 16:24

Lapo wrote:You have a problem with your test SQL. Double check the syntax, table name etc...


ahmm that doesn't make sense Lapo...
As I said, SFS works fine when I run as a service. It does not work when I run manually.
The problem as you can see does not have anything to do with the Test SQL. The Test SQL statement failed (obviously) because of the first problem:

Code: Select all

20:48:21.296 - [ SEVERE ] > DbManager could not retrive a connection. java.sql.SQLException: Configuration file not found
SELECT * FROM users WHERE clue > 0

0 rows returned.
craftyfirefox
Posts: 9
Joined: 03 Jun 2008, 07:51

Postby craftyfirefox » 03 Jun 2008, 08:28

I had the exact same Problem.

But I was able to solve it. Just in the two lines above that strange "Configuration file not found", there were the line "DB Manager Activated ( org.gjt.mm.mysql.Driver )" and something like "Couldn't load org.gjt.mm.mysql.Driver" printed

Well, the key was to fix the Classpath given to the shell script so it includes the Classpath of the mysql.jar file. Now it works like a charm.
User avatar
mistermind
Posts: 131
Joined: 15 Sep 2007, 01:33
Contact:

Postby mistermind » 10 Jun 2008, 04:43

awsome!
Thanks craftyfirefox! You saved my life here lol
SELECT * FROM users WHERE clue > 0

0 rows returned.
Ricky
Posts: 6
Joined: 17 Jun 2008, 07:15

Postby Ricky » 17 Jun 2008, 07:20

Hi ,

i set the classpath for mysql-connector-java-3.2.0-alpha-bin.jar, but still am getting the same error & server getting shutdown can anyone tell how to set exact classpath for this.+
Thanks & Regards
Ricky
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 17 Jun 2008, 07:41

As suggested in the docs, you could simply put the file in the jre/lib/ext/ folder. (the jre embedded with SFS)
Lapo

--

gotoAndPlay()

...addicted to flash games
Ricky
Posts: 6
Joined: 17 Jun 2008, 07:15

Postby Ricky » 17 Jun 2008, 08:57

thanks Lapo....,

Its working....
Thanks & Regards

Ricky
p3dro.sola
Posts: 25
Joined: 22 Dec 2009, 17:00

Can't find directory

Postby p3dro.sola » 03 Apr 2010, 20:45

Lapo wrote:As suggested in the docs, you could simply put the file in the jre/lib/ext/ folder. (the jre embedded with SFS)


I'm using SFS Pro for Mac. I did a search, but can't find any "jre" directory.
The server is crashin with:

Code: Select all

2010/04/03 16:59:14.963 - [ SEVERE ] [id: 10] (DbManager.executeQuery): DbManager could not retrive a connection. java.sql.SQLException: Configuration file not found

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 71 guests