IllegalStateException error using Terracotta with Smartfox 1.6.6

Google+ Pinterest LinkedIn Tumblr +

This occurrs because the javaExtensions folder was not added to the classpath in the 1.6.6 build of SmartFox Server. Previous versions of SmartFox are reported to have worked.

Simply add ./javaExtensions to the class path in SmartFox server. This can be done in either:
1) The start.bat file
2) wrapper.conf (if starting SmartFox as a windows service)

The full discussion of this issue can be found on the Terracotta forums, and the solution referenced here is thanks to the participants of that forum:

http://forums.terracotta.org/forums/posts/list/15/2417.page

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
The following is a detailed breakdown of the above information

Windows users should typically edit wrapper.conf which is used when starting smartfox as a service. Start.bat is only used when starting smartfox as console application (which is not common in the windows environemnt). For windows users, make sure to keep the numbering in sequential order for your configuration file (there can not be any gaps in numbering entries after the gap will not be included).

Linux / unix users only need to edit start.bat.

Example wrapper.conf setting:
wrapper.java.classpath.40=./javaExtensions

Example update for start.bat:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@echo off
“..\jre\bin\java.exe” -server -cp “./;./sfsExtensions/;lib/activation.jar;lib/commons-beanutils.jar;lib/commons-collections-3.2.jar;lib/commons-dbcp-1.2.1.jar;lib/commons-lang-2.3.jar;lib/commons-logging-1.1.jar;lib/commons-pool-1.2.jar;lib/concurrent.jar;lib/ezmorph-1.0.3.jar;lib/h2.jar;lib/js.jar;lib/json-lib-2.1-jdk15.jar;lib/json.jar;lib/jsr173_1.0_api.jar;lib/jysfs.jar;lib/jython.jar;lib/nanoxml-2.2.1.jar;lib/wrapper.jar;lib/xbean.jar;lib/javamail/imap.jar;lib/javamail/mailapi.jar;lib/javamail/pop3.jar;lib/javamail/smtp.jar;lib/jetty/jetty.jar;lib/jetty/jetty-util.jar;lib/jetty/jstl.jar;lib/jetty/multipartrequest.jar;lib/jetty/servlet-api.jar;lib/jetty/standard.jar;lib/jsp-2.1/commons-el-1.0.jar;lib/jsp-2.1/core-3.1.0.jar;lib/jsp-2.1/jsp-2.1.jar;lib/jsp-2.1/jsp-api-2.1.jar;lib/jsp-2.1/jstl.jar;lib/jsp-2.1/standard.jar;lib/lsc.jar;lib/commons-io-1.4.jar;./javaExtensions” -Dfile.encoding=UTF-8 -Djava.util.logging.config.file=logging.properties it.gotoandplay.smartfoxserver.SmartFoxServer

@pause
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Share.

About Author

Leave A Reply