Can't start the server on window with my Extension

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

Moderators: Lapo, Bax

bondbond
Posts: 1
Joined: 03 Jun 2019, 12:58

Can't start the server on window with my Extension

Postby bondbond » 03 Jun 2019, 13:04

Code: Select all

Exception: java.lang.SecurityException
Message: no manifiest section for signature file entry com/sun/mail/imap/protocol/INTERNALDATE.class
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:
+--- --- ---+
sun.security.util.SignatureFileVerifier.verifySection(Unknown Source)
sun.security.util.SignatureFileVerifier.processImpl(Unknown Source)
sun.security.util.SignatureFileVerifier.process(Unknown Source)
java.util.jar.JarVerifier.processEntry(Unknown Source)
java.util.jar.JarVerifier.update(Unknown Source)
java.util.jar.JarFile.initializeVerifier(Unknown Source)
java.util.jar.JarFile.getInputStream(Unknown Source)
sun.misc.URLClassPath$JarLoader$2.getInputStream(Unknown Source)
sun.misc.Resource.cachedInputStream(Unknown Source)
sun.misc.Resource.getByteBuffer(Unknown Source)
java.net.URLClassLoader.defineClass(Unknown Source)
java.net.URLClassLoader.access$100(Unknown Source)
java.net.URLClassLoader$1.run(Unknown Source)
java.net.URLClassLoader$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.createJavaExtension(SFSExtensionManager.java:335)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.createExtension(SFSExtensionManager.java:260)
com.smartfoxserver.v2.entities.managers.SFSZoneManager.createZone(SFSZoneManager.java:426)
com.smartfoxserver.v2.entities.managers.SFSZoneManager.initializeZones(SFSZoneManager.java:239)
com.smartfoxserver.v2.SmartFoxServer.start(SmartFoxServer.java:292)
com.smartfoxserver.v2.Main.main(Main.java:14)


I just install the SmarfoxServer and follow the http://docs2x.smartfoxserver.com/ExtensionsJava/quick-start to start up
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Can't start the server on window with my Extension

Postby Lapo » 03 Jun 2019, 13:31

Hi,
it sounds like you probably copied some compilation dependency jars into the Extension jar.
If this is the case I'd recommend correcting the problem. If your Extension code depends on the java Mail jars make sure you don't export them inside the jar file of your Extension. Java Mail is already provided by SFS2X, so you don't need to include them in your jar.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 148 guests