You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2017/05/19 18:39:04 UTC

[jira] [Commented] (TOMEE-2041) tomee:exec - Missing CATALINA_HOME environment variable

    [ https://issues.apache.org/jira/browse/TOMEE-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16017813#comment-16017813 ] 

Romain Manni-Bucau commented on TOMEE-2041:
-------------------------------------------

7.x branch got a lot of enhancements on that area, does it happen with 7.0.3?

> 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
>              Labels: maven
>
> 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)