[jitsi-dev] [Jitsi-Videobridge] JVB build issue


#1

Hi,

I tried building the versions of JVB(744) & Jicofo(264) running on
meet.jit.si to no success.
I am compiling and executing both JVB and Jicofo. JVB starts up fine, but
errors out once jicofo comes up and try to discover JVB. Following is the
JVB error log which I get -
Also tried removing the maven local repository and redownloading the
dependencies, no luck there too.

[WARNING]
java.lang.NoClassDefFoundError: org/jitsi/xmpp/util/IQUtils
at
org.jitsi.xmpp.component.ComponentBase$PingTask.run(ComponentBase.java:354)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.ClassNotFoundException: org.jitsi.xmpp.util.IQUtils
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more
Jun 06, 2016 2:42:58 PM org.jitsi.util.Logger info
INFO: RECV: <iq type="get" to="jitsi-videobridge.localhost"
from="focus@auth1.localhost/focus357449680955844" id="FL08C-6"><query
xmlns="jabber:iq:version"/></iq>
[WARNING]
java.lang.NoClassDefFoundError: org/jitsi/xmpp/util/IQUtils
at org.jitsi.videobridge.xmpp.ComponentImpl.handleIQ(ComponentImpl.java:266)
at
org.jitsi.videobridge.xmpp.ComponentImpl.handleIQGet(ComponentImpl.java:366)
at
org.xmpp.component.AbstractComponent.processIQRequest(AbstractComponent.java:511)
at
org.xmpp.component.AbstractComponent.processIQ(AbstractComponent.java:289)
at
org.xmpp.component.AbstractComponent.processQueuedPacket(AbstractComponent.java:239)
at
org.xmpp.component.AbstractComponent.access$100(AbstractComponent.java:81)
at
org.xmpp.component.AbstractComponent$PacketProcessor.run(AbstractComponent.java:1051)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.jitsi.xmpp.util.IQUtils
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 10 more

Would greatly appreciate any help anyone can provide. I'm stuck on this
issue for many a days now.

Thanks,
Martin


#2

Hi Martin,

You need to build Jicofo completely before starting. Please follow the
following steps:

1. cd ~

2. rm -rf .m2/

3. cd <Jicofo Source Folder>

4. mvn -U clean package -DskipTests

5. wget -O lib/maven-ant-tasks-2.1.3.jar
http://central.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar

6. mvn dependency:resolve

7. ant -lib lib/maven-ant-tasks-2.1.3.jar dist.lin64

Best Regards,
Ankit Arora
Tech Lead - Technology
TO THE NEW Digital
M: +91 7042461884
www.tothenew.com
Hi,

I tried building the versions of JVB(744) & Jicofo(264) running on
meet.jit.si to no success.
I am compiling and executing both JVB and Jicofo. JVB starts up fine, but
errors out once jicofo comes up and try to discover JVB. Following is the
JVB error log which I get -
Also tried removing the maven local repository and redownloading the
dependencies, no luck there too.

[WARNING]
java.lang.NoClassDefFoundError: org/jitsi/xmpp/util/IQUtils
at
org.jitsi.xmpp.component.ComponentBase$PingTask.run(ComponentBase.java:354)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.ClassNotFoundException: org.jitsi.xmpp.util.IQUtils
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more
Jun 06, 2016 2:42:58 PM org.jitsi.util.Logger info
INFO: RECV: <iq type="get" to="jitsi-videobridge.localhost"
from="focus@auth1.localhost/focus357449680955844" id="FL08C-6"><query
xmlns="jabber:iq:version"/></iq>
[WARNING]
java.lang.NoClassDefFoundError: org/jitsi/xmpp/util/IQUtils
at org.jitsi.videobridge.xmpp.ComponentImpl.handleIQ(ComponentImpl.java:266)
at
org.jitsi.videobridge.xmpp.ComponentImpl.handleIQGet(ComponentImpl.java:366)
at
org.xmpp.component.AbstractComponent.processIQRequest(AbstractComponent.java:511)
at
org.xmpp.component.AbstractComponent.processIQ(AbstractComponent.java:289)
at
org.xmpp.component.AbstractComponent.processQueuedPacket(AbstractComponent.java:239)
at
org.xmpp.component.AbstractComponent.access$100(AbstractComponent.java:81)
at
org.xmpp.component.AbstractComponent$PacketProcessor.run(AbstractComponent.java:1051)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.jitsi.xmpp.util.IQUtils
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 10 more

