Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 61023D7DE for ; Wed, 3 Oct 2012 13:27:27 +0000 (UTC) Received: (qmail 89751 invoked by uid 500); 3 Oct 2012 13:27:27 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 89456 invoked by uid 500); 3 Oct 2012 13:27:23 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 89427 invoked by uid 99); 3 Oct 2012 13:27:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 13:27:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [217.70.183.195] (HELO relay3-d.mail.gandi.net) (217.70.183.195) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 13:27:14 +0000 X-Originating-IP: 217.70.178.132 Received: from mfilter5-d.gandi.net (mfilter5-d.gandi.net [217.70.178.132]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 14447A8077 for ; Wed, 3 Oct 2012 15:26:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter5-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter5-d.gandi.net (mfilter5-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id lhdWpSOrg2d1 for ; Wed, 3 Oct 2012 15:26:52 +0200 (CEST) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.15] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 735BCA809E for ; Wed, 3 Oct 2012 15:26:52 +0200 (CEST) Message-ID: <506C3D1B.2030203@nanthrax.net> Date: Wed, 03 Oct 2012 15:26:51 +0200 From: =?ISO-8859-1?Q?Jean-Baptiste_Onofr=E9?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: user@karaf.apache.org Subject: Re: Cannot run wrapper on Windows Server 2003 R2 References: <506C332F.10600@nanthrax.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable You are right: - the wrapper files are "embedded" in the wrapper bundle - the wrapper install command "detects" the platform (Unix or Windows=20 using os.name system property, 32 bits or 64 bits using os.arch system=20 property) So yes, if you execute wrapper:install again, it will try to detect the=20 running platform and install the files corresponding to this platform. Regards JB On 10/03/2012 03:13 PM, Bengt Rodehav wrote: > Did some more investigating.... > > I use my own custom distribution. I have always created that by: > > - Downloading the appropriate Karaf standard distribution > - Start Karaf > - features:install wrapper > - wrapper:install > > That way the needed Wrapper files are extracted for me and I can includ= e > them in the distribution "out-of-the-box". The extracted files are: > > - bin\karaf-wrapper.exe > - etc\karaf-wrapper.conf > - bin\karaf-service.bat > - lib\wrapper.dll > - lib\karaf-wrapper.jar > - lib\karaf-wrapper-main.jar > > I normally customize karaf-wrapper.conf but leave the rest unchanged. > > I now tried running "wrapper:install" on a standard Karaf 2.2.8 > distribution on Windows XP (32 bit). I then succeeded in installing the > wrapper. > > My conclusion then is that when runnning "wrapper:install" some kind of > OS detection is being done so that the correct version of the Wrapper i= s > installed thus breaking my strategy of doing this when I create the > distribution instead of doing it when I actually install the wrapper > service. > > Am I right? > > Can I just remove the extracted files and re-run "wrapper:install" as a > work around on 32 bit Windows? > > /Bengt > > > 2012/10/3 Bengt Rodehav > > > Thanks for your reply JB. > > Yes, it's a 32 bit platform. > > I just tried on a Windows XP Professional 2002 SP3 (also 32 bit) > which gives me a similar error message: > > "...\apache-karaf-2.2.8\bin\karaf-wrapper.exe is not a valid Win32 > application" > > So, I guess the karaf-wrapper.exe that I'm using requires 64 bit > Windows? Is there a workaround? > > /Bengt > > > 2012/10/3 Jean-Baptiste Onofr=E9 > > > Hi Bengt, > > is it a 64bits or 32bits platform ? > > Regards > JB > > > On 10/03/2012 02:42 PM, Bengt Rodehav wrote: > > I've recently upgraded from Karaf 2.2.5 to Karaf 2.2.8. I'v= e > been > testing mostly on Windows 7 and I'm now trying to install o= n the > customer's test system which is running Windows Server 2003= R2. > > I run the following command: bin\karaf-service.bat install > > and I get the following error message: > > "The image file > ....\apache-karaf-2.2.8\bin\__karaf-wrapper.exe is valid, > but is for a machine type other than the current machine." > > What is happening? Has anyone else had this problem? > > /Bengt > > > -- > Jean-Baptiste Onofr=E9 > jbonofre@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com > > > --=20 Jean-Baptiste Onofr=E9 jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com