tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "TURPIN Michel (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TOMEE-2041) tomee:exec - Missing CATALINA_HOME environment variable
Date Fri, 19 May 2017 13:21:04 GMT
TURPIN Michel created TOMEE-2041:
------------------------------------

             Summary: tomee:exec - Missing CATALINA_HOME environment variable
                 Key: TOMEE-2041
                 URL: https://issues.apache.org/jira/browse/TOMEE-2041
             Project: TomEE
          Issue Type: Bug
          Components: TomEE Maven Plugin
    Affects Versions: 1.7.4
         Environment: $ mvn -version
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T22:58:10+02:00)
Maven home: D:\tools\apache-maven-3.2.3
Java version: 1.8.0_111, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_111\jre
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"

            Reporter: TURPIN Michel
            Priority: Minor


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

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
{color:red}The CATALINA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
Exited Successfully!
{color}
*$ 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message