tango-controls is built very well and I can start playing with the different components (astor, jive, pogo…). But one of them doesn’t work: logviewer.
$ logviewer
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at fr.esrf.logviewer.Main.<clinit>(Main.java:45)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 1 more
Hi guys,
The Java gurus will correct me if I’m wrong but your problem seems related to the fact that log4j is no longer in the jtango jar file(s). It means you need to install it somewhere and then add it to the CLASSPATH while launching the LogViewer. Clearly speaking, you have to edit logviewer.sh (launcher/script) and add the log4j.jar to the CLASSPATH.
The other scripts astor and jive (in /usr/local/bin/) define a reference to log4j which is located in the Tango Java classes directory (/usr/local/share/java/). It seems appropriate to create a ticket GitLab to correct this missing dependency. What do you think?
Hi JC,
Sorry for the late answer. We definitively have to fix that problem. Let’s create an issue on gitlab and see what the gurus could propose. The proposed gitlab project (i.e., TangoSourceDistribution) seems to be the right place to create the this issue. Thanks for your contribution.