hey BigFish
So many thanks for your quick reply.
I have downloaded MySql and follow your link to add to smartfoxserver.
But I got a error at config file.
Code: Select all
--- [ Zones & Rooms ] -------------------------------------
19:48:26.261 - [ INFO ] > Default Buddy List Persister <INITED>
Zone: simpleChat
The Hall (id: 1, max: 50, pass:N)
The Kitchen (id: 2, max: 50, pass:N)
The Garden (id: 3, max: 50, pass:N)
The Bathroom (id: 4, max: 50, pass:N)
The Garage (id: 5, max: 50, pass:N)
The Living Room (id: 6, max: 50, pass:Y)
19:48:26.593 - [ INFO ] > Zone Extension [ json ] created, for zone:simpleChat
[jsonSample.as]: JSON Example initialized
19:48:26.598 - [ INFO ] > Default Buddy List Persister <INITED>
java.lang.NullPointerException
at it.gotoandplay.smartfoxserver.SmartFoxServer.setupZone(SmartFoxServer
.java:1784)
at it.gotoandplay.smartfoxserver.lib.ConfigReader.parse_Zones(ConfigRead
er.java:806)
at it.gotoandplay.smartfoxserver.lib.ConfigReader.readZoneConfig(ConfigR
eader.java:174)
at it.gotoandplay.smartfoxserver.SmartFoxServer.initServerSocket(SmartFo
xServer.java:339)
at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:
607)
Problems in config file: null
it.gotoandplay.smartfoxserver.exceptions.ConfigurationException
at it.gotoandplay.smartfoxserver.lib.ConfigReader.readZoneConfig(ConfigR
eader.java:199)
at it.gotoandplay.smartfoxserver.SmartFoxServer.initServerSocket(SmartFo
xServer.java:339)
at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:
607)
Errors found in configuration files.
Unable to start the server.
Shutting down server...
I don't know what wrong with it now ?
It's my config file:
<DatabaseManager active="true">
<!--
<Driver>sun.jdbc.odbc.JdbcOdbcDriver</Driver>
<ConnectionString>jdbc:odbc:sfsTest</ConnectionString>
-->
<!--
Example connecting to MySQL
-->
<Driver>org.gjt.mm.mysql.Driver</Driver>
<ConnectionString>jdbc:mysql://112.213.88.17:3306/zkidkid_database</ConnectionString>
<UserName>zkidkid_username</UserName>
<Password>sharetobeshared</Password>
<TestSQL><![CDATA[SELECT COUNT(*) FROM TBL_TEST]]></TestSQL>
<MaxActive>10</MaxActive>
<MaxIdle>10</MaxIdle>
<OnExhaustedPool>fail</OnExhaustedPool>
<BlockTime>5000</BlockTime>
</DatabaseManager>
</Zone>
To add MySQL, I have downloaded it from your link. and add to wrapper.conf like that :
wrapper.java.classpath.38=lib/lsc.jar
wrapper.java.classpath.39=lib/commons-io-1.4.jar
wrapper.java.classpath.40=lib/mysql-connector-java-5.1.15-bin.jar
the mysql-connector-java-5.1.15-bin.jar is the file I has extracted from the download packet. And copy it to xxx/server/lib/
Need your help urgently.
Thanks so much.
Kidkid.