Project

General

Profile

tigase-server-5.2.3: java.lang.ClassNotFoundException: tigase.component.AbstractComponent

Igor Karjitski
Added about 4 years ago

I`ve just installed fresh tigase-server-5.2.3-b3470 via console installer on my Ubuntu 14.04.1 LTS and MySQL 5.6.21. Everything went just fine, even basic configuration.

However after i tried to lunch server via "$ ./scripts/tigase.sh start etc/tigase.conf" - got the following exception in log (note: all real pwds and hosts i`ve removed from this log):

@STARTED Tigase Срд Ліс 26 14:14:07 MSK 2014

componentInfo{Title=Tigase XMPP Server, Version=5.2.3-b3470/06569a8f (2014-11-14/16:50:34), Class=tigase.xml.XMLUtils}

componentInfo{Title=Tigase XMPP Server, Version=5.2.3-b3470/06569a8f (2014-11-14/16:50:34), Class=tigase.util.ClassUtil}

componentInfo{Title=Tigase XMPP Server, Version=5.2.3-b3470/06569a8f (2014-11-14/16:50:34), Class=tigase.server.XMPPServer}

2014-11-26 14:14:07.654 [main] DNSResolver.() WARNING: Resolving default host name took: 27

2014-11-26 14:14:07.698 [main] ConfiguratorAbstract.parseArgs() CONFIG: Setting defaults: --property-file = etc/init.properties

2014-11-26 14:14:07.700 [main] ConfiguratorAbstract.parseArgs() CONFIG: Loading initial properties from property file: etc/init.properties

2014-11-26 14:14:07.701 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--cluster-mode=true)

2014-11-26 14:14:07.702 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (config-type=--gen-config-def)

2014-11-26 14:14:07.702 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--debug=server)

2014-11-26 14:14:07.703 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--user-db=mysql)

2014-11-26 14:14:07.703 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--admins=admin@Ubuntu14)

2014-11-26 14:14:07.703 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--user-db-uri=jdbc:mysql://localhost/tigasedb?user=tigase&password=)

2014-11-26 14:14:07.704 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--virt-hosts=)

2014-11-26 14:14:07.704 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-name-4=message-archive)

2014-11-26 14:14:07.704 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-class-4=tigase.archive.MessageArchiveComponent)

2014-11-26 14:14:07.705 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-name-3=proxy)

2014-11-26 14:14:07.705 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-class-3=tigase.socks5.Socks5ProxyComponent)

2014-11-26 14:14:07.706 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-name-2=pubsub)

2014-11-26 14:14:07.706 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-class-2=tigase.pubsub.PubSubComponent)

2014-11-26 14:14:07.706 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-class-1=tigase.muc.MUCComponent)

2014-11-26 14:14:07.707 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--comp-name-1=muc)

2014-11-26 14:14:07.707 [main] ConfiguratorAbstract.parseArgs() CONFIG: Added default config parameter: (--sm-plugins=+message-archive-xep-0136)

2014-11-26 14:14:07.724 [main] MessageRouter.addRegistrator() INFO: Adding registrator: Configurator

2014-11-26 14:14:07.725 [main] MessageRouter.addComponent() INFO: Adding component:

2014-11-26 14:14:07.730 [main] ConfiguratorAbstract.componentAdded() CONFIG: component: basic-conf

2014-11-26 14:14:07.730 [main] ConfiguratorAbstract.setup() CONFIG: Setting up component: basic-conf