Would greatly appreciate any help anyone can provide. I'm stuck on this
issue for many a days now.

Thanks,
Martin

···

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#3

Hi Ankit,

Thanks for the tip.
But this doesn't solve my issue. I am trying to run JVB and Jicofo using
'mvn compile exec' command, as mentioned in JVB README.
The steps you mentioned is for creating packages to run them as service. I
am running them from my command line.
Anyway the ant command fails too.

$> ant -lib lib/maven-ant-tasks-2.1.3.jar dist.lin64
Buildfile: /root/Martin/jitsi-videobridge/build.xml

BUILD FAILED
/root/Martin/jitsi-videobridge/build.xml:52: Problem: failed to create task
or type antlib:org.apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -/usr/share/ant/lib
        -/root/.ant/lib
        -a directory added on the command line with the -lib argument

Total time: 0 seconds

Thanks,
Martin

···

On Mon, Jun 6, 2016 at 5:57 PM, Ankit Arora <ankit.arora@tothenew.com> wrote:

Hi Martin,

You need to build Jicofo completely before starting. Please follow the
following steps:

1. cd ~

2. rm -rf .m2/

3. cd <Jicofo Source Folder>

4. mvn -U clean package -DskipTests

5. wget -O lib/maven-ant-tasks-2.1.3.jar
http://central.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar

6. mvn dependency:resolve

7. ant -lib lib/maven-ant-tasks-2.1.3.jar dist.lin64

Best Regards,
Ankit Arora
Tech Lead - Technology
TO THE NEW Digital
M: +91 7042461884
www.tothenew.com
Hi,

I tried building the versions of JVB(744) & Jicofo(264) running on
meet.jit.si to no success.
I am compiling and executing both JVB and Jicofo. JVB starts up fine, but
errors out once jicofo comes up and try to discover JVB. Following is the
JVB error log which I get -
Also tried removing the maven local repository and redownloading the
dependencies, no luck there too.

[WARNING]
java.lang.NoClassDefFoundError: org/jitsi/xmpp/util/IQUtils
at
org.jitsi.xmpp.component.ComponentBase$PingTask.run(ComponentBase.java:354)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.ClassNotFoundException: org.jitsi.xmpp.util.IQUtils
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more
Jun 06, 2016 2:42:58 PM org.jitsi.util.Logger info
INFO: RECV: <iq type="get" to="jitsi-videobridge.localhost"
from="focus@auth1.localhost/focus357449680955844" id="FL08C-6"><query
xmlns="jabber:iq:version"/></iq>
[WARNING]
java.lang.NoClassDefFoundError: org/jitsi/xmpp/util/IQUtils
at
org.jitsi.videobridge.xmpp.ComponentImpl.handleIQ(ComponentImpl.java:266)
at
org.jitsi.videobridge.xmpp.ComponentImpl.handleIQGet(ComponentImpl.java:366)
at
org.xmpp.component.AbstractComponent.processIQRequest(AbstractComponent.java:511)
at
org.xmpp.component.AbstractComponent.processIQ(AbstractComponent.java:289)
at
org.xmpp.component.AbstractComponent.processQueuedPacket(AbstractComponent.java:239)
at
org.xmpp.component.AbstractComponent.access$100(AbstractComponent.java:81)
at
org.xmpp.component.AbstractComponent$PacketProcessor.run(AbstractComponent.java:1051)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.jitsi.xmpp.util.IQUtils
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 10 more

Would greatly appreciate any help anyone can provide. I'm stuck on this
issue for many a days now.

Thanks,
Martin

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
_______________

Regards,

Martin Sebastian


#4

Hi Martin,

As per the discussion we had this morning during The Call, here https://github.com/jitsi/jitsi-videobridge/pull/257 you can find a script file that you can use to launch the JVB from source. It’s purely maven based. Make sure you pass the correct parameters for the script.

