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 29AD7200B5B for ; Fri, 5 Aug 2016 23:19:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 24C79160A8E; Fri, 5 Aug 2016 21:19:11 +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 6EE51160A64 for ; Fri, 5 Aug 2016 23:19:10 +0200 (CEST) Received: (qmail 59258 invoked by uid 500); 5 Aug 2016 21:19:09 -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 59246 invoked by uid 99); 5 Aug 2016 21:19:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2016 21:19:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 894A1C0376 for ; Fri, 5 Aug 2016 21:19:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 2ovEAHfwxK3t for ; Fri, 5 Aug 2016 21:19:06 +0000 (UTC) Received: from mail-vk0-f44.google.com (mail-vk0-f44.google.com [209.85.213.44]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 20C225F366 for ; Fri, 5 Aug 2016 21:19:06 +0000 (UTC) Received: by mail-vk0-f44.google.com with SMTP id x130so201020957vkc.0 for ; Fri, 05 Aug 2016 14:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=ebcTomM1BOMLqIiuCxrDm/sYn8gfNuEXdDCl5EhAMf4=; b=bakWs79aE6Wfl62sUSag0poK1gIqyifcQwGu20mCFBstcdb1E0R2DMO948clKdLgF7 aD0UxmRZHY3SE8z51CirrnPRULsMeA68VtWLijLoSmHHqMm9en+uedoFzxifXtKNmIdj yaFGkpHrFrH5GQ7SdhZpWOk7D95Qj7aLZQq+IgD2Kw/7us3JoXPnD63m/Ia2fqEZUxxH rDeL0FUA1sXYpZW2VmRYii+xf4IZpk0q0FcEIHnl6L86JoV5f2vTMtDiNo5YeZjXbkjD 9D4xlhTeMweHMXnpsXiCp4r/Hp69aMTr2+LYkNX6NZaslha2j8+q7q5rUwHPDIyS/rsS HdfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ebcTomM1BOMLqIiuCxrDm/sYn8gfNuEXdDCl5EhAMf4=; b=d28EOAQpFNPfAq61iIAEMw2XSLJwDE0Sr4xyP8grZ2mM+INyPpc+sUmgo7LOEm345F Y7OxBdWQBCY14+PNmorFmfLquX7kHIAuLizeqE/nEDvESCSodfKfD0TyW5rw6X7ZrBGp oi7IUuUk0Vx5+CqIp2YVVtoUawWqwDvX2nA5dFCNzERFokRGaTjfhX1LDacU5OQhGbet 56FlfUofxSbxVypDyAGAMctoMzNmM0jbrvamEn+mgDQhnAtUU33vqTfQzM+OVlSpcsdP 7Oz/PNy453qyAfHUPvlhj9ZfeR+OCZwR6ZBforV3WP40TjNvszZ6ad/efoasGw2kGRIQ 1QUQ== X-Gm-Message-State: AEkoouvas7fm2BMw6hRJLVQkS+jGKCykPxyacVGSYo8YvPIWWYvT1Si+xvl5etr5IpVSZnGNTQY5LMQiNJWWOw== X-Received: by 10.31.86.69 with SMTP id k66mr42137410vkb.7.1470431945463; Fri, 05 Aug 2016 14:19:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.67.161 with HTTP; Fri, 5 Aug 2016 14:19:05 -0700 (PDT) From: Sean Son Date: Fri, 5 Aug 2016 17:19:05 -0400 Message-ID: Subject: Strange MySQL error when starting tomcat 8 on boot To: Tomcat Users List Content-Type: multipart/alternative; boundary=001a114e50f6c69d2a0539599d08 archived-at: Fri, 05 Aug 2016 21:19:11 -0000 --001a114e50f6c69d2a0539599d08 Content-Type: text/plain; charset=UTF-8 Hello! I am currently running Tomcat 8 on RHEL 7.2 with one web application called AppVet (A mobile Application Vetting program). The application works well but when I tried to use a script to allow tomcat to start up at boot, the webapp gives an authentication error. I saw the following error in the logs for appvet: [ERROR] Could not connect to database: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. Make sure your MySQL password in your AppVetProperties.xml file is correct I know for a fact that the MySQL password is correct in that XML file. I double checked it already. Any ideas on how I should fix this error? This is the script that I am using for startup/shutdown of Tomcat8 on boot: http://pastebin.com/mrvfDtTD Thanks! Sean --001a114e50f6c69d2a0539599d08--