|
From: Leif M. <le...@ta...> - 2007-02-04 04:23:37
|
Joe,
You should probably talk to the Jetty guys about this as it is their
configuration file. Most likely the wrapper.conf file you are using is
meant for a different version of Jetty or something.
As to your problem though. It looks like the Wrapper is attempting
to launch your Jetty server correctly. But it is failing to fine classes
from the wrapper.jar file. Most likely it is not in your classpath.
Add the following line to your wrapper.conf. This will cause the
java command line to show up in the log file. This will make it easy
to tell what is going on as you can see what jars are being found.
wrapper.java.command.loglevel=INFO
I also suggest not trying to run as a service yet. Start by running
in console mode. If that doesn't work then it will not run as a service.
wrapper.exe -c jetty-service.conf
Once you get things working in console mode, then you can move on
to trying it as a service.
Cheers,
Leif
Joe Ersinghaus wrote:
> 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)
>
<snip>
|