Thanks for the troubleshooting info.  Unfortunately I had looked at the logs 
and events and found nothing useful there.

I solved the problem by dumping procrun and using yajsw.  Much easier to use 
and at least for me much more reliable.

From: [email protected] [mailto:[email protected]] 
On Behalf Of Joakim Erdfelt
Sent: Tuesday, June 3, 2014 12:42 PM
To: JETTY user mailing list
Subject: Re: [jetty-users] Jetty as window service fails at start

Just used those instructions on Windows 7, with JDK 1.7u55, and Jetty 
Distribution 9.2.0.v20140526

It started up just fine.
The logs in C:\opt\logs\ should show the logs from both prunsrv and Jetty.
(In fact, there are usually 3 log files generated)

C:\opt\logs\%SERVICE_NAME%.yyyy-mm-dd.log
C:\opt\logs\%SERVICE_NAME%-stderr.yyyy-mm-dd.log
C:\opt\logs\%SERVICE_NAME%-stdout.yyyy-mm-dd.log

Since you indicated startup crash, here's your troubleshooting guide...

1) Check the administrative event logs
  If there is an error here, address it, as prunsrv itself couldn't run
2) Check your prunsrv logs - C:\opt\logs\%SERVICE_NAME%.yyyy-mm-dd.log
  If there is an error here, its likely you have your prunsrv configuration 
off/broken.
  uninstall the service, fix the configuration, install service, test, lather, 
rinse, repeat.
3) Check your stderr logs - C:\opt\logs\%SERVICE_NAME%-stderr.yyyy-mm-dd.log
  If there is an error here, its a jetty base configuration issue.
4) Check your stdout logs - C:\opt\logs\%SERVICE_NAME%-stdout.yyyy-mm-dd.log
  If there is an error here, its your webapp's issue.



--
Joakim Erdfelt <[email protected]<mailto:[email protected]>>
webtide.com<http://www.webtide.com/> - 
intalio.com/jetty<http://intalio.com/jetty>
Expert advice, services and support from from the Jetty & CometD experts
eclipse.org/jetty<http://eclipse.org/jetty/> - cometd.org<http://cometd.org/>

On Mon, Jun 2, 2014 at 7:46 AM, BRUNO MELLONI 
<[email protected]<mailto:[email protected]>> wrote:
Posted this Friday and probably due to the weekend got no responses.  I very 
much need to get Jetty working as a service.

Any advice on how to proceed?

Has anybody been able to successfully run Jetty as a service by following the 
instructions?  If yes, do you know of something I might have missed or done 
wrong?

From: BRUNO MELLONI
Sent: Friday, May 30, 2014 3:46 PM
To: '[email protected]<mailto:[email protected]>'
Subject: Jetty as window service fails at start

After installing and starting Jetty from the command line I followed the jetty 
procrun instructions on the website 
(http://www.eclipse.org/jetty/documentation/current/startup-windows-service.html),
 the service seemed to install correctly, but when I try to run it I get a 
message telling me that it failed to start… with no other details.  The logs 
indicate that Jetty started with no errors, but it clearly crashes upon start.

How do I troubleshoot it?  I assume there are useful error messages somewhere?

Also, as a failover… is there any other way (a more reliable one) to run Jetty 
as a windows service?

_______________________________________________
jetty-users mailing list
[email protected]<mailto:[email protected]>
https://dev.eclipse.org/mailman/listinfo/jetty-users

_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to