From users-return-264990-archive-asf-public=cust-asf.ponee.io@tomcat.apache.org Sat Jun 30 15:38:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id C804918066B for ; Sat, 30 Jun 2018 15:38:04 +0200 (CEST) Received: (qmail 49229 invoked by uid 500); 30 Jun 2018 13:38:03 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 49209 invoked by uid 99); 30 Jun 2018 13:38:02 -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, 30 Jun 2018 13:38:02 +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 82D041809AF for ; Sat, 30 Jun 2018 13:38:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.101 X-Spam-Level: X-Spam-Status: No, score=-0.101 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 4tgcmxsond0n for ; Sat, 30 Jun 2018 13:38:01 +0000 (UTC) Received: from mail-ua0-f171.google.com (mail-ua0-f171.google.com [209.85.217.171]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DCE935F33F for ; Sat, 30 Jun 2018 13:38:00 +0000 (UTC) Received: by mail-ua0-f171.google.com with SMTP id u8-v6so2177664uao.4 for ; Sat, 30 Jun 2018 06:38:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=FyS+JBgoOWC2IZTXjSMsgjh9uGjQczeg7XlpwgQpa+s=; b=bz42DY5IgfZv4H46cPk0s4nG8sIR0uW/xE0o/Rm99iQlESoKab3K9+Ug2B+04UO9yx edB3uc+jBzyorf8WMk2qK0ck9dNCR8UAqfjj4VnsTCaInpXQB0Y/eirsRd6UOI+z7Qs3 OSZGazZTM6b7BYI2xSfXKDpuqJLPztK+PmMgh54lJyf49VZc+OJSduo58uvk8MBIInOz 0XChdx0d2TcQRC96Z2w+7q5IC1G+EvQV6ZOTxooNkRwxrCl1s39QrtoS/Vp0A+oy4Cng elrl87/mL43cN4k/0622CeFt2P0UUZrGZaOISpBKoRT7PnpayQnnO+PFk4ePFilpAkLd G5uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FyS+JBgoOWC2IZTXjSMsgjh9uGjQczeg7XlpwgQpa+s=; b=MoRvGnfknAkCeH2O9+vOcYhqMXgXSHYQdLE6YIgPH6JFN1O/ZMu9euENn8QphW70wH 8PwLm0+z1tOrVFSTVJC2O4C5uBRFfKAWrA42igN5B6XWyG/9/s1p7tutye4Hy9EBM2S1 1VxApWJ+nB/9kKmxddXct+BRn0tptaSsHfk2BrehcvCivMQlNagmlYgnExJDbAmiQ2oA pziM3Ix55EI8ZfyIjH/Lh0049GlXE+988/HY1LtNGEdPu4pXFD8kfWaqn74sMYQpMb4Q qa+rEyofTG+8z+rmbMJUFy0B3h5GUapBSCJkMqbelDP7ySqaYrpbkzOntP7kaeB8Y9w0 1m7A== X-Gm-Message-State: APt69E2z9FuvutQzM//wN7EF6P0kNnAZQBtGyyU9nnWBEJat1orm3prY yoMzC2BeZipfRmnk/phGdzENMBCja2gRe+MmS575nQ== X-Google-Smtp-Source: AAOMgpeHW6kjUAIu5sYXXLNeE+8Gb6psMRzl4kS+12EF7aH3ZjjnUn3jJPn4TsXrvUSl6s63OJqxEg3p2DDj7doTMpk= X-Received: by 2002:a9f:25f2:: with SMTP id 105-v6mr10227564uaf.68.1530365880145; Sat, 30 Jun 2018 06:38:00 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:921b:0:0:0:0:0 with HTTP; Sat, 30 Jun 2018 06:37:59 -0700 (PDT) From: =?UTF-8?Q?Carl=2DHenrik_Tj=C3=A4rnlund?= Date: Sat, 30 Jun 2018 15:37:59 +0200 Message-ID: Subject: Working dir incorrect tomcat 9.10? To: users@tomcat.apache.org Content-Type: text/plain; charset="UTF-8" Hi! I'm in the process of upgrading from tomcat 8 to 9 and was running into a probelm with velocity not beeing able to create the default log file, ./velocity.log and after some troubleshooting it seems it is trying to create it in the root of the file system instead of the current working directory, which i thought would be CATALINA_BASE. I just did some test and logging in the webapp: log.info("Working path: " + new File(".").getAbsolutePath()); is reporting "Working path: /. Also, I could do a workaround by creating /velocity.log manually and give the tomcat9 user ownership which strengthen my belief that there is something strange with the working path.. From the logs it seems that tomcat is picking up the correct settings, see below, so I really cant get my head around it.. This has been workign without a problem from tomcat6 to tomcat8, is there some configuration change I may have missed? 28-Jun-2018 08:42:28.896 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/9.0.10 28-Jun-2018 08:42:28.897 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jun 20 2018 17:32:21 UTC 28-Jun-2018 08:42:28.898 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 9.0.10.0 28-Jun-2018 08:42:28.899 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux 28-Jun-2018 08:42:28.899 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.15.0-23-generic 28-Jun-2018 08:42:28.900 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 28-Jun-2018 08:42:28.900 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-11-openjdk-amd64 28-Jun-2018 08:42:28.901 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 10.0.1+10-Ubuntu-3ubuntu1 28-Jun-2018 08:42:28.902 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation 28-Jun-2018 08:42:28.902 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /ssd/opt/apache-tomcat-9.0.10 28-Jun-2018 08:42:28.903 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /ssd/opt/apache-tomcat-9.0.10 28-Jun-2018 08:42:28.904 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED 28-Jun-2018 08:42:28.905 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED 28-Jun-2018 08:42:28.905 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED 28-Jun-2018 08:42:28.906 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/opt/tomcat/conf/logging.pro perties 28-Jun-2018 08:42:28.906 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMa nager 28-Jun-2018 08:42:28.907 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dfile.encoding=ISO-8859-1 28-Jun-2018 08:42:28.907 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dnet.sf.ehcache.skipUpdateCheck=true 28-Jun-2018 08:42:28.908 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+CMSClassUnloadingEnabled 28-Jun-2018 08:42:28.908 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 28-Jun-2018 08:42:28.909 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresource s 28-Jun-2018 08:42:28.909 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 28-Jun-2018 08:42:28.910 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms512m 28-Jun-2018 08:42:28.910 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx1G 28-Jun-2018 08:42:28.912 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-modules=java.xml.bind 28-Jun-2018 08:42:28.913 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-modules=java.xml.ws 28-Jun-2018 08:42:28.914 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 28-Jun-2018 08:42:28.915 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/opt/tomcat 28-Jun-2018 08:42:28.918 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/opt/tomcat 28-Jun-2018 08:42:28.919 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/opt/tomcat/temp --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org