Errors while following tutorial on custom login

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Vishwas
Posts: 81
Joined: 25 Dec 2008, 22:06

Errors while following tutorial on custom login

Postby Vishwas » 05 Jan 2011, 18:26

I am getting this exception when following the tutorial : http://jadendreamer.wordpress.com/2010/ ... -extension

I don't know what does it mean exactly. Is it related to jar files sfs2x.jar an sfs2x_core.jar, which i added for the project ?

Exception in thread "main" java.lang.NoClassDefFoundError: com/thoughtworks/xstream/io/HierarchicalStreamDriver
at com.smartfoxserver.v2.SmartFoxServer.<init>(SmartFoxServer.java:141)
at com.smartfoxserver.v2.SmartFoxServer.getInstance(SmartFoxServer.java:133)
at com.smartfoxserver.v2.Main.main(Main.java:24)
Caused by: java.lang.ClassNotFoundException: com.thoughtworks.xstream.io.HierarchicalStreamDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 3 more
Rotty956
Posts: 74
Joined: 02 Jan 2011, 15:58

Postby Rotty956 » 06 Jan 2011, 13:58

Are you trying to run your extension or are you trying to export it. I had similar issue I believe you should be exporting the extension not running.
Vishwas
Posts: 81
Joined: 25 Dec 2008, 22:06

Postby Vishwas » 06 Jan 2011, 15:35

Rotty956 wrote:Are you trying to run your extension or are you trying to export it. I had similar issue I believe you should be exporting the extension not running.



How to export the extension ?
Rotty956
Posts: 74
Joined: 02 Jan 2011, 15:58

Postby Rotty956 » 06 Jan 2011, 16:33

You cannot run extensions in eclipse. They are compilied and then you will need to copy the resultant JAR file to the extensions folder.

See the "Deploying the extension" section in the writing extensions page.

http://docs2x.smartfoxserver.com/Develo ... #resources


This is the response I got when I posted the same issue a few days ago.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 58 guests