2014-11-26 14:14:07.737 [main] ConfiguratorAbstract.setup() CONFIG: Component basic-conf defaults: {component-id=basic-conf@ubuntu14, def-hostname=ubuntu14, admins=[Ljava.lang.String;@28b2311b, scripts-dir=scripts/admin, command/ALL=ADMIN, logging/.level=CONFIG, logging/handlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler, logging/java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.ConsoleHandler.level=WARNING, logging/java.util.logging.FileHandler.append=true, logging/java.util.logging.FileHandler.count=5, logging/java.util.logging.FileHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.FileHandler.limit=10000000, logging/java.util.logging.FileHandler.pattern=logs/tigase.log, logging/tigase.useParentHandlers=true, logging/java.util.logging.FileHandler.level=ALL, logging/tigase.server.level=ALL, user-domain-repo-pool=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-repo-pool-size=10, data-repo-pool-size=10, user-repo-class=mysql, user-repo-url=jdbc:mysql://localhost/tigasedb?user=tigase&password=, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:mysql://localhost/tigasedb?user=tigase&password=, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default, config-dump-file=etc/config-dump.properties}

2014-11-26 14:14:07.738 [main] ConfiguratorAbstract.setup() CONFIG: Component basic-conf configuration: {component-id=basic-conf@ubuntu14, def-hostname=ubuntu14, admins=[Ljava.lang.String;@28b2311b, scripts-dir=scripts/admin, command/ALL=ADMIN, logging/.level=CONFIG, logging/handlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler, logging/java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.ConsoleHandler.level=WARNING, logging/java.util.logging.FileHandler.append=true, logging/java.util.logging.FileHandler.count=5, logging/java.util.logging.FileHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.FileHandler.limit=10000000, logging/java.util.logging.FileHandler.pattern=logs/tigase.log, logging/tigase.useParentHandlers=true, logging/java.util.logging.FileHandler.level=ALL, logging/tigase.server.level=ALL, user-domain-repo-pool=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-repo-pool-size=10, data-repo-pool-size=10, user-repo-class=mysql, user-repo-url=jdbc:mysql://localhost/tigasedb?user=tigase&password=, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:mysql://localhost/tigasedb?user=tigase&password=, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default, config-dump-file=etc/config-dump.properties}

2014-11-26 14:14:07.742 [main] ConfiguratorAbstract.setProperties() INFO: Propeties size is 33, and here are all propeties: {component-id=basic-conf@ubuntu14, def-hostname=ubuntu14, admins=[Ljava.lang.String;@28b2311b, scripts-dir=scripts/admin, command/ALL=ADMIN, logging/.level=CONFIG, logging/handlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler, logging/java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.ConsoleHandler.level=WARNING, logging/java.util.logging.FileHandler.append=true, logging/java.util.logging.FileHandler.count=5, logging/java.util.logging.FileHandler.formatter=tigase.util.LogFormatter, logging/java.util.logging.FileHandler.limit=10000000, logging/java.util.logging.FileHandler.pattern=logs/tigase.log, logging/tigase.useParentHandlers=true, logging/java.util.logging.FileHandler.level=ALL, logging/tigase.server.level=ALL, user-domain-repo-pool=tigase.db.UserRepositoryMDImpl, auth-domain-repo-pool=tigase.db.AuthRepositoryMDImpl, user-repo-pool-size=10, data-repo-pool-size=10, user-repo-class=mysql, user-repo-url=jdbc:mysql://localhost/tigasedb?user=tigase&password=, auth-repo-class=tigase.db.jdbc.TigaseCustomAuth, auth-repo-url=jdbc:mysql://localhost/tigasedb?user=tigase&password=, ssl-container-class=tigase.io.SSLContextContainer, ssl-certs-location=certs/, ssl-def-cert-domain=default, config-dump-file=etc/config-dump.properties, shared-user-repo=null, shared-user-repo-params=null, shared-auth-repo=null, shared-auth-repo-params=null}

2014-11-26 14:14:12.346 [main] SimpleCache.() WARNING: Tigase cache turned off.

Jid vhost-manager;

Jid vhost-manager;

2014-11-26 14:14:14.377 [main] VHostManager.setProperties() WARNING: {host=Domain: host_name, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: null, domainFilter: ALL}

2014-11-26 14:14:14.570 [main] ThreadExceptionHandler.uncaughtException() SEVERE: Uncaught thread: "main" exception

java.lang.NoClassDefFoundError: tigase/component/AbstractComponent

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:800)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)

at java.net.URLClassLoader.access$100(URLClassLoader.java:71)

at java.net.URLClassLoader$1.run(URLClassLoader.java:361)

at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

at tigase.server.MessageRouterConfig.hasClassForServerComponent(MessageRouterConfig.java:514)

at tigase.server.MessageRouterConfig.getMsgRcvActiveNames(MessageRouterConfig.java:351)

at tigase.server.MessageRouter.setProperties(MessageRouter.java:759)

at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:550)

at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:182)

at tigase.conf.Configurator.componentAdded(Configurator.java:50)

at tigase.conf.Configurator.componentAdded(Configurator.java:33)

at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:115)

at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:141)

