|
From: Leif M. <le...@ta...> - 2008-10-23 00:54:28
|
Federico, The class not found stack trace you are getting is most likely being caused because a class required by MainGUI class is missing. It is necessary for you to include all jars required by your jar in the classpath. There may be other jars, but at the very least you are missing the wrapper.jar file which includes the WrapperListener class you are implementing. Please try the following and see if that helps. wrapper.java.classpath.1=./server.jar wrapper.java.classpath.2=./wrapper.jar Everything else looks fine assuming your wrapper.exe is also located in the bin directory. Cheers, Leif On Thu, Oct 23, 2008 at 8:41 AM, <pe...@ad...> wrote: > Hello, i just started working with JSW on a Java application that runs > constantly at home. It checks on a port, receives data and then stores in a > plain text file. > > > > I tried to make it run with JSW but had no luck, it keeps saying: > > > > STATUS | wrapper | 2008/10/22 18:12:26 | --> Wrapper Started as Console > > STATUS | wrapper | 2008/10/22 18:12:26 | Java Service Wrapper Community > Edition 3.3.1 > > STATUS | wrapper | 2008/10/22 18:12:26 | Copyright (C) 1999-2008 Tanuki > Software, Inc. All Rights Reserved. > > STATUS | wrapper | 2008/10/22 18:12:26 | > http://wrapper.tanukisoftware.org > > STATUS | wrapper | 2008/10/22 18:12:26 | > > STATUS | wrapper | 2008/10/22 18:12:26 | Launching a JVM... > > INFO | jvm 1 | 2008/10/22 18:12:26 | java.lang.NoClassDefFoundError: > hermes/main/server/src/MainGUI > > INFO | jvm 1 | 2008/10/22 18:12:26 | Caused by: > java.lang.ClassNotFoundException: hermes.main.server.src.MainGUI > > INFO | jvm 1 | 2008/10/22 18:12:26 | at > java.net.URLClassLoader$1.run(Unknown Source) > > INFO | jvm 1 | 2008/10/22 18:12:26 | at > java.security.AccessController.doPrivileged(Native Method) > > INFO | jvm 1 | 2008/10/22 18:12:26 | at > java.net.URLClassLoader.findClass(Unknown Source) > > INFO | jvm 1 | 2008/10/22 18:12:26 | at > java.lang.ClassLoader.loadClass(Unknown Source) > > INFO | jvm 1 | 2008/10/22 18:12:26 | at > sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > > INFO | jvm 1 | 2008/10/22 18:12:26 | at > java.lang.ClassLoader.loadClass(Unknown Source) > > INFO | jvm 1 | 2008/10/22 18:12:26 | at > java.lang.ClassLoader.loadClassInternal(Unknown Source) > > INFO | jvm 1 | 2008/10/22 18:12:27 | Exception in thread "main" > > ERROR | wrapper | 2008/10/22 18:12:27 | JVM exited while loading the > application. > > STATUS | wrapper | 2008/10/22 18:12:28 | CTRL-C trapped. Shutting down. > > STATUS | wrapper | 2008/10/22 18:12:28 | <-- Wrapper Stopped > > > > The class "MainGUI" is inside a JAR file, named server.jar. > > > > If I run this from the command line, the command would be: java -jar > server.jar > > > > But with I can't configure the wrapper.conf to run this. > > > > Here are some properties in the conf file: > > wrapper.java.command=java > > wrapper.java.mainclass=hermes.main.server.src.MainGUI > > wrapper.java.classpath.1=./server.jar > > wrapper.java.library.path.1=../lib > > wrapper.java.library.path.2=. > > > > The tree is like this: > > > > APP > > CONF > > wrapper.conf > > BIN > > server.jar > > > > The MainGUI class implements the WrapperListener class, and the START method > has been overridden. Also, this classes launches > > > > Any help here will be great! > > > > If someone requires more details please contact me, I'd be more than happy > in giving further info. > > > > Thanks in advance, > > Federico Alvarez. > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |