tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Gumbrecht <>
Subject Re: TOMEE 1.6 Service installed in Windows 7 don't respect variable setenv.bat
Date Thu, 10 Jul 2014 09:14:43 GMT
Hi Luis,

First, you should add system properties to the 'conf/' 
file to make life easy.

If you really need the system property before TomEE is hooked up then 
there is a 'service.readme.txt' - Please read this first. It describes 
how to do what you are trying.
Any time you modify the service.bat you will need to remove and 
re-install the service.
Basically run '' as an administrator to 
install the service and '' to remove it.

There are several ways but I think the most simple is to find lines and 
add the properties you want like so:

     --LogLevel Info ^
     ++JvmOptions -Dorg.apache.el.parser.COERCE_TO_ZERO=false ^
     --LogPrefix TomEE

Note: The ' ^' (space + ^) ending is critical. I cannot stress enough 
how critical this file is when it comes to formatting. Please use a 
capable editor like Notepad++, and switch on the symbols view.

TomEE.x86.exe is the Windows service executable, and is the Apache 
Commons Daemon *Prunsrv* renamed for your architecture.
Please see here for the documentation:

TomEE.x86.exe is the Apache Commons Daemon *Prunmgr* renamed for Apache 
TomEE (Documentation is as above).
Run this tool as an Administrator to configure the service - Note: This 
will not save changes to the service.bat, only in the Windows Registry. 
If you want a repeatable configuration then use the service.bat


On 09/07/2014 10:46, Luis Castro wrote:
> I am instaled TOMME 1.6.0 in windows 7 for testing,using script.
> service.bat install
> And follow tip in catalina.bat file.
>   Do not set the variables in this script. Instead put them into a script
>   setenv.bat in CATALINA_BASE/bin to keep your customizations separate.
> The content file serenv.bat
> set JAVA_OPTS= -server -Xms128m -Xmx1024m -XX:MaxPermSize=256m
> -Djava.awt.headless=true
> set CATALINA_OPTS=-Dorg.apache.el.parser.COERCE_TO_ZERO=false
> I have observed that the properties in the file  setenv.bat, dont respected or
> implemented at the time of starting the operating system,, however if
> I run manualy
> the startup.bat file these are read and applied.
> I am noted that the service that is a call.TomEE.x86.exe.
> Service instalted in Windons call "Apache TOMEE"
> vale : C://apache-tomee-plus-1.6.0\bin\TomEE.x86.exe //RS//TomEE
> questions
> 1: - How the file TomEE.x86.exe work?
> 2: -.? Startup.bat is called through service "TomEE.x86.exe"?
> 3: - Do I have to make an "exe" from the startup.bat in hard code the
> variables? sorry google translator
> In my app testing see value if no "null",
> SourceCode
> return System.getProperty("org.apache.el.parser.COERCE_TO_ZERO");

   Andy Gumbrecht

   TomEE treibt Tomitribe! |

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message