I am using the YAJSW as a library in my project. I have my own configuration mechanism which I translate to YAJSW specific (within the code - without any YAJSW configuration files). This works fine under Windows. Unfortunately not on Linux.
When I try to create a Linux daemon using following method (I supply a valid configuration properties):
org.rzo.yajsw.wrapper.WrappedServiceFactory.createService( Map map)
I get a warning in
String confFile = _config.getString("wrapper.config");
String confDir = null;
if (confFile != null)
File f = new File(confFile);
confDir = f.getParentFile().getCanonicalPath();
catch (IOException e)
if (confDir == null)
confDir = wrapperHome + "/conf";
if (confFile == null)
_logger.warning("no conf file found -> abort");
It seems that a configuration file is expected regardless that I supply all the configuration properties in the "map" parameter. On Windows there is no such problem because all the configuration properties are copied into the Windows service execution command.
Should not the library behave the same for different OS?