LeTTo Doc

Installation TomEE Server

Installation TomEE 7 Server

wget http://mirror.klaus-uwe.me/apache/tomee/tomee-7.1.0/apache-tomee-7.1.0-plume.tar.gz
tar -xzf apache-tomee-7.1.0-plume.tar.gz
sudo mv apache-tomee-plume-7.1.0 /opt/tomee7
wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.47.zip
unzip mysql-connector-java-5.1.47.zip
cp mysql-connector-java-5.1.47/mysql-connector-java-5.1.47.jar /opt/tomee7/lib/
<?xml version="1.0" encoding="UTF-8"?>
<tomee>
  <!-- see http://tomee.apache.org/containers-and-resources.html -->
  <!-- activate next line to be able to deploy applications in apps -->
  <!-- <Deployments dir="apps" /> -->
  <Resource id="jdbc/letto" type="DataSource">
        JdbcDriver  com.mysql.jdbc.Driver
        JdbcUrl     jdbc:mysql://localhost/letto?autoReconnect=true
        UserName    letto
        Password    xxxgewähltesPasswortxxx                
                jtaManaged = true
                testOnReturn = true
                testWhileIdle = true
                timeBetweenEvictionRunsMillis = 60
                initialSize = 2
                minIdle = 2
                validationQuery = "select 1"
  </Resource>
</tomee>
org.apache.el.parser.SKIP_IDENTIFIER_CHECK=true
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
  <Manager pathname="" />
...
<Server port="8005" shutdown="SHUTDOWN">
   ...
   <Service name="Catalina">
      ...
      <Connector port="8088" protocol="HTTP/1.1"
                 connectionTimeout="20000"
                 redirectPort="8483" xpoweredBy="false" server="Apache TomEE" />
      ...
      <Connector port="8089" protocol="AJP/1.3" redirectPort="8483" />
      ...
    
   </Service>
</Server>

###  Einrichten des Security-Managers für das SourceCode-Plugin 
* Von der Konsole aus die Datei /opt/tomee7/conf/catalina.policy bearbeiten
* Am Ende anfügen: 
grant {
    permission java.util.PropertyPermission "java.security.policy", "write";
    permission java.lang.RuntimePermission "createSecurityManager";
    permission java.lang.RuntimePermission "setSecurityManager";
    permission java.security.SecurityPermission "getPolicy";
    permission java.lang.RuntimePermission "accessDeclaredMembers";
    permission java.io.FilePermission "C:\workspace-oxygen-letto\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps", "read";
    permission java.lang.RuntimePermission "setIO";
    permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
};
### TomEE starten
/opt/tomee7/bin/startup.sh
### TomEE stoppen
/opt/tomee7/bin/shutdown.sh
### letto.war deployen
cp letto.war /opt/tomee7/webapps/
### siehe auch * [Installation](/wiki/Installation/)