<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Just to let anyone know, in case they run into something similar, I discovered the issue. In specifying the -jar option I was also specifying the class path found in the jar manifest. That class path is not overruled by the command line class path options. This is the classpath that is found in the jar file:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; font-family: Monaco;" class="">Class-Path: ../../conf/ activemq-all-5.7.0.jar cmuConsumer.jar commons-cli.jar commons-logging.jar subject.jar ../../dist/lib/grouper.jar</div></div><div class=""><br class=""></div>The easiest work around is just specifying the main class which in this case is edu.cmu.grouper.changelog.consumer.ConsumerMain along with an appropriate class path. Obviously, there are other options as well. The main point is knowing how the jar command works in regard to the -jar option.<div class=""><br class=""></div><div class="">Cheers,</div><div class="">Jeff</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 16, 2015, at 1:03 PM, Jeffrey Eaton <<a href="mailto:jeaton@cmu.edu" class="">jeaton@cmu.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Try passing in the grouper.home setting:
<div class=""><br class="">
</div>
<div class="">java -Dgrouper.home="$GROUPER_HOME/" -jar lib/grouper/cmuConsumer.jar -group edu:berkeley:org:calnet:test-group</div>
<div class=""><br class="">
</div>
<div class="">That class comes from $GROUPER_HOME/lib/grouper/commons-jexl.jar on my system.</div>
<div class=""><br class="">
</div>
<div class="">-jeaton<br class="">
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Nov 13, 2015, at 10:30 PM, <a href="mailto:identity-services-gap@lists.andrew.cmu.edu" class="">
identity-services-gap@lists.andrew.cmu.edu</a> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class=""><br class="">
</div>
<div class="">Has anyone seen this error while launching the cmuConsumer.jar at the command line? I went through all the usual diagnostics, but not seeing what is causing the exception.</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-size: 10px; font-family: Monaco;" class="">sudo java -jar cmuConsumer.jar -group edu:berkeley:org:calnet:test-group</div>
<div style="margin: 0px; font-size: 10px; font-family: Monaco;" class="">Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/jexl2/JexlException</div>
<div style="margin: 0px; font-size: 10px; font-family: Monaco;" class=""> at edu.internet2.middleware.grouper.SubjectFinder.<clinit>(SubjectFinder.java:291)</div>
<div style="margin: 0px; font-size: 10px; font-family: Monaco;" class=""> at edu.cmu.grouper.changelog.consumer.ConsumerMain.main(ConsumerMain.java:686)</div>
<div style="margin: 0px; font-size: 10px; font-family: Monaco;" class="">Caused by: java.lang.ClassNotFoundException: org.apache.commons.jexl2.JexlException</div>
<div style="margin: 0px; font-size: 10px; font-family: Monaco;" class=""> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)</div>
<div style="margin: 0px; font-size: 10px; font-family: Monaco;" class=""> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)</div>
<div style="margin: 0px; font-size: 10px; font-family: Monaco;" class=""> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)</div>
<div style="margin: 0px; font-size: 10px; font-family: Monaco;" class=""> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)</div>
<div style="margin: 0px; font-size: 10px; font-family: Monaco;" class=""> ... 2 more</div>
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">Jeff</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
_______________________________________________<br class="">
Identity-services-gap mailing list<br class="">
<a href="mailto:Identity-services-gap@lists.andrew.cmu.edu" class="">Identity-services-gap@lists.andrew.cmu.edu</a><br class="">
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/identity-services-gap" class="">https://lists.andrew.cmu.edu/mailman/listinfo/identity-services-gap</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div></blockquote></div><br class=""></div></body></html>