at tigase.server.MessageRouter.setConfig(MessageRouter.java:696)

at tigase.server.XMPPServer.start(XMPPServer.java:142)

at tigase.server.XMPPServer.main(XMPPServer.java:112)

Caused by: java.lang.ClassNotFoundException: tigase.component.AbstractComponent

at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:800)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)

at java.net.URLClassLoader.access$100(URLClassLoader.java:71)

at java.net.URLClassLoader$1.run(URLClassLoader.java:361)

at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

at tigase.server.MessageRouterConfig.hasClassForServerComponent(MessageRouterConfig.java:514)

at tigase.server.MessageRouterConfig.getMsgRcvActiveNames(MessageRouterConfig.java:351)

at tigase.server.MessageRouter.setProperties(MessageRouter.java:759)

at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:550)

at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:182)

at tigase.conf.Configurator.componentAdded(Configurator.java:50)

at tigase.conf.Configurator.componentAdded(Configurator.java:33)

at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:115)

at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:141)

at tigase.server.MessageRouter.setConfig(MessageRouter.java:696)

at tigase.server.XMPPServer.start(XMPPServer.java:142)

at tigase.server.XMPPServer.main(XMPPServer.java:112)

@

I can`t find such class in source code (except in tigase-pubsub-2.2.0.jar.old), therefore i think smth wrong with my configuration (even thought i kept all defaults).

Also i`ve found the following references to tigase/component/AbstractComponent

MUCComponent.class

MUCComponent$MucContextImpl.class

Could you please help me to solve this problem.


Replies (5)

Added by Wojciech Kapcia TigaseTeam about 4 years ago

Have you changed anything? For example tried to use newer MUC? We have run tests on this version (http://build.tigase.org/~tigase/) and there wasn't any problem. I just grabbed this version from files section, used your configuration and it also worked without a problem. Mentioned class should be part of the MUC component that was included in the release. If you tried to use newer version then it will fail as this class was integrated into tigase-server and was removed from the MUC.

Added by Igor Karjitski about 4 years ago

Nope, just used everything AS IS w/o changing anything (no components, no configs, no ini files, nothing).

I have used jar available here https://projects.tigase.org/attachments/download/1891/tigase-server-5.2.3-b3470.jar

Any suggestions of my next steps?

Thanks a lot for your help so far.

NOTE: the pretty same exception i get also on Win platform where i`ve used GUI installer.

Added by Igor Karjitski about 4 years ago

It is seems that somehow installation bundle includes invalid version of MUC jar by default.

I`ve attached all tigase related jars form my '/TigaseServer/jars' directory.

Note: i`ve decompiled "/jars/tigase-muc.jar" and mentioned class is not part of it, MUCComponents.java has refs to it, but the 'tigase.component.AbstractComponent' class itself could not be found anywhere in jars.

Maybe i`ve missed something, plz advice my next steps.

Thanks a lot in advance.

Added by Wojciech Kapcia TigaseTeam about 4 years ago

Hi,

I'm sorry - it seems that the bundled dependencies were in fact wrong (but this only applied to the installer packages, regular archives are ok). I've recreated the installer packages and reuploaded them. Please try now.

Apologies for inconvenience.

Added by Igor Karjitski about 4 years ago

@Wojciech Kapcia: the issue was solved, thanks a lot for your support.

    (1-5/5)