I hope this helps.

Best,
George

···

On Jun 6, 2016, at 10:04 AM, martin sebastian <martin.sebastian1@gmail.com> wrote:

Hi Ankit,

Thanks for the tip.
But this doesn't solve my issue. I am trying to run JVB and Jicofo using 'mvn compile exec' command, as mentioned in JVB README.
The steps you mentioned is for creating packages to run them as service. I am running them from my command line.
Anyway the ant command fails too.

$> ant -lib lib/maven-ant-tasks-2.1.3.jar dist.lin64
Buildfile: /root/Martin/jitsi-videobridge/build.xml

BUILD FAILED
/root/Martin/jitsi-videobridge/build.xml:52: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -/usr/share/ant/lib
        -/root/.ant/lib
        -a directory added on the command line with the -lib argument

Total time: 0 seconds

Thanks,
Martin

On Mon, Jun 6, 2016 at 5:57 PM, Ankit Arora <ankit.arora@tothenew.com <mailto:ankit.arora@tothenew.com>> wrote:
Hi Martin,

You need to build Jicofo completely before starting. Please follow the following steps:

1. cd ~

2. rm -rf .m2/

3. cd <Jicofo Source Folder>

4. mvn -U clean package -DskipTests

5. wget -O lib/maven-ant-tasks-2.1.3.jarhttp://central.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar
6. mvn dependency:resolve

7. ant -lib lib/maven-ant-tasks-2.1.3.jar dist.lin64

Best Regards,
Ankit Arora
Tech Lead - Technology
TO THE NEW Digital
M: +91 7042461884 <tel:%2B91%207042461884>
www.tothenew.com <http://www.tothenew.com/>
Hi,

I tried building the versions of JVB(744) & Jicofo(264) running on meet.jit.si <http://meet.jit.si/> to no success.
I am compiling and executing both JVB and Jicofo. JVB starts up fine, but errors out once jicofo comes up and try to discover JVB. Following is the JVB error log which I get -
Also tried removing the maven local repository and redownloading the dependencies, no luck there too.

[WARNING]
java.lang.NoClassDefFoundError: org/jitsi/xmpp/util/IQUtils
  at org.jitsi.xmpp.component.ComponentBase$PingTask.run(ComponentBase.java:354)
  at java.util.TimerThread.mainLoop(Timer.java:555)
  at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.ClassNotFoundException: org.jitsi.xmpp.util.IQUtils
  at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  ... 3 more
Jun 06, 2016 2:42:58 PM org.jitsi.util.Logger info
INFO: RECV: <iq type="get" to="jitsi-videobridge.localhost" from="focus@auth1.localhost/focus357449680955844" id="FL08C-6"><query xmlns="jabber:iq:version"/></iq>
[WARNING]
java.lang.NoClassDefFoundError: org/jitsi/xmpp/util/IQUtils
  at org.jitsi.videobridge.xmpp.ComponentImpl.handleIQ(ComponentImpl.java:266)
  at org.jitsi.videobridge.xmpp.ComponentImpl.handleIQGet(ComponentImpl.java:366)
  at org.xmpp.component.AbstractComponent.processIQRequest(AbstractComponent.java:511)
  at org.xmpp.component.AbstractComponent.processIQ(AbstractComponent.java:289)
  at org.xmpp.component.AbstractComponent.processQueuedPacket(AbstractComponent.java:239)
  at org.xmpp.component.AbstractComponent.access$100(AbstractComponent.java:81)
  at org.xmpp.component.AbstractComponent$PacketProcessor.run(AbstractComponent.java:1051)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.jitsi.xmpp.util.IQUtils
  at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  ... 10 more

Would greatly appreciate any help anyone can provide. I'm stuck on this issue for many a days now.

Thanks,
Martin

_______________________________________________
dev mailing list
dev@jitsi.org <mailto:dev@jitsi.org>
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org <mailto:dev@jitsi.org>
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
_______________

Regards,

Martin Sebastian
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#5

Hi George,

