Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-2041

tomee:exec - Missing CATALINA_HOME environment variable

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.4
    • Fix Version/s: 7.0.3
    • Component/s: TomEE Maven Plugin
    • Labels:
    • Environment:

      Description

      Given this simple project : https://github.com/grimly/TomEE-simple/tree/TOMEE-2041

      The following happen :

      $ mvn clean install tomee:exec
      .... expect build success
      $ cd target/
      $ java -jar rest-1.0.0-SNAPSHOT-exec.jar
      Extracting tomee to D:\projects\rest\target\.distribution
      The CATALINA_HOME environment variable is not defined correctly
      This environment variable is needed to run this program
      Exited Successfully!

      $ export CATALINA_HOME="`pwd`/.distribution/apache-tomee"; java -jar rest-1.0.0-SNAPSHOT-exec.jar
      Using CATALINA_BASE: "D:/projects/rest/target/.distribution/apache-tomee"
      Using CATALINA_HOME: "D:/projects/rest/target/.distribution/apache-tomee"
      Using CATALINA_TMPDIR: "D:/projects/rest/target/.distribution/apache-tomee\temp"
      Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_111"
      Using CLASSPATH: "D:/projects/rest/target/.distribution/apache-tomee\bin\bootstrap.jar;D:/projects/rest/target/.distribution/apache-tomee\bin\tomcat-juli.jar"
      .... The server starts as expected

      Either this is a bug or a missing documentation but as a user I expected to produce a complete standalone self executing jar.
      But it requires me to specify a CATALINA_HOME variable with the path the jar will extract to.

      Using catalina or startup scripts in .distributed/tomee-apache/bin still works without the CATALINA_HOME environment variable.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              grimly Michel TURPIN
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: