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 431A7200B65 for ; Wed, 17 Aug 2016 16:06:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 41A38160A8C; Wed, 17 Aug 2016 14:06:53 +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 5F33A160A6C for ; Wed, 17 Aug 2016 16:06:52 +0200 (CEST) Received: (qmail 48627 invoked by uid 500); 17 Aug 2016 14:06:50 -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 48616 invoked by uid 99); 17 Aug 2016 14:06:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2016 14:06:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6FA231A57C2 for ; Wed, 17 Aug 2016 14:06:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id GDituchzjGBQ for ; Wed, 17 Aug 2016 14:06:48 +0000 (UTC) Received: from mail-it0-f42.google.com (mail-it0-f42.google.com [209.85.214.42]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id ACAF55F296 for ; Wed, 17 Aug 2016 14:06:47 +0000 (UTC) Received: by mail-it0-f42.google.com with SMTP id e63so399005ith.1 for ; Wed, 17 Aug 2016 07:06:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=FanenVP5dreRxm+UsBXzbVlEa2Ri/K1v+KEk9R7m+Ao=; b=FokHvVKa6+cb6I3nZlVUwYnCY32SVUY99p1+Q3tc/wWko0BwUzX6vJntN+6v4XdnL+ AFPpPghhQ8znJtIiMs7zAoBYx/3esYfNHeAoZM7uAe2Ngc+Wg7/6UN7ok/NdnlF2ewb1 3MLUvEJDtE5FEvsXcew9BanoiC3X5YANfeTZQ3gunxlFxbhHqEaQ+0S6tT3ojRkoi7r9 n57BR+WL8rhthc2p48QRipWGQbxV7XKXusC7ScLotn9cU0m1ABeu8t+jea24d/vFzQ+9 HZ4SlzC/GIkGy8hdy8bfyAWhGtK/KJ6nC58vuge02kkdHdItDNf1jOEBibTiF6Ukb6I9 T4tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=FanenVP5dreRxm+UsBXzbVlEa2Ri/K1v+KEk9R7m+Ao=; b=C+PzC+Xzxx2BHjIMk7oVbnD0sTVZWzDYrscPCC6I+th86o2M0zEU3rk1qm7PPV2XOj 9I10NEg953YVdK/D6uAk/xsLz/ChvnCwpRZOnxqtlH26ywLYYgeqUq48mfvNcDjdQ8Ug YWkmh6duDFyMhhGlrnIKtXTNQI81Jr/uiM04XwMkPeghMiUVTIK6eDdAwny2DzHpixMA H5dQfGhHgDoOD+t8gjuqw7L4fbNspv4YQ42LyKZovbUrc7YVHn0rxFDzTnh5fPR9uGTP fs98R1h/O2aeIEddMNy3EsJI/w981h0K6avdtDd+v7EQ4UDazL7DCPHRgyq7u9ClDdKw ICsQ== X-Gm-Message-State: AEkooutHmrofuRNdSnPucCWVR6G09V+Uh8EmQM2nT5tO64ijrNyeIK6PxpxWRvDMVqLo4C/6TSdT5YCSdGQoYA== X-Received: by 10.36.224.75 with SMTP id c72mr22253344ith.91.1471442799200; Wed, 17 Aug 2016 07:06:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.138.134 with HTTP; Wed, 17 Aug 2016 07:06:38 -0700 (PDT) Received: by 10.64.138.134 with HTTP; Wed, 17 Aug 2016 07:06:38 -0700 (PDT) In-Reply-To: References: <604f86c5-ad77-2c47-da7a-739e155295fa@mhsoftware.com> <57B428F3.2020405@ice-sa.com> <57B43193.5080808@ice-sa.com> From: Andrew Davis Date: Wed, 17 Aug 2016 09:06:38 -0500 Message-ID: Subject: Re: Set up postgresql on tomcat7 To: Tomcat Users List Content-Type: multipart/alternative; boundary=94eb2c19e60e5a9324053a44f990 archived-at: Wed, 17 Aug 2016 14:06:53 -0000 --94eb2c19e60e5a9324053a44f990 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks for the prompt.. I have been looking at the doc s and have my .jar file for postgres in the lib folder. I do not understand where the wrot= e: On 17.08.2016 11:32, Andrew Davis wrote: > Thanks. > > I can now deploy my servlets and they work ok, but.. > > I had hoped to just deploy one copy of the postgres jar to my server and > then be able to consume it inside multiple applications, instead of havin= g > multiple copies of the jar in multiple apps. > > I've been through the JNDI portion of the docs on Tomcat and found it sti= ll > somewhat confusing. > > Andy... > I am far from an expert on this kind of thing, but have you looked at this = : http://tomcat.apache.org/tomcat-8.0-doc/config/globalresources.html Maybe that is the missing link in your understanding ? > On Aug 17, 2016 4:06 AM, "Andr=C3=A9 Warnier (tomcat)" wr= ote: > > Andrew, >> this list strips most kinds of attachments, so nobody saw your screensho= ts >> or whatever was in them. >> You need to copy/paste that text right into your message to the list (am= d >> make sure that you send your message as "plain text", not HTML, otherwis= e >> it will be unreadable. >> >> On 17.08.2016 02:10, Andrew Davis wrote: >> >> Well, >>> This has not turned out how I wanted it to . >>> >>> I have 'a solution' but it isnt what I wanted to do. I went back and r= e >>> added the .jar file to the 'WEB-INF' folder and then deployed a new WAR >>> file. >>> >>> Now things work just 'fine' BUT I suspect that this is not what a real >>> coder would do and suspect I am still in the realms of hackery.. >>> >>> [image: Inline image 1] >>> >>> Andy. >>> >>> >>> >>> On Tue, Aug 16, 2016 at 6:53 PM, Andrew Davis >>> wrote: >>> >>> I found the following in my logs.. >>> >>>> >>>> from command line in Putty... >>>> >>>> cd /var/lib/tomcat7 >>>> tail -f logs/catalina.out >>>> >>>> [image: Inline image 1] >>>> >>>> I do have the jar file located in the following location on the >>>> machine.. >>>> >>>> /usr/share/tomcat7/lib >>>> >>>> https://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howt >>>> o.html#JDBC_Data_Sources is confusing to me. It shouldnt but it is.. >>>> at >>>> this point.. >>>> >>>> Andy.. >>>> >>>> >>>> >>>> On Tue, Aug 16, 2016 at 3:01 PM, George Sexton >>>> wrote: >>>> >>>> The best place to start would be to look at tomcat's logs for exceptio= ns >>>> >>>>> or errors. >>>>> >>>>> >>>>> >>>>> On 8/16/2016 12:44 PM, Andrew Davis wrote: >>>>> >>>>> Hello, >>>>> >>>>>> Im working on getting java servlets to run on my instance of Ububtu >>>>>> with >>>>>> tomcat7. >>>>>> >>>>>> I write my applications in Eclipse.. when i run my apps localhost i >>>>>> see >>>>>> everything just fine. >>>>>> >>>>>> When i export my WAR files i check the includ source files. >>>>>> >>>>>> I deploy the WAR file through tomcat manager. >>>>>> >>>>>> I can see the java classes which i use to insert records into my >>>>>> postgresql >>>>>> database. However, there is nothing happening. When i attempt to >>>>>> run >>>>>> them, no joy. >>>>>> >>>>>> I have the postgresql .jar file installed on my headless ubuntu serv= er >>>>>> , >>>>>> but no luck. >>>>>> >>>>>> Aside from the .jar file is there anything else i need to configure? >>>>>> >>>>>> Any advice is welcome >>>>>> >>>>>> Andy >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>> George Sexton >>>>> *MH Software, Inc.* >>>>> Voice: 303 438 9585 >>>>> http://www.connectdaily.com >>>>> >>>>> >>>>> >>>> >>>> >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --94eb2c19e60e5a9324053a44f990--