Hello,
I have been trying to get jetty running as a service using Java
Service Wrapper and ran into some trouble.
Looking at the "jetty-service.conf" file, I noticed this line:
"wrapper.java.classpath.1=../lib/win32/*.jar"
But this path doesn't exist much less hold any jar files. I fished
around through the jetty directory structure and found a couple of
java files in this path:
"jetty-6.1.1\extras\win32service\src\main\java\org\mortbay\jetty\win32service".
The files are:
"JettyServiceWrapperListener.java" and "Win32Service.java"
I built these against:
jetty-6.1.1.jar
jetty-util-6.1.1.jar
start.jar
wrapper.jar
Then stuck the built jar in the "/lib/win32/" directory to match the
".conf" file.
Ran "wrapper.exe -i jetty-service.conf" and then from Windows Services
- started the jetty service and after a few seconds got an "Error
1067: The process terminated unexpectedly."
This is what the jetty.service.log file reveals:
STATUS | wrapper | 2007/02/03 20:21:17 | Jetty6-Service installed.
STATUS | wrapper | 2007/02/03 20:22:05 | --> Wrapper Started as Service
STATUS | wrapper | 2007/02/03 20:22:05 | Launching a JVM...
INFO | jvm 1 | 2007/02/03 20:22:05 |
java.lang.NoClassDefFoundError:
org/tanukisoftware/wrapper/WrapperListener
INFO | jvm 1 | 2007/02/03 20:22:05 | at
java.lang.ClassLoader.defineClass1(Native Method)
INFO | jvm 1 | 2007/02/03 20:22:05 | at
java.lang.ClassLoader.defineClass(Unknown Source)
INFO | jvm 1 | 2007/02/03 20:22:05 | at
java.security.SecureClassLoader.defineClass(Unknown Source)
INFO | jvm 1 | 2007/02/03 20:22:05 | at
java.net.URLClassLoader.defineClass(Unknown Source)
INFO | jvm 1 | 2007/02/03 20:22:05 | at
java.net.URLClassLoader.access$100(Unknown Source)
INFO | jvm 1 | 2007/02/03 20:22:05 | at
java.net.URLClassLoader$1.run(Unknown Source)
INFO | jvm 1 | 2007/02/03 20:22:05 | at
java.security.AccessController.doPrivileged(Native Method)
INFO | jvm 1 | 2007/02/03 20:22:05 | at
java.net.URLClassLoader.findClass(Unknown Source)
INFO | jvm 1 | 2007/02/03 20:22:05 | at
java.lang.ClassLoader.loadClass(Unknown Source)
INFO | jvm 1 | 2007/02/03 20:22:05 | at
sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
INFO | jvm 1 | 2007/02/03 20:22:05 | at
java.lang.ClassLoader.loadClass(Unknown Source)
INFO | jvm 1 | 2007/02/03 20:22:05 | at
java.lang.ClassLoader.loadClassInternal(Unknown Source)
INFO | jvm 1 | 2007/02/03 20:22:05 | Exception in thread "main"
I tried using java 1.5.0_10 and 1.4.2_13, but either way, same result.
If anybody can help me get the correct jar files to drop into the
win32 directory or even help me build the necessary jar files, that
would be great.
Thanks,
Joe
|