Project

General

Profile

java.lang.ClassNotFoundException: tigase.server.ComponentInfo

Yevgen Voronetskyy
Added over 5 years ago

Hi,

I have built the tigase-http-api.jar from the last code source:

c177d52 - (HEAD, master) add config resources (4 days ago - 4 days ago)

I deployed this jar with all needed deps as descibed in wiki.

When I'm running Tigase, I get the following error:

java.lang.NoClassDefFoundError: tigase/server/ComponentInfo
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
    at java.lang.Class.getDeclaredMethods(Class.java:1845)
    at org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:84)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:81)
    at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79)
    at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
    at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
    at org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250)
    at groovy.lang.MetaClassImpl.populateMethods(MetaClassImpl.java:342)
    at groovy.lang.MetaClassImpl.fillMethodIndex(MetaClassImpl.java:292)
    at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:2995)
    at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:176)
    at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:192)
    at tigase.http.rest.RestMessageReceiver.$getStaticMetaClass(RestMessageReceiver.groovy)
    at tigase.http.rest.RestMessageReceiver.<init>(RestMessageReceiver.groovy:43)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at java.lang.Class.newInstance(Class.java:374)
    at tigase.server.MessageRouterConfig.getMsgRcvInstance(MessageRouterConfig.java:340)
    at tigase.server.MessageRouter.setProperties(MessageRouter.java:714)
    at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:863)
    at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:273)
    at tigase.conf.Configurator.componentAdded(Configurator.java:51)
    at tigase.conf.Configurator.componentAdded(Configurator.java:34)
    at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:115)
    at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:168)
    at tigase.server.MessageRouter.setConfig(MessageRouter.java:623)
    at tigase.server.XMPPServer.start(XMPPServer.java:157)
    at tigase.server.XMPPServer.main(XMPPServer.java:126)
Caused by: java.lang.ClassNotFoundException: tigase.server.ComponentInfo
    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:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
    at java.lang.Class.getDeclaredMethods(Class.java:1845)
    at org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:84)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:81)
    at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79)
    at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
    at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
    at org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250)
    at groovy.lang.MetaClassImpl.populateMethods(MetaClassImpl.java:342)
    at groovy.lang.MetaClassImpl.fillMethodIndex(MetaClassImpl.java:292)
    at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:2995)
    at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:176)
    at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:192)
    at tigase.http.rest.RestMessageReceiver.$getStaticMetaClass(RestMessageReceiver.groovy)
    at tigase.http.rest.RestMessageReceiver.<init>(RestMessageReceiver.groovy:43)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at java.lang.Class.newInstance(Class.java:374)
    at tigase.server.MessageRouterConfig.getMsgRcvInstance(MessageRouterConfig.java:340)
    at tigase.server.MessageRouter.setProperties(MessageRouter.java:714)
    at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:863)
    at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:273)
    at tigase.conf.Configurator.componentAdded(Configurator.java:51)
    at tigase.conf.Configurator.componentAdded(Configurator.java:34)
    at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:115)
    at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:168)
    at tigase.server.MessageRouter.setConfig(MessageRouter.java:623)
    at tigase.server.XMPPServer.start(XMPPServer.java:157)
    at tigase.server.XMPPServer.main(XMPPServer.java:126)

Any idea?

Thanks in advance


Replies (5)

Added by Yevgen Voronetskyy over 5 years ago

It seems that I'm running the http-api.jar on the old tigase installation beta-1.

I noticed that ComponentInfo has been introduced in the beta-3...

Added by Wojciech Kapcia TigaseTeam over 5 years ago

Actually it was introduced after beta3 so if you want complete package I suggest grabbing nightly release

Added by Yevgen Voronetskyy over 5 years ago

Can I built the this component from oldest revision in order to run it on beta1?

Added by Wojciech Kapcia TigaseTeam over 5 years ago

That should be possible. Unfortunately we don't have tag for beta1 release but if you checkout beta2 and try to build it you should be good to go.

Added by Yevgen Voronetskyy over 5 years ago

Ok, thank you very much!

    (1-5/5)