From user-return-3227-apmail-forrest-user-archive=forrest.apache.org@forrest.apache.org Fri Feb 10 17:05:57 2006 Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 44414 invoked from network); 10 Feb 2006 17:05:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Feb 2006 17:05:57 -0000 Received: (qmail 20515 invoked by uid 500); 10 Feb 2006 17:05:56 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 20481 invoked by uid 500); 10 Feb 2006 17:05:56 -0000 Mailing-List: contact user-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@forrest.apache.org List-Id: Delivered-To: mailing list user@forrest.apache.org Received: (qmail 20472 invoked by uid 99); 10 Feb 2006 17:05:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2006 09:05:56 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.23.3.140] (HELO pythagoras.zen.co.uk) (212.23.3.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2006 09:05:55 -0800 Received: from [82.69.78.226] (helo=[192.168.0.2]) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1F7bi9-0001uM-TA for user@forrest.apache.org; Fri, 10 Feb 2006 17:05:33 +0000 Message-ID: <43ECC7D5.4020006@apache.org> Date: Fri, 10 Feb 2006 17:05:25 +0000 From: Ross Gardler User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: user@forrest.apache.org Subject: Re: AW: forrest on Windows as background process References: <43ECBE2D.2090903@uidesign.de> In-Reply-To: <43ECBE2D.2090903@uidesign.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-Pythagoras-IP: [82.69.78.226] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Johannes Schaefer wrote: > Jan.Materne@rzf.fin-nrw.de wrote: > >>>Johannes Schaefer wrote: >>> >>>>Hi! >>>> >>>>We need to run a forrest server as background process on Win-XP. >>>>On Unix we can do 'forrest run&'. >>>> >>>>How can I achieve this on Windows? >>> >>>I'm not a windows user so can't help directly. But the windows >>>terminology (I believe) is to run Forest as a "service". >>> >>>Perhaps that will help in a web search or prompt some windows >>>users with better knowledge than I to tell us what they know >>>(even if it is that I am incorrect in my assumptions). > > > It does not seem to be a trivial task :-( > > >>I would try service wrappers like http://jsrvany.sourceforge.net/ > > > Thanks for the pointer, I guess I want to try > "... the java wrapper provided by > http://wrapper.tanukisoftware.org > to provide jetty as an Win32 service." > since it comes with Jetty 4.2.25 (extra/win32) > > Next problem is that I'm no ant expert and I'm not able to decypher > how to start 'forrest run' as a jetty app without using forrest.bat > Can anyone bridge the gap and give me a commandline like > > >java org.mortbay.jetty.Server ... > > maybe plus some environment variables (CLASSPATH and the lot). I wrote some code for the Eclipse plugin that does all that. I'd recommend starting your investigation at [1] (in particular starting at the line "monitor.subTask("Starting Server")". This builds the classloader etc. for the Eclipse execution environment. It's a long time since I wrote the code but I'm pretty sure the majority of code is not dependant on Eclipse, it's only the actual execution code that is Eclipse dependant and I'm guessing your wrapper stuff above will deal with that. Ross [1] http://svn.apache.org/repos/asf/forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/job/ForrestRunner.java