Friday, February 24, 2017

How to Install TomEE

Windows

  1. Download a TomEE version that is supported by your Process Platform version:
    1. apache-tomee-1.7.4-plus.zip 
    2. apache-tomee-1.7.3-plus.zip 
    3. apache-tomee-1.7.2-plus.zip
    4. apache-tomee-1.7.1-plus.zip 
  2. Unzip with Administrator privileges to C:\Program Files\ and rename 'apache-tomee-plus-1.7.4' to 'TomEE'
  3. Create a user 'TomEE'
    1. Click Start, type 'lusrmgr.msc' to open Local Users and Groups
    2. Go to 'Users'
    3. Create a new user 'TomEE' with password 'Tomc@tEE'
      • Disable 'User must change password at next logon'
      • Enable 'User cannot change password' and 'Password never expires'
    4. Open the properties of the TomEE user and click on tab 'Member Of'
    5. Remove the 'Users' group. The list should now be empty.
  4. Grant the TomEE user access to the installation directory
    1. Go to C:\Program Files\TomEE
    2. Open the properties of the folder, click on tab 'Security'
    3. Click 'Edit...'
    4. Click 'Add...' and select the user TomEE from your local system
    5. Grant the user TomEE 'Full control'
  5. Add an environment variable (to provide default values to the Cordys installer)
    1. Click Start, type 'sysdm.cpl' to open System Properties
    2. Click tab 'Advanced' and open 'Environment Variables'
    3. Add a system variable 'CATALINA_HOME' with the value 'C:\Program Files\TomEE'
  6. Install the service
    1. Open a command prompt with Administrator privileges in C:\Program Files\TomEE\bin
    2. Execute: service.bat install
    3. Click Start, type 'services.msc'
    4. Select 'Apache TomEE' and open the properties
    5. Click tab 'Log On'
    6. Select 'This account' and browse for the TomEE user
    7. Enter the password 'Tomc@tEE'
    8. Click 'OK', this will show a dialog saying 'The account .\TomEE has been granted the Log On As A Service right.'
  7. Add Logging, JMX and Debug properties
    1. Start C:\Program Files\TomEE\bin\TomEE.exe
    2. Click tab 'Logging'
    3. Make the textfield 'log path' empty
    4. In the textfield 'Redirect Stdout' replace 'auto' with 'C:\Program Files\TomEE\logs\catalina.out'
    5. In the textfield 'Redirect Stderror' replace 'auto' with 'C:\Program Files\TomEE\logs\catalina.err'
    6. Click tab 'Java'
    7. Ensure "Use Default" is checked for the Java Virtual Machine Path or specify the current Path for JVM
    8. Add this text to the Java Options:
      -Dcom.sun.management.jmxremote.port=9090
      -Dcom.sun.management.jmxremote.ssl=false
      -Dcom.sun.management.jmxremote.authenticate=false
      -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
      -enableassertions
      -enablesystemassertions
      -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true
  8. Continue

No comments:

Post a Comment