[jitsi-dev] Error: Could not find or load main class org.jitsi.jigasi.Main


#1

Hi all!

When trying to start Jigasi I am getting the following error:

···

--------------------------------------------------------------------
jigasi@conference:~/jigasi$ ./jigasi.sh
--domain=conf.opcion-libre.com.ar --subdomain=callcontrol --secret=topsecret
Error: Could not find or load main class org.jitsi.jigasi.Main
--------------------------------------------------------------------

Should I add an environment variable with some path for the jigasi user?

I tried with:

--------------------------------------------------------------------
export
CLASSPATH="$CLASSPATH:/opt/jigasi/jigasi/src/main/java/org/jitsi/jigasi"
--------------------------------------------------------------------

But it did not work.

On the other hand I am seeing the following messages from Prosody:

--------------------------------------------------------------------
Apr 29 12:05:45 callcontrol.conf.opcion-libre.com.ar:component warn
Component not connected, bouncing error for: <iq id='L638H-2688'
type='get' to='callcontrol.conf.opcion-libre.com.ar'
from='focus@auth.conf.opcion-libre.com.ar/focus55374901147507'>
--------------------------------------------------------------------

This is because jigasi is not up and running?

Thanks in advance.

Kind regards,
Daniel


#2

Hi,

You need to first make it. Check the README file in the source code root.
Currently, all jitsi projects use maven for downloading their
dependencies, so you need an extra step for using ant and maven.
You need to make sure you have maven installed, then:
$ mvn dependency:get -DartifactId=maven-ant-tasks
-DgroupId=org.apache.maven -Dversion=2.1.3
$ ant make -lib ~/.m2/repository/org/apache/maven/maven-ant-tasks/2.1.3

Regards
damencho

···

On Sat, Apr 29, 2017 at 10:07 AM, Daniel Bareiro <daniel-listas@gmx.net> wrote:

Hi all!

When trying to start Jigasi I am getting the following error:

--------------------------------------------------------------------
jigasi@conference:~/jigasi$ ./jigasi.sh
--domain=conf.opcion-libre.com.ar --subdomain=callcontrol --secret=topsecret
Error: Could not find or load main class org.jitsi.jigasi.Main
--------------------------------------------------------------------

Should I add an environment variable with some path for the jigasi user?

I tried with:

--------------------------------------------------------------------
export
CLASSPATH="$CLASSPATH:/opt/jigasi/jigasi/src/main/java/org/jitsi/jigasi"
--------------------------------------------------------------------

But it did not work.

On the other hand I am seeing the following messages from Prosody:

--------------------------------------------------------------------
Apr 29 12:05:45 callcontrol.conf.opcion-libre.com.ar:component warn
Component not connected, bouncing error for: <iq id='L638H-2688'
type='get' to='callcontrol.conf.opcion-libre.com.ar'
from='focus@auth.conf.opcion-libre.com.ar/focus55374901147507'>
--------------------------------------------------------------------

This is because jigasi is not up and running?

Thanks in advance.

Kind regards,
Daniel

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


#3

Hi,

Hi, Damian.

Thanks for your reply.

You need to first make it. Check the README file in the source code root.

Yes, that was what I had done. That document suggests making a "clone"
and then running "ant make". But that leads me to the error I mentioned
in the other thread (Error compiling Jigasi).

Then, from the answer that you gave me in that thread, I interpreted
that "mvn dependency:tree -Dverbose" was an alternative way of compiling
instead of using "ant make".

Currently, all jitsi projects use maven for downloading their
dependencies, so you need an extra step for using ant and maven.
You need to make sure you have maven installed, then:
$ mvn dependency:get -DartifactId=maven-ant-tasks
-DgroupId=org.apache.maven -Dversion=2.1.3
$ ant make -lib ~/.m2/repository/org/apache/maven/maven-ant-tasks/2.1.3

Ah, so Maven downloads the dependencies but does not do the build itself?

I started again from scratch, with the following steps, deleting
previously the .m2 and jigasi directories.

1)

jigasi@conference:~$ git clone https://github.com/jitsi/jigasi.git

2)

jigasi@conference:~/jigasi$ mvn dependency:get
-DartifactId=maven-ant-tasks -DgroupId=org.apache.maven -Dversion=2.1.3

This ends without errors:

[INFO]

···

On 30/04/17 18:39, Damian Minkov wrote:
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 03:05 min
[INFO] Finished at: 2017-04-30T19:12:51-03:00
[INFO] Final Memory: 14M/35M
[INFO]
------------------------------------------------------------------------

Apparently everything was downloaded without problems.

3)

jigasi@conference:~/jigasi$ ant make -lib
~/.m2/repository/org/apache/maven/maven-ant-tasks/2.1.3

This apparently ends with the same error that I mentioned in the thread
"Error compiling Jigasi":

------------------------------------------------------------------------
(...)
[maven-artifact:dependencies] An error has occurred while processing the
Maven artifact tasks.
[maven-artifact:dependencies] Diagnosis:
[maven-artifact:dependencies]
[maven-artifact:dependencies] Unable to resolve artifact: Unable to get
dependency information: Unable to read the metadata file for artifact
'com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar':
Cannot find parent: org.sonatype.oss:oss-parent for project:
com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.0_jdk5
for project
com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.0_jdk5
[maven-artifact:dependencies]
com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.0_jdk5
[maven-artifact:dependencies]
[maven-artifact:dependencies] from the specified remote repositories:
[maven-artifact:dependencies] jitsi-maven-repository-snapshots
(https://github.com/jitsi/jitsi-maven-repository/raw/master/snapshots/),
[maven-artifact:dependencies] central (http://repo1.maven.org/maven2),
[maven-artifact:dependencies] sonatype-nexus-snapshots
(https://oss.sonatype.org/content/repositories/snapshots),
[maven-artifact:dependencies] jitsi-maven-repository-releases
(https://github.com/jitsi/jitsi-maven-repository/raw/master/releases/)
[maven-artifact:dependencies]
[maven-artifact:dependencies] Path to dependency:
[maven-artifact:dependencies] 1) org.jitsi:jigasi:jar:1.0-SNAPSHOT
[maven-artifact:dependencies] 2) org.igniterealtime:tinder:jar:1.2.3
[maven-artifact:dependencies]
[maven-artifact:dependencies]
[maven-artifact:dependencies] Not a v4.0.0 POM. for project
org.sonatype.oss:oss-parent at
/opt/jigasi/.m2/repository/org/sonatype/oss/oss-parent/3/oss-parent-3.pom

BUILD FAILED
/opt/jigasi/jigasi/build.xml:39: Unable to resolve artifact: Unable to
get dependency information: Unable to read the metadata file for
artifact
'com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar':
Cannot find parent: org.sonatype.oss:oss-parent for project:
com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.0_jdk5
for project
com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.0_jdk5

com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.0_jdk5

from the specified remote repositories:
  jitsi-maven-repository-snapshots
(https://github.com/jitsi/jitsi-maven-repository/raw/master/snapshots/),
  central (http://repo1.maven.org/maven2),
  sonatype-nexus-snapshots
(https://oss.sonatype.org/content/repositories/snapshots),
  jitsi-maven-repository-releases
(https://github.com/jitsi/jitsi-maven-repository/raw/master/releases/)

Path to dependency:
        1) org.jitsi:jigasi:jar:1.0-SNAPSHOT
        2) org.igniterealtime:tinder:jar:1.2.3

Total time: 20 seconds
------------------------------------------------------------------------

Kind regards,
Daniel