|
From: Leif M. <lei...@ta...> - 2014-08-19 01:09:49
|
Lin, Could you please resend your wrapper.conf and wrapper.log files? It looks like there were some problems getting onto the list and the original mail with the attachments didn't come through. Also please make list posts to the wra...@li... address. The Wrapper reads the configuration file and uses that to build up the java command line. Once the JVM is launched however, it does its own classloading. The WrapperSimpleApp loads your main class within the JVM but does not do anything special with classloaders or the class path. I should be able to spot your problem with the wrapper.conf and wrapper.log files. I assume the path to the Martini-assembly-0.1-SNAPSHOT.jar file is correct. One problem I have seen in the past is with a corrupted jar file. Please make sure it has not been corrupted by an ASCII ftp transfer or anything like that. Cheers, Leif On Tue, Aug 19, 2014 at 7:46 AM, Lin Zhao <li...@ex...> wrote: > If I run the class directly like this, it successfully calls my main class: > > java -classpath > /Users/lin/git/exabeam/martini/target/scala-2.10/Martini-assembly-0.1-SNAPSHOT.jar:../lib/wrapper.jar > org.tanukisoftware.wrapper.WrapperSimpleApp com.exabeam.martini.Martini > On Mon, Aug 18, 2014 at 3:30 PM, <wra...@li... > > wrote: > >> >> ---------- Forwarded message ---------- >> From: Lin Zhao <li...@ex...> >> To: wra...@li... >> Cc: >> Date: Mon, 18 Aug 2014 15:24:26 -0700 >> Subject: ClassNotFoundException with WrapperSimpleApp >> Hi java wrapper subscribers, >> >> I've been trying to use WrapperSimpleApp and have a >> ClassNotFoundException that I can't explain. >> >> The .conf has the jar that includes the main class, and you can see from >> the wrapper debug log that it's included to -classpath. But the wrapper >> fails to find it. >> >> Attaching the wrapper debug log. >> >> In the log, you can see: >> >> *DEBUG | wrapper | 2014/08/18 15:19:08 | Command[7] : >> /Users/lin/git/exabeam/martini/target/scala-2.10/Martini-assembly-0.1-SNAPSHOT.jar:../lib/wrapper.jar* >> >> The snapshot jar has com.exabeam.martini.Martini, yet the wrapper can't >> find it. >> >> *INFO | jvm 1 | 2014/08/18 15:19:08 | WrapperSimpleApp Error: Unable >> to locate the class com.exabeam.martini.Martini : >> java.lang.ClassNotFoundException: com.exabeam.martini.Martini* >> >> Attaching the log and the conf. Thanks for the help. >> > > |