Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Time to admit Play does not support on Windows Machine in Production

Date: Fri, 2 Nov 2012 09:59:16 -0700 (PDT)
From: Ben McCann <benjamin.j.mcc...@gmail.com>
To: play-framework@googlegroups.com
Message-Id: <d6c068c8-b8ac-4520-8f02-c3ff81d463be@googlegroups.com>
In-Reply-To: <77b04cd3-2e20-4f6c-9195-585a45aa9f97@googlegroups.com>
References: <b807c547-ff01-4b3a-b5b6-036daddc7bb0@googlegroups.com>
 <9928e638-031b-4224-b308-5a581b40d954@googlegroups.com>
 <2006ecfb-a7a6-4ed1-af0d-0565b5387948@googlegroups.com>
 <3bb66732-8dfb-449a-b55a-6e82035abfce@googlegroups.com>
 <5ed29755-a8a2-4fab-bb73-2141ec5407e9@googlegroups.com>
 <058d4538-2a48-412f-9fd9-6da10c06027d@googlegroups.com>
 <77b04cd3-2e20-4f6c-9195-585a45aa9f97@googlegroups.com>
Subject: Re: Time to admit Play does not support on Windows Machine in
 Production
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_875_3448058.1351875556688"

------=_Part_875_3448058.1351875556688
Content-Type: multipart/alternative; 
	boundary="----=_Part_876_3010708.1351875556688"

------=_Part_876_3010708.1351875556688
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Hi Khalid,

I'm also receiving the message "JavaInvoker was created outside of 
JavaInvoker#init - this potentially could lead to initialization problems 
in production mode".  Are you using the latest version of Play from GitHub 
or a released version.

Thanks,
Ben


On Wednesday, October 31, 2012 8:38:14 PM UTC-7, Khalid Alkassoum wrote:
>
> in your project directory as usual-> play stage 
> then copy "target/stage" in your production dir, say 
> "c:\myprodutiondir\target\stage"
>
> create two files in "c:\myprodutiondir" run.bat and 
> starter.bat.WINDOWS.KEEP
>
> run.bat with this content
>
> @echo off
> echo this must be run in the parent directory of target
> echo c:\myproductiondir\target\stage
> echo cd c:\myproductiondir 
> echo run.bat
> copy .\starter.bat.WINDOWS.KEEP .\target\starter.bat /Y
> call target\starter.bat
>
>
> and another file named starter.bat.WINDOWS.KEEP with this content
>
> @echo off
> java -cp  ".;%~dp0staged\*" -DapplyEvolutions.default=true -Dhttp.port=80 
> play.core.server.NettyServer "%~dp0.."
>
> then cd in c:\myprodutiondir
> c:\myprodutiondir>run.bat
>
> Note this security warning 
> [info] application - JavaInvoker was created outside of JavaInvoker#init - 
> this potentially could lead to initialization problems in production mode
> but this is another subject ...
>
> On next deployment, just replace stage content
>
> Please tell us if this works for you
>

------=_Part_876_3010708.1351875556688
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Khalid,<div><br></div><div>I'm also receiving the message "JavaInvoker w=
as created outside of JavaInvoker#init - this potentially could lead to ini=
tialization problems in production mode". &nbsp;Are you using the latest ve=
rsion of Play from GitHub or a released version.</div><div><br></div><div>T=
hanks,</div><div>Ben</div><div><br><br>On Wednesday, October 31, 2012 8:38:=
14 PM UTC-7, Khalid Alkassoum wrote:<blockquote class=3D"gmail_quote" style=
=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: =
1ex;">in your project directory as usual-&gt; play stage <br>then copy "tar=
get/stage" in your production dir, say "c:\myprodutiondir\target\<wbr>stage=
"<br><br>create two files in "c:\myprodutiondir" run.bat and starter.bat.WI=
NDOWS.KEEP<br><br>run.bat with this content<br><br>@echo off<br>echo this m=
ust be run in the parent directory of target<br>echo c:\myproductiondir\tar=
get\<wbr>stage<br>echo cd c:\myproductiondir <br>echo run.bat<br>copy .\sta=
rter.bat.WINDOWS.KEEP .\target\starter.bat /Y<br>call target\starter.bat<br=
><br><br>and another file named starter.bat.WINDOWS.KEEP with this content<=
br><br>@echo off<br>java -cp&nbsp; ".;%~dp0staged\*" -DapplyEvolutions.defa=
ult=3Dtrue -Dhttp.port=3D80 play.core.server.NettyServer "%~dp0.."<br><br>t=
hen cd in c:\myprodutiondir<br>c:\myprodutiondir&gt;run.bat<br><br>Note thi=
s security warning <br>[info] application - JavaInvoker was created outside=
 of JavaInvoker#init - this potentially could lead to initialization proble=
ms in production mode<br>but this is another subject ...<br><br>On next dep=
loyment, just replace stage content<br><br>Please tell us if this works for=
 you<br></blockquote></div>
------=_Part_876_3010708.1351875556688--

------=_Part_875_3448058.1351875556688--