Hi Luis,

First, you should add system properties to the 'conf/system.properties' 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 'service.install.as.admin.bat' as an administrator to install the service and 'service.remove.as.admin.bat' 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: http://commons.apache.org/proper/commons-daemon/procrun.html

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

Andy.

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

  http://www.tomitribe.com
  [email protected]
  https://twitter.com/AndyGeeDe

  TomEE treibt Tomitribe! | http://tomee.apache.org

Reply via email to