|
From: <pe...@ad...> - 2008-10-22 23:42:28
|
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. |