|
From: Geoffrey M. <ga...@im...> - 2006-04-13 15:39:15
|
I am runing Cruise successfully under the wrapper, but on Linux, not windows. Odds are good that it is a permissions issue of some sort. From what I have seen, 9 out of 10 problems making an app work with wrapper are permissions related. Make sure that your service is running as the same user that you are testing as. I know that Cruise and the wrapper both have some expectations regarding your current working directory (something I personally regard as a sin, but that's just my opinion). I believe that the wrapper, by default, changes your current working directory to the location of the wrapper script. Cruise tries to write the serialized project file to the current working directory, so if the location of the wrapper script is not writeable, you will have problems with losing your build number, etc. when the service is re-started. This probably isn't your specific problem, but is something to watch out for. Marco Tedone wrote: > Hi, I'm installing CruiseControl as an NT service, using the wrapper. > I found some examples on the net on how to configure CruiseControl. > > This is my configuration file: > > [begin] > wrapper.java.command=%JAVA_HOME%/bin/java > > wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp > > # Java Classpath (include wrapper.jar) Add class path elements as > # needed starting from 1 > wrapper.java.classpath.1=D:/OPENSOURCES\cruisecontrol-2.4.1/main/lib/*.jar > > wrapper.java.classpath.2=D:/OPENSOURCES/apache-ant-1.6.5/lib/*.jar > wrapper.java.classpath.3=D:/OPENSOURCES\cruisecontrol-2.4.1/main/dist/cruisecontrol.jar > > wrapper.java.classpath.4=D:/J2SE/lib/*.jar > wrapper.java.classpath.5=./*.jar > > > # Java Library Path (location of Wrapper.DLL or libwrapper.so) > wrapper.java.library.path.1=./ > > > # Java Additional Parameters > wrapper.java.additional.1=-Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder > > > # Initial Java Heap Size (in MB) > wrapper.java.initmemory=128 > > # Maximum Java Heap Size (in MB) > wrapper.java.maxmemory=256 > > # Application parameters. Add parameters as needed starting from 1 > wrapper.app.parameter.1=CruiseControl > wrapper.app.parameter.2=-jmxport 8000 > > > # Port which the native wrapper code will attempt to connect to > wrapper.port=1777 > > > > #******************************************************************** > # Wrapper NT Service Properties > #******************************************************************** > # WARNING - Do not modify any of these properties when an application > # using this configuration file has been installed as a service. > # Please uninstall the service before modifying this section. The > # service can then be reinstalled. > > # Name of the service > wrapper.ntservice.name=CruiseControl > > # Display name of the service > wrapper.ntservice.displayname=CruiseControl Service (v2.4.1) > > # Description of the service > wrapper.ntservice.description=Continuous integration builds \ > and tests with JUnit, Ant and CruiseControl. > > # Service dependencies. Add dependencies as needed starting from 1 > wrapper.ntservice.dependency.1= > > # Mode in which the service is installed. AUTO_START or DEMAND_START > wrapper.ntservice.starttype=AUTO_START > > # Priority at which the service is run. NORMAL, LOW, HIGH, or > # REALTIME > wrapper.ntservice.process_priority=NORMAL > > # Allow the service to interact with the desktop. > wrapper.ntservice.interactive=true > > [end] > > The service installs fine and starts fine, also CruiseControl picks up > the changes in the SCM repository. However, all the builds are > successfull (although these should be broken) and there is no real > output in the xml files generated by CruiseControl. > > However, when I start CruiseControl with the cruisecontrol.bat > command, everything works fine. Any idea? > > Marco > > > --- > [This E-mail has been scanned for viruses but it is your > responsibility to maintain up to date anti virus software on the > device that you are > currently using to read this email. ] > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |