Hi,
I am getting error with starting server.
ubuntu@ip-172-31-7-246:~/SmartFoxServer_2X/SFS2X$ ./sfs2x.sh
log4j:ERROR Could not find value for key log4j.appender.DEBUG
log4j:ERROR Could not instantiate appender named "DEBUG".
log4j:ERROR Could not find value for key log4j.appender.DEBUG
log4j:ERROR Could not instantiate appender named "DEBUG".
log4j:ERROR Could not find value for key log4j.appender.DEBUG
log4j:ERROR Could not instantiate appender named "DEBUG".
10:07:23,798 INFO [main] v2.SmartFoxServer - Boot sequence starts...
10:07:24,140 ERROR [main] v2.SmartFoxServer - com.thoughtworks.xstream.converters.ConversionException:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: com.thoughtworks.xstream.converters.ConversionException
Message: webSocket : webSocket : webSocket : webSocket
---- Debugging information ----
message : webSocket : webSocket
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : webSocket : webSocket
class : com.smartfoxserver.v2.config.ServerSettings
required-type : com.smartfoxserver.v2.config.ServerSettings
path : /serverSettings/webSocket
line number : 57
-------------------------------
Description: Unexpected error during Server boot. The server cannot start.
Solution: Please email us the content of this error message, including the stack trace to support[at]smartfoxserver.com
+--- --- ---+
Stack Trace:
+--- --- ---+
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
com.smartfoxserver.v2.config.DefaultConfigLoader.loadServerSettings(DefaultConfigLoader.java:49)
com.smartfoxserver.v2.config.SFSConfigurator.loadConfiguration(SFSConfigurator.java:37)
com.smartfoxserver.v2.SmartFoxServer.start(SmartFoxServer.java:261)
com.smartfoxserver.v2.Main.main(Main.java:14)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
At 57 line
<webSocket>
<isActive>true</isActive>
<bindAddress>ec2-13-126-65-70.ap-south-1.compute.amazonaws.com</bindAddress>
<tcpPort>8888</tcpPort>
<sslPort>8843</sslPort>
<validDomains/>
<isSSL>false</isSSL>
<keyStoreFile>config/keystore.jks</keyStoreFile>
<keyStorePassword>password</keyStorePassword>
</webSocket>
Server start up problem
Re: Server start up problem
Hi,
a word of advice: don't edit config files manually. It's the one major source of these errors.
In any case this:
is wrong. You can't bind a url, only a physical address.
Use this instead:
which means "bind anything available", and which is also the default in SFS2X.
By the way, what version are you using?
Thanks
a word of advice: don't edit config files manually. It's the one major source of these errors.
In any case this:
Code: Select all
<bindAddress>ec2-13-126-65-70.ap-south-1.compute.amazonaws.com</bindAddress>
is wrong. You can't bind a url, only a physical address.
Use this instead:
Code: Select all
<bindAddress>0.0.0.0</bindAddress>
which means "bind anything available", and which is also the default in SFS2X.
By the way, what version are you using?
Thanks
Re: Server start up problem
Ok, I will remember.
My SFS 2x version is SFS2X_unix_2_13_0.tar
My SFS 2x version is SFS2X_unix_2_13_0.tar
Re: Server start up problem
It is showing issue while connecting to Amazon AWS.
Re: Server start up problem
nik0990 wrote:It is showing issue while connecting to Amazon AWS.
Sorry what issue. Can you provide the details?
Re: Server start up problem
After adding <websocket> tag in server.xml showing same exception./
<webSocket>
<isActive>true</isActive>
<bindAddress>0.0.0.0</bindAddress>
<tcpPort>8888</tcpPort>
<sslPort>8843</sslPort>
<isSSL>false</isSSL>
<keyStoreFile>config/keystore.jks</keyStoreFile>
<keyStorePassword>password</keyStorePassword>
</webSocket>
I think port is not open.
<webSocket>
<isActive>true</isActive>
<bindAddress>0.0.0.0</bindAddress>
<tcpPort>8888</tcpPort>
<sslPort>8843</sslPort>
<isSSL>false</isSSL>
<keyStoreFile>config/keystore.jks</keyStoreFile>
<keyStorePassword>password</keyStorePassword>
</webSocket>
I think port is not open.
Re: Server start up problem
If you're still getting the same error as above, you have malformed XML in your config.
Judging from the first warnings in the logs it also looks like there are other problems.
My suggestion is to download the SmartFoxServer 2.13 installer from here:
http://smartfoxserver.com/download/sfs2x#p=installer
and install the server to a new folder.
Once this is done do not edit the config files manually, instead open the AdminTool and change the settings from there.
Hope it helps
Judging from the first warnings in the logs it also looks like there are other problems.
My suggestion is to download the SmartFoxServer 2.13 installer from here:
http://smartfoxserver.com/download/sfs2x#p=installer
and install the server to a new folder.
Once this is done do not edit the config files manually, instead open the AdminTool and change the settings from there.
Hope it helps
Who is online
Users browsing this forum: No registered users and 117 guests