Thanks for the script. It works perfectly now.

Thanks,
Martin

···

On Mon, Jun 6, 2016 at 11:05 PM, George Politis <gp@jitsi.org> wrote:

Hi Martin,

As per the discussion we had this morning during The Call, here
https://github.com/jitsi/jitsi-videobridge/pull/257 you can find a script
file that you can use to launch the JVB from source. It’s purely maven
based. Make sure you pass the correct parameters for the script.

I hope this helps.

Best,
George

On Jun 6, 2016, at 10:04 AM, martin sebastian <martin.sebastian1@gmail.com> > wrote:

Hi Ankit,

Thanks for the tip.
But this doesn't solve my issue. I am trying to run JVB and Jicofo using
'mvn compile exec' command, as mentioned in JVB README.
The steps you mentioned is for creating packages to run them as service. I
am running them from my command line.
Anyway the ant command fails too.

$> ant -lib lib/maven-ant-tasks-2.1.3.jar dist.lin64
Buildfile: /root/Martin/jitsi-videobridge/build.xml

BUILD FAILED
/root/Martin/jitsi-videobridge/build.xml:52: Problem: failed to create
task or type antlib:org.apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken
place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -/usr/share/ant/lib
        -/root/.ant/lib
        -a directory added on the command line with the -lib argument

Total time: 0 seconds

Thanks,
Martin

On Mon, Jun 6, 2016 at 5:57 PM, Ankit Arora <ankit.arora@tothenew.com> > wrote:

Hi Martin,

You need to build Jicofo completely before starting. Please follow the
following steps:

1. cd ~

2. rm -rf .m2/

3. cd <Jicofo Source Folder>

4. mvn -U clean package -DskipTests

5. wget -O lib/maven-ant-tasks-2.1.3.jar
http://central.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar

6. mvn dependency:resolve

7. ant -lib lib/maven-ant-tasks-2.1.3.jar dist.lin64

Best Regards,
Ankit Arora
Tech Lead - Technology
TO THE NEW Digital
M: +91 7042461884
www.tothenew.com
Hi,

I tried building the versions of JVB(744) & Jicofo(264) running on
meet.jit.si to no success.
I am compiling and executing both JVB and Jicofo. JVB starts up fine, but
errors out once jicofo comes up and try to discover JVB. Following is the
JVB error log which I get -
Also tried removing the maven local repository and redownloading the
dependencies, no luck there too.

[WARNING]
java.lang.NoClassDefFoundError: org/jitsi/xmpp/util/IQUtils
at
org.jitsi.xmpp.component.ComponentBase$PingTask.run(ComponentBase.java:354)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.ClassNotFoundException: org.jitsi.xmpp.util.IQUtils
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more
Jun 06, 2016 2:42:58 PM org.jitsi.util.Logger info
INFO: RECV: <iq type="get" to="jitsi-videobridge.localhost" from="
focus@auth1.localhost/focus357449680955844" id="FL08C-6"><query
xmlns="jabber:iq:version"/></iq>
[WARNING]
java.lang.NoClassDefFoundError: org/jitsi/xmpp/util/IQUtils
at
org.jitsi.videobridge.xmpp.ComponentImpl.handleIQ(ComponentImpl.java:266)
at
org.jitsi.videobridge.xmpp.ComponentImpl.handleIQGet(ComponentImpl.java:366)
at
org.xmpp.component.AbstractComponent.processIQRequest(AbstractComponent.java:511)
at
org.xmpp.component.AbstractComponent.processIQ(AbstractComponent.java:289)
at
org.xmpp.component.AbstractComponent.processQueuedPacket(AbstractComponent.java:239)
at
org.xmpp.component.AbstractComponent.access$100(AbstractComponent.java:81)
at
org.xmpp.component.AbstractComponent$PacketProcessor.run(AbstractComponent.java:1051)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.jitsi.xmpp.util.IQUtils
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 10 more

Would greatly appreciate any help anyone can provide. I'm stuck on this
issue for many a days now.

Thanks,
Martin

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
_______________

Regards,

Martin Sebastian
_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
_______________

Regards,

Martin Sebastian