Project

General

Profile

install-schema error

wang xiaohui
Added 19 days ago

D:\code\app\tig\tigase-server\server>java -cp "jars/*" tigase.db.util.SchemaManager "install-schema" -T mysql -D tigasedb -H localhost -U tigase_user -P tigase_pass -R root -A wang6727 -J admin@jabber.your-great.net -N pass
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: tigase/util/ui/console/CommandlineParameter
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
        at java.lang.Class.getMethod0(Class.java:3018)
        at java.lang.Class.getMethod(Class.java:1784)
        at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: tigase.util.ui.console.CommandlineParameter
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 7 more

Replies (5)

Added by wang xiaohui 19 days ago

2018-04-06 12:25:21.266 [main]             DBSchemaLoader.init()                   CONFIG:   Parameters: [adminPassword: pass, admins: [admin@jabber.your-great.net], dbHostname: localhost, dbName: tigasedb, dbPass: wang6727, dbRootPass: wang6727, dbRootUser: root, dbType: mysql, dbUser: root, file: null, ingoreMissingFiles: false, logLevel: CONFIG, query: null, serverTimezone: null, useLegacyDatetimeCode: false, useSSL: false, forceReloadSchema: false]
四月 06, 2018 12:25:26 下午 tigase.util.dns.DNSResolverDefault <init>
警告: Resolving default host name: wxh took: 5,548
四月 06, 2018 12:25:26 下午 tigase.db.util.SchemaManager loadSchemas
信息: beginning loading schema files...
2018-04-06 12:25:27.645 [main]             DBSchemaLoader.init()                   CONFIG:   Parameters: [adminPassword: pass, admins: [admin@jabber.your-great.net], dbHostname: localhost, dbName: tigasedb, dbPass: wang6727, dbRootPass: wang6727, dbRootUser: root, dbType: mysql, dbUser: root, file: null, ingoreMissingFiles: false, logLevel: CONFIG, query: null, serverTimezone: null, useLegacyDatetimeCode: false, useSSL: false, forceReloadSchema: false]
2018-04-06 12:25:27.646 [main]             DBSchemaLoader.validateDBConnection()   INFO:     Validating DBConnection, URI: jdbc:mysql://localhost/?user=root&password=wang6727&useSSL=false&useLegacyDatetimeCode=false
2018-04-06 12:25:27.905 [main]             DBSchemaLoader.validateDBConnection()   WARNING:  The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
2018-04-06 12:25:27.905 [main]             DBSchemaLoader.validateDBExists()       WARNING:  Connection not validated
四月 06, 2018 12:25:27 下午 tigase.db.util.SchemaManager loadSchemas
信息: schema loading finished!

Added by wang xiaohui 19 days ago

this is the parameter

"install-schema" -T mysql -D tigasedb -H localhost -U root -P wang6727 -R root -A wang6727 -J admin@jabber.your-great.net -N pass

Added by Wojciech Kapcia Tigase team member 13 days ago

  • Exception in thread "main" java.lang.NoClassDefFoundError: tigase/util/ui/console/CommandlineParameter - missing dependencies: tigase-utils -- please use complete distribution binaries;
  • The server time zone value '�й���׼ʱ��' is unrecognized - do you use unicode? Could you set timezone on the server to UTC and try?

Added by orger zhang 5 days ago

wang xiaohui wrote:

D:\code\app\tig\tigase-server\server>java -cp "jars/*" tigase.db.util.SchemaManager "install-schema" -T mysql -D tigasedb -H localhost -U tigase_user -P tigase_pass -R root -A wang6727 -J admin@jabber.your-great.net -N pass
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: tigase/util/ui/console/CommandlineParameter
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
        at java.lang.Class.getMethod0(Class.java:3018)
        at java.lang.Class.getMethod(Class.java:1784)
        at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: tigase.util.ui.console.CommandlineParameter
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 7 more

How to fix this problem? I've got the same

(1)

Added by Wojciech Kapcia Tigase team member 5 days ago

As I said before - please use complete distribution binaries;

    (1-5/5)