After building jvb.jar from source, throw " Error starting bundle" after start-up

os:
ubuntu 18.04

java version:
openjdk version “1.8.0_222”
OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

Apache Maven 3.6.0
Maven home: /usr/share/maven

Apache Ant™ version 1.10.5 compiled on March 28 2019

steps:

  1. git clone https://github.com/jitsi/jitsi-videobridge.git
  2. cd to jitsi-videobridge
  3. mvn install.

install log:
mvn_install.log (25.2 KB)

see below error after start up:
JVB 2019-10-12 08:45:02.631 SEVERE: [10] org.jitsi.impl.osgi.framework.BundleImpl.start() Error starting bundle: org.jitsi.videobridge.version.VersionActivator@30856d4f
java.lang.AbstractMethodError: org.jitsi.version.AbstractVersionActivator.getCurrentVersion()Lorg/jitsi/version/CurrentVersion;
at org.jitsi.version.AbstractVersionActivator.start(AbstractVersionActivator.java:94)
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:307)
at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)
JVB 2019-10-12 08:45:02.631 SEVERE: [10] org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged() Error changing start level
org.osgi.framework.BundleException: BundleActivator.start
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:327)
at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)
Caused by: java.lang.AbstractMethodError: org.jitsi.version.AbstractVersionActivator.getCurrentVersion()Lorg/jitsi/version/CurrentVersion;
at org.jitsi.version.AbstractVersionActivator.start(AbstractVersionActivator.java:94)
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:307)
… 5 more
JVB 2019-10-12 08:45:02.641 SEVERE: [10] org.jitsi.impl.osgi.framework.BundleImpl.start() Error starting bundle: null
java.lang.NoClassDefFoundError: org/glassfish/jersey/server/ResourceConfig
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:305)
at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)
Caused by: java.lang.ClassNotFoundException: org.glassfish.jersey.server.ResourceConfig
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 10 more
JVB 2019-10-12 08:45:02.641 SEVERE: [10] org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged() Error changing start level
org.osgi.framework.BundleException: BundleActivator.start
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:327)
at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)
Caused by: java.lang.NoClassDefFoundError: org/glassfish/jersey/server/ResourceConfig
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:305)
… 5 more
Caused by: java.lang.ClassNotFoundException: org.glassfish.jersey.server.ResourceConfig
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 10 more
JVB 2019-10-12 08:45:02.654 SEVERE: [10] org.jitsi.impl.osgi.framework.BundleImpl.start() Error starting bundle: null
java.lang.NoClassDefFoundError: org/jitsi/utils/logging2/Logger
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:305)
at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)
Caused by: java.lang.ClassNotFoundException: org.jitsi.utils.logging2.Logger
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 10 more
JVB 2019-10-12 08:45:02.654 SEVERE: [10] org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged() Error changing start level
org.osgi.framework.BundleException: BundleActivator.start
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:327)
at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)
Caused by: java.lang.NoClassDefFoundError: org/jitsi/utils/logging2/Logger
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:305)
… 5 more
Caused by: java.lang.ClassNotFoundException: org.jitsi.utils.logging2.Logger
Caused by: java.lang.ClassNotFoundException: org.jitsi.utils.logging2.Logger
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 10 more
JVB 2019-10-12 08:45:02.654 SEVERE: [10] org.jitsi.impl.osgi.framework.BundleImpl.start() Error starting bundle: null
java.lang.NoClassDefFoundError: org/jitsi/utils/logging2/Logger
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:305)
at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)
Caused by: java.lang.ClassNotFoundException: org.jitsi.utils.logging2.Logger
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 10 more
JVB 2019-10-12 08:45:02.655 SEVERE: [10] org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged() Error changing start level
org.osgi.framework.BundleException: BundleActivator.start
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:327)
at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)
Caused by: java.lang.NoClassDefFoundError: org/jitsi/utils/logging2/Logger
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:305)
… 5 more
Caused by: java.lang.ClassNotFoundException: org.jitsi.utils.logging2.Logger
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 10 more
JVB 2019-10-12 08:45:02.662 SEVERE: [10] org.jitsi.impl.osgi.framework.BundleImpl.start() Error starting bundle: org.jitsi.videobridge.VideobridgeBundleActivator@30c9801e
java.lang.NoClassDefFoundError: org/jitsi/nlj/stats/DelayStats
at org.jitsi.videobridge.VideobridgeBundleActivator.start(VideobridgeBundleActivator.java:53)
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:307)
at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)
Caused by: java.lang.ClassNotFoundException: org.jitsi.nlj.stats.DelayStats
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 7 more
JVB 2019-10-12 08:45:02.664 SEVERE: [10] org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged() Error changing start level
org.osgi.framework.BundleException: BundleActivator.start
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:327)
at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)
Caused by: java.lang.NoClassDefFoundError: org/jitsi/nlj/stats/DelayStats
at org.jitsi.videobridge.VideobridgeBundleActivator.start(VideobridgeBundleActivator.java:53)
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:307)
… 5 more
Caused by: java.lang.ClassNotFoundException: org.jitsi.nlj.stats.DelayStats
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 7 more
JVB 2019-10-12 08:45:02.773 INFO: [10] org.jitsi.videobridge.octo.OctoRelayService.log() Octo relay not configured.
JVB 2019-10-12 08:45:02.775 SEVERE: [10] org.jitsi.impl.osgi.framework.BundleImpl.start() Error starting bundle: null
java.lang.NoClassDefFoundError: org/jitsi/utils/logging2/Logger
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:305)
at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)
Caused by: java.lang.ClassNotFoundException: org.jitsi.utils.logging2.Logger
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 10 more

