how to do smartFox and terracotta integration?
-
- Posts: 5
- Joined: 03 Oct 2008, 14:30
how to do smartFox and terracotta integration?
Hi All ,
for whole day I am trying to integrate smartfoxserver with terracotta for clustering . By going through the document given at http://www.smartfoxserver.com/clustering/
but still not able to do that .
I am not getting how to use java file for integration with terracotta server?
and code in the given example is not even complete. I am getting very .
can any body help me? I will be very great full .
Can I get the whole code or link for "Cluster Chat Demo" with tc-config.xml configuration file for terracotta or can some one assist me in configuring smartfoxserver and terracotta for clustering
or you can even contact me at neil.malgaonkar@gmail.com
Thanks All .
for whole day I am trying to integrate smartfoxserver with terracotta for clustering . By going through the document given at http://www.smartfoxserver.com/clustering/
but still not able to do that .
I am not getting how to use java file for integration with terracotta server?
and code in the given example is not even complete. I am getting very .
can any body help me? I will be very great full .
Can I get the whole code or link for "Cluster Chat Demo" with tc-config.xml configuration file for terracotta or can some one assist me in configuring smartfoxserver and terracotta for clustering
or you can even contact me at neil.malgaonkar@gmail.com
Thanks All .
-
- Posts: 5
- Joined: 03 Oct 2008, 14:30
Thanks Lepo
Hi Lepo ,
Thanks alot for your prompt reply and links. Now I am downloading ClusteredLobby demo and will integrate it with smartfoxserver now. I will get back to you if I face any problem during integration.
one more question before end of the reply do I need to install java on my machine to run this demo or jre provided with terracotta will it be sufficient?
Once again Thanks alooooooot Lepo
Regards
Neil
Thanks alot for your prompt reply and links. Now I am downloading ClusteredLobby demo and will integrate it with smartfoxserver now. I will get back to you if I face any problem during integration.
one more question before end of the reply do I need to install java on my machine to run this demo or jre provided with terracotta will it be sufficient?
Once again Thanks alooooooot Lepo
Regards
Neil
-
- Posts: 5
- Joined: 03 Oct 2008, 14:30
how to do smartFox and terracotta integration?
Hi Lepo,
I have downloaded code from all three links. I also have gone through the link you have mention in the mail. but I am facing some issues when i try to run "start-monitor.bat" located in bundled distribution it is giving me Error
"2008-10-04 11:41:38,062 INFO - Terracotta 2.5.2, as of 20080218-120204 (Revision
7031 by cruise@rh4mo0 from 2.5)
2008-10-04 11:41:38,593 INFO - Configuration loaded from the file at 'E:\Cluster
LobbyDemo\ClusterLobbyDemo\ClusterLobbyDemo\Server\tc-cluster-lobby.xml'.
2008-10-04 11:41:38,796 INFO - Log file: 'C:\Documents and Settings\Administrato
r\terracotta\client-logs\pojo\cluster-lobby\20081004114138750\terracotta-client.
log'.
2008-10-04 11:41:39,781 FATAL - Unable to locate bundle dependency: 'excludes_co
nfig', version '2.5.2', group-id 'org.terracotta.modules'; Tried to resolve the
location using the following repositories: 'file:/E:/ClusterLobbyDemo/ClusterLob
byDemo/ClusterLobbyDemo/Server/../terracotta-2.5.2/modules'
Unable to initialize modules runtime; Unable to locate bundle dependency: 'exclu
des_config', version '2.5.2', group-id 'org.terracotta.modules'; Tried to resolv
e the location using the following repositories: 'file:/E:/ClusterLobbyDemo/Clus
terLobbyDemo/ClusterLobbyDemo/Server/../terracotta-2.5.2/modules'"
I think I should Specify the System configuration and soft were being used
OS : Microsoft XP, Professional,version 2002, service pack 3
SmartFoxServer : SmartFoxServerPRO_1.6.2
Terracotta : terracotta-2.6.2
Can you help me in getting out of this issue?
is this version issue? and if this version issue what should i do ?
Should I have to make any changes in ClusterLobbyDemo code location ?
Regards
Neil
I have downloaded code from all three links. I also have gone through the link you have mention in the mail. but I am facing some issues when i try to run "start-monitor.bat" located in bundled distribution it is giving me Error
"2008-10-04 11:41:38,062 INFO - Terracotta 2.5.2, as of 20080218-120204 (Revision
7031 by cruise@rh4mo0 from 2.5)
2008-10-04 11:41:38,593 INFO - Configuration loaded from the file at 'E:\Cluster
LobbyDemo\ClusterLobbyDemo\ClusterLobbyDemo\Server\tc-cluster-lobby.xml'.
2008-10-04 11:41:38,796 INFO - Log file: 'C:\Documents and Settings\Administrato
r\terracotta\client-logs\pojo\cluster-lobby\20081004114138750\terracotta-client.
log'.
2008-10-04 11:41:39,781 FATAL - Unable to locate bundle dependency: 'excludes_co
nfig', version '2.5.2', group-id 'org.terracotta.modules'; Tried to resolve the
location using the following repositories: 'file:/E:/ClusterLobbyDemo/ClusterLob
byDemo/ClusterLobbyDemo/Server/../terracotta-2.5.2/modules'
Unable to initialize modules runtime; Unable to locate bundle dependency: 'exclu
des_config', version '2.5.2', group-id 'org.terracotta.modules'; Tried to resolv
e the location using the following repositories: 'file:/E:/ClusterLobbyDemo/Clus
terLobbyDemo/ClusterLobbyDemo/Server/../terracotta-2.5.2/modules'"
I think I should Specify the System configuration and soft were being used
OS : Microsoft XP, Professional,version 2002, service pack 3
SmartFoxServer : SmartFoxServerPRO_1.6.2
Terracotta : terracotta-2.6.2
Can you help me in getting out of this issue?
is this version issue? and if this version issue what should i do ?
Should I have to make any changes in ClusterLobbyDemo code location ?
Regards
Neil
-
- Posts: 2
- Joined: 03 Jun 2008, 11:25
Lapo wrote:As explained in the page you have mentioned we have all the sources available of the Terracotta integration study.
I am sending you an email with the download links
For anyone else interested in those sources you can drop us an email requesting them.
Can u send me a copy?
I have send u email ask for this source code and this is my mail adress: webroot@163.com
-
- Posts: 5
- Joined: 03 Oct 2008, 14:30
SFS and Terracotta intgration
Hi freddiezhao,
I have send links for code to the given mail
First you go through those links and let me know if you have any problem.Actually I am also not able to Integrate SFS completely with terracotta.But it is in better state now.
I will also update you if i get any Success
Regards
Neil M
I have send links for code to the given mail
First you go through those links and let me know if you have any problem.Actually I am also not able to Integrate SFS completely with terracotta.But it is in better state now.
I will also update you if i get any Success
Regards
Neil M
-
- Posts: 5
- Joined: 03 Oct 2008, 14:30
what are the Final Steps required for integration?
Hi Lepo,
I am able to run given Example on the Server and at local PC also. It works BUT not completely. still there are some Issues
1) I am not able to Chat. It gives me the following error at the prompt
"AW::WARNING - could not load class [org/apache/log4j/Priority] as a resource in
loader [sun.misc.Launcher$AppClassLoader@b166b5]
AW::WARNING - could not load class [org/apache/log4j/Logger] as a resource in lo
ader [sun.misc.Launcher$AppClassLoader@b166b5]"
2) Once I select any of the User from BuddyList Message Button is getting Disabled
3) I am able to Create Room For SFSTris and also able to connect to that room But after That it only Shows the Game window nothing happens after that
4) If I start the game from another host (using different port for jetty) and from same host. It will show me the created room BUT that room show user count 0
5) Same with the Maze game
I am giving you the Steps That I have used in Staring the servers
1) Start the start-tc-server.bat
Configuration For tc-cluster-lobby.xml
(I am just showing you the parts that i have changed from given code)
<servers>
<!-- <server host="%i" name="sample"/> -->
<server host="192.168.1.3" name="sample" />
<update-check>
<enabled>false</enabled>
</update-check>
</servers>
2) then start the start-monitor.bat
3) After that i have Started start-cluster.bat cluster-lobby1.xml
with config Changes :
<ServerIP>192.168.1.3</ServerIP>
<ServerPort>9339</ServerPort>
<WebServer active="true">
<CfgFile>webserver/cfg/jetty.xml</CfgFile>
</WebServer>
<Zone name="clusterLobby" uCountUpdate="true" customLogin="false">
<Rooms>
<Room name="Lobby" maxUsers="2000" isPrivate="false" isTemp="false" autoJoin="true" isLimbo="false" uCountUpdate="true" />
</Rooms>
<Extensions>
<extension name="clobby" className="sfs.cluster.lobby.ClusterLobbyExtension" type="java" />
</Extensions>
</Zone>
4) Finally I started the start-cluster.bat cluster-game1.xml
with changed configuration
<ServerIP>192.168.1.3</ServerIP>
<ServerPort>10000</ServerPort>
<WebServer active="false">
<CfgFile>webserver/cfg/jetty.xml</CfgFile>
</WebServer>
Zone name="clusterLobby" uCountUpdate="true" customLogin="false">
<Rooms>
<Room name="Lobby" maxUsers="2000" isPrivate="false" isTemp="false" autoJoin="true" isLimbo="true" uCountUpdate="true" />
</Rooms>
<Extensions>
<extension name="clobby" className="sfs.cluster.lobby.ClusterGameServerExtension" type="java" />
</Extensions>
</Zone>
Final Configuration for cluster-config.xml
<cluster-config>
<zoneName>clusterLobby</zoneName>
<extensionName>clobby</extensionName>
<gateways>
<gateway port="8080">192.168.1.3</gateway>
</gateways>
<games>
<game id="tris">SmartFoxTris</game>
<game id="maze">TheMaze Game</game>
</games>
</cluster-config>
This are the Steps that i am following.I can see that server connecting to terracotta through monitor prompt But not able to play the game
So Pleaaaaase tell me If any configurations are missing or I have misconfigured the server.
So Please Help me in this matter.
Screen Shot :
Thanks and Regards
Neil
I am able to run given Example on the Server and at local PC also. It works BUT not completely. still there are some Issues
1) I am not able to Chat. It gives me the following error at the prompt
"AW::WARNING - could not load class [org/apache/log4j/Priority] as a resource in
loader [sun.misc.Launcher$AppClassLoader@b166b5]
AW::WARNING - could not load class [org/apache/log4j/Logger] as a resource in lo
ader [sun.misc.Launcher$AppClassLoader@b166b5]"
2) Once I select any of the User from BuddyList Message Button is getting Disabled
3) I am able to Create Room For SFSTris and also able to connect to that room But after That it only Shows the Game window nothing happens after that
4) If I start the game from another host (using different port for jetty) and from same host. It will show me the created room BUT that room show user count 0
5) Same with the Maze game
I am giving you the Steps That I have used in Staring the servers
1) Start the start-tc-server.bat
Configuration For tc-cluster-lobby.xml
(I am just showing you the parts that i have changed from given code)
<servers>
<!-- <server host="%i" name="sample"/> -->
<server host="192.168.1.3" name="sample" />
<update-check>
<enabled>false</enabled>
</update-check>
</servers>
2) then start the start-monitor.bat
3) After that i have Started start-cluster.bat cluster-lobby1.xml
with config Changes :
<ServerIP>192.168.1.3</ServerIP>
<ServerPort>9339</ServerPort>
<WebServer active="true">
<CfgFile>webserver/cfg/jetty.xml</CfgFile>
</WebServer>
<Zone name="clusterLobby" uCountUpdate="true" customLogin="false">
<Rooms>
<Room name="Lobby" maxUsers="2000" isPrivate="false" isTemp="false" autoJoin="true" isLimbo="false" uCountUpdate="true" />
</Rooms>
<Extensions>
<extension name="clobby" className="sfs.cluster.lobby.ClusterLobbyExtension" type="java" />
</Extensions>
</Zone>
4) Finally I started the start-cluster.bat cluster-game1.xml
with changed configuration
<ServerIP>192.168.1.3</ServerIP>
<ServerPort>10000</ServerPort>
<WebServer active="false">
<CfgFile>webserver/cfg/jetty.xml</CfgFile>
</WebServer>
Zone name="clusterLobby" uCountUpdate="true" customLogin="false">
<Rooms>
<Room name="Lobby" maxUsers="2000" isPrivate="false" isTemp="false" autoJoin="true" isLimbo="true" uCountUpdate="true" />
</Rooms>
<Extensions>
<extension name="clobby" className="sfs.cluster.lobby.ClusterGameServerExtension" type="java" />
</Extensions>
</Zone>
Final Configuration for cluster-config.xml
<cluster-config>
<zoneName>clusterLobby</zoneName>
<extensionName>clobby</extensionName>
<gateways>
<gateway port="8080">192.168.1.3</gateway>
</gateways>
<games>
<game id="tris">SmartFoxTris</game>
<game id="maze">TheMaze Game</game>
</games>
</cluster-config>
This are the Steps that i am following.I can see that server connecting to terracotta through monitor prompt But not able to play the game
So Pleaaaaase tell me If any configurations are missing or I have misconfigured the server.
So Please Help me in this matter.
Screen Shot :
Thanks and Regards
Neil
Clustering Example
Hi Lapo
I am trying to go through the document at at http://www.smartfoxserver.com/clustering/.
I will be grateful if you can send me the source and configuration files too.
Thanks !
I am trying to go through the document at at http://www.smartfoxserver.com/clustering/.
I will be grateful if you can send me the source and configuration files too.
Thanks !
smartfox clustering
Hello:
I have downloaded and set up the example. It works !
I would need to run the smartfox in the cluster as service. How can I do that?
Thanks!
I have downloaded and set up the example. It works !
I would need to run the smartfox in the cluster as service. How can I do that?
Thanks!
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 74 guests