Returning non-zero exit code in Windows

2014-09-25 Thread ~ * ~ Srijith Unni ~ * ~
Hi All,

 I am making use of commons-daemon to get my java process started
as a Windows Service. I am installing the service and launching it in jvm
mode. I want to handle any error condition that occurs and I am returning a
non-zero exit code, and I have set Recovery Options for my service. However
I am not seeing the service being restarted. I have gone through
http://comments.gmane.org/gmane.comp.jakarta.commons.issues/19191 and
http://markmail.org/message/mkavfkirjqb37bqn and I see that this issue was
fixed long back in 1.0.11.

 What I am doing is having an UncaughtExceptionHandler for my Java
runtime and I am handling the same and doing a System.exit(-1). When I run
my service prunsrv.exe separately from command prompt I am seeing that the
exit code is -1, but somehow while running as a service, it is not working
as expected.

 Can you let me know what I am doing wrong / if I have missed
anything.

-- 
Thanks  Regards,
--
A.Srijith.K.Unni
Mail ID : srijith.u...@gmail.com
Home Page : https://about.me/srijith


RE: Returning non-zero exit code in Windows

2014-09-25 Thread Martin Gainty


 From: srijithu...@india.com
 Date: Thu, 25 Sep 2014 19:27:33 +0530
 Subject: Returning non-zero exit code in Windows
 To: user@commons.apache.org
 
 Hi All,
 
  I am making use of commons-daemon to get my java process started
 as a Windows Service. I am installing the service and launching it in jvm
 mode. I want to handle any error condition that occurs and I am returning a
 non-zero exit code, and I have set Recovery Options for my service. However
 I am not seeing the service being restarted. I have gone through
 http://comments.gmane.org/gmane.comp.jakarta.commons.issues/19191 and
 http://markmail.org/message/mkavfkirjqb37bqn and I see that this issue was
 fixed long back in 1.0.11.
 
  What I am doing is having an UncaughtExceptionHandler for my Java
 runtime and I am handling the same and doing a System.exit(-1). When I run
 my service prunsrv.exe separately from command prompt I am seeing that the
 exit code is -1, but somehow while running as a service, it is not working
 as expected.
 
  Can you let me know what I am doing wrong / if I have missed
 anything.
MGopen up DAEMON-306 bug at
MGhttps://issues.apache.org/jira/browse/DAEMON-306
MGand update the report with your bug..be prepared to supply complete 
environment 
MGjvm version and location
MGwindows version
MGsc status NameOfProcRunService
MGas well as all applicable environment variables e.g
PATH
CLASSPATH
and these environment variables as well
set SERVICE_NAME=Daemon-Example

set PR_TEMP=C:/logs
set JAVA_EXECUTION_SERVICE_MODE=0

set INSTALL_FOLDER=C:\DEV\test\my-daemon-example\dist

set JAR_FILE=my-daemon-example-1.0-SNAPSHOT-jar-with-dependencies.jar

set PR_CLASS=com.antonio.castellon.App

set PR_INSTALL=C:\DEV\test\my-daemon-example\dist\prunsrv.exe 
MGthese issues are almost impossible to track down because there are multiple 
variables
MGinvolving the JVM, procrun and host environment
MGthe more information you can provide on the application stack you are running
MGthe quicker you will get a solution
MGAlso please provide the source code you are running in the bug report
 
 -- 
 Thanks  Regards,
 --
 A.Srijith.K.Unni
 Mail ID : srijith.u...@gmail.com
 Home Page : https://about.me/srijith
  

[ANNOUNCEMENT] Commons Configuration 2.0-alpha1 Released

2014-09-25 Thread Oliver Heger
The Apache Commons Team is pleased to announce the availability of
Apache Commons Configuration 2.0-alpha1.

The Commons Configuration software library provides a generic
configuration interface which enables an application to read
configuration data from a variety of sources.

This is the first alpha release for version 2.0 of Commons
Configuration. Version 2 is a major redesign of the Configuration API.
It breaks compatibility in many areas and, therefore, is not a drop-in
replacement for Commons Configuration 1.x. The main purpose of this
alpha release is to gather feedback from the community about the
reworked API. IT IS NOT YET PRODUCTION READY. It is expected that there
will still be some changes on the public API.

A full list of all changes can be found in the release notes at
  http://www.apache.org/dist/commons/configuration/RELEASE-NOTES.txt

There is also an upgrade guide available for users of version 1.x at
  http://commons.apache.org/configuration/userguide/upgradeto2_0.html

Source and binary distributions are available for download from the
Apache Commons download site:

http://commons.apache.org/proper/commons-configuration/download_configuration.cgi

When downloading, please verify signatures using the KEYS file available
at the above location when downloading the release. (Note: Because this
is an alpha version, we decided that it will not be distributed to Maven
central.)

For complete information on Commons Configuration, including
instructions on how to submit bug reports, patches, or suggestions for
improvement, see the Apache Commons Configuration website:

http://commons.apache.org/proper/commons-configuration/

Oliver Heger, on behalf of the Apache Commons community

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org