JVB 2019-10-12 08:45:02.775 SEVERE: [10] org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged() Error changing start level
org.osgi.framework.BundleException: BundleActivator.start
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:327)
at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)
Caused by: java.lang.NoClassDefFoundError: org/jitsi/utils/logging2/Logger
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:305)
… 5 more
Caused by: java.lang.ClassNotFoundException: org.jitsi.utils.logging2.Logger
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 10 more

What is the command you use to start it up?

MVN install to make the jar file.
but anyway, this is not reproduced .
I upgrade the jvb to latest stable code (1126). then build the 1126 source code to generate a new jar. after replacing with the new jar file. everything seems right. no exception.

You were using master this is the code of jvb 2.0, current stable and unstable deb packages that come with jitsi-meet is jvb 1.0 which currently is from a branch.

@damencho
ok. thanks for the explain. when will we have a stable jvb 2.0 ?

btw… I just have another question…

my colleague has encounter a problem. he is working on some nginx work that need to deploy it on docker and k8s. after clicking the “go” button from the index page. it redirect to a 404 error.
the nginx access log report like jitis.com/ cannot find.

I believe that the js and css have been loaded correctly. I check the code. below code is called after the button clicking.

        this.props.dispatch(appNavigate(encodeURI(room)))
            .then(onAppNavigateSettled, onAppNavigateSettled);

which event does the code dispatch ? how does the code redirect the user from index page to meeting page after clicking the button ? which js code is called to render the meeting room ?

The 404 comes most probably due to wrong nginx config. Aren’t you using the docker config from docker-jitsi-meet?
This is most probably missing in your config: https://github.com/jitsi/docker-jitsi-meet/blob/master/web/rootfs/defaults/meet.conf#L9

location ~ ^/([a-zA-Z0-9=?]+) { rewrite ^/(.*) / break;
}

can you just explain a little bit about it ?
my understand:
~ means regular expression match.
^ means the string starting with /([a-zA-Z0-0=?)
rewrite ^/(.*)$ / -> I don’t understand this line. it looks like just redirect the request to /

if I want to add a prefix on it , e.g /meeting/(meeting name), what should it be ?

should it like below ?
location ~ ^/meeting/([a-zA-Z0-9=?]+) { rewrite ^/meeting/(.*) /meeting/ break;
}

This means that https://example.com/somemeetingname will be redirected to index page.

Not 100% sure, but it looks fine.
I would deploy a simple nginx + jitsi-meet on a new VM with default settings and will try to add the subfolder on the working deployment … it will be easier to have something working and try to modify it on top of it …

and the js code will handle the somemeetingname uri and start the meeting ?

Yep.