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 B792F200C34 for ; Mon, 27 Feb 2017 10:10:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B62BE160B6C; Mon, 27 Feb 2017 09:10:00 +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 0A062160B60 for ; Mon, 27 Feb 2017 10:09:59 +0100 (CET) Received: (qmail 35795 invoked by uid 500); 27 Feb 2017 09:09:58 -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 35784 invoked by uid 99); 27 Feb 2017 09:09:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2017 09:09:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 1D92CC2749 for ; Mon, 27 Feb 2017 09:09:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id pZhhX6nquDvN for ; Mon, 27 Feb 2017 09:09:57 +0000 (UTC) Received: from mail-ot0-f180.google.com (mail-ot0-f180.google.com [74.125.82.180]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 0D2EA5FE16 for ; Mon, 27 Feb 2017 09:09:57 +0000 (UTC) Received: by mail-ot0-f180.google.com with SMTP id w44so47832091otw.2 for ; Mon, 27 Feb 2017 01:09:57 -0800 (PST) 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=cG8sOffwyzSyoAnseaYBQpKF1gjEX09NUlo57nXZEBU=; b=GCDveSFxi8YvhbFVwMxj7qduDHMGyGCFEt++z4NB3DLy2rWCkwkSrJPEOCa8f8saDE IkR/2R1rYJXt20BvQ/BQtgWMATwoDzOoeI5x5PNx/am/vQgLLpUpMRooSHPsLJQJv6ZF cxO8hf57OLIhOQS4/3tUb+ARZ70BZ2x1b48C6oZ4uMYK96NNEtDUzpHE+rLx7uKNqYvu QnXgGCWYsysCYDd06rjrtF3BYnp0FOPShNLQZ26kvHbW/SO02jCY6ZeIFJfa9ZpW+IPO BC+kgsXFkaDKYqpMBZRItYcy7NuBDAtjHb6UDAUsWmJEal5n7UAeABLmvAZ4O3rfLjbu 83Eg== 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=cG8sOffwyzSyoAnseaYBQpKF1gjEX09NUlo57nXZEBU=; b=Xsov0AjKobMFfFgTy4cRs77jXdbgenQxfOCgL8GRE2Yb9dxzatEBRsoNUb936+xA0X EzV8uJIoPpZgxnJ0+IvANhdhhEhgBz860o6DSLAq/o88p3WfvKXpdhIFuE/swKSJAiuE e01gcUhXgGNLFEGAivb1yuUOAhVF/cYmx2MgAx03U75MgnYYT99gdQ/a7Rub7jBJJEfi TmQ4jR9nLMjJ9aU9uWsPXUcD7+sIH3omhHkVd7l63YP23qZp9uTKgk2SiHXDea3oPtGO BXqU6+kymwEqrNcetBCuO4kq8b8G5ZzuKM/IA4OXqUwTnPG6VYyWy4964QN0p3/2bZyS fMQw== X-Gm-Message-State: AMke39krUYcSQMRuwuTfZ5+V9hlSsMuayLWBTJuIefWwJ1npEqb0uTUkbVbPI4lywJ/LX7G+3pK7ATD6Pl0u7A== X-Received: by 10.157.80.160 with SMTP id b32mr1166096oth.22.1488186596268; Mon, 27 Feb 2017 01:09:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.39.3 with HTTP; Mon, 27 Feb 2017 01:09:35 -0800 (PST) From: Diego Urenia Date: Mon, 27 Feb 2017 10:09:35 +0100 Message-ID: Subject: Different behavior on startup from version 6 and 7 to version 8, 8.5 and 9 To: users@tomcat.apache.org Content-Type: multipart/alternative; boundary=f4030435c4606e22c805497f717b archived-at: Mon, 27 Feb 2017 09:10:00 -0000 --f4030435c4606e22c805497f717b Content-Type: text/plain; charset=UTF-8 Hello all, My application creates a folder to store the config files at the first startup and immediately after that the application tries to access this folder in order to save some information. Using Tomcat 6 and 7 everything works fine. Using Tomcat 8, 8.5, and 9 the application experiences a weird behavior and here are some tests I made which made me think it was a war explosion related problem: - The problem doesn't happen when I am running the application using Intellij IDEA, because I use an exploded artifact; - I've created a dummy application to simulate only the creation and first access to this config folder (the same way I am doing in the real application) at startup and everything worked fine, which led me to believe the size of my application can be what revealed the problem (bigger .war file takes longer to be exploded); - Another test I made in my application was adding a Thread.sleep(5000); after creating the folder, which then makes the access to the folder possible (maybe because Tomcat had enough time to explode the war file); It was my belief before having this problem that Tomcat exploded the war before it even starts the application, but now I have my doubts. Three questions: - Does Tomcat really explode the war before starting the application? - If it doesn't, how does it work? (pointing the right piece of documentation, which I couldn't find is as good as an explanation) - Can anyone tell me what has changed in this regard from version 6 and 7 and the newer ones that led me to this problem? Best regards, Diego Urenia --f4030435c4606e22c805497f717b--