Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5C6EB200C7B for ; Sat, 20 May 2017 10:01:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4FE45160BBC; Sat, 20 May 2017 08:01:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6EFA8160BAD for ; Sat, 20 May 2017 10:01:08 +0200 (CEST) Received: (qmail 87002 invoked by uid 500); 20 May 2017 08:01:07 -0000 Mailing-List: contact commits-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tomee.apache.org Delivered-To: mailing list commits@tomee.apache.org Received: (qmail 86993 invoked by uid 500); 20 May 2017 08:01:07 -0000 Delivered-To: apmail-openejb-commits@openejb.apache.org Received: (qmail 86990 invoked by uid 99); 20 May 2017 08:01:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 May 2017 08:01:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D64F9180516 for ; Sat, 20 May 2017 08:01:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id NiU2lRVsKT1X for ; Sat, 20 May 2017 08:01:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 140B65F3BE for ; Sat, 20 May 2017 08:01:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 82C58E05BF for ; Sat, 20 May 2017 08:01:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 113CA21B56 for ; Sat, 20 May 2017 08:01:04 +0000 (UTC) Date: Sat, 20 May 2017 08:01:04 +0000 (UTC) From: "TURPIN Michel (JIRA)" To: commits@openejb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (TOMEE-2041) tomee:exec - Missing CATALINA_HOME environment variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 20 May 2017 08:01:09 -0000 [ https://issues.apache.org/jira/browse/TOMEE-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] TURPIN Michel updated TOMEE-2041: --------------------------------- 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 {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. was: 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. > 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 > Fix For: 7.0.3 > > > 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 > {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)