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 514C5200B31 for ; Tue, 24 May 2016 16:41:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 50619160A35; Tue, 24 May 2016 14:41:12 +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 9639B16098E for ; Tue, 24 May 2016 16:41:11 +0200 (CEST) Received: (qmail 71305 invoked by uid 500); 24 May 2016 14:41:10 -0000 Mailing-List: contact users-help@isis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@isis.apache.org Delivered-To: mailing list users@isis.apache.org Received: (qmail 71293 invoked by uid 99); 24 May 2016 14:41:10 -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; Tue, 24 May 2016 14:41:10 +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 E3B8F1804C2 for ; Tue, 24 May 2016 14:41:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, KAM_COUK=1.1, 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: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=haywood-associates-co-uk.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ukWb908Z23an for ; Tue, 24 May 2016 14:41:07 +0000 (UTC) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B939F60D25 for ; Tue, 24 May 2016 14:41:06 +0000 (UTC) Received: by mail-lb0-f178.google.com with SMTP id k7so6181486lbm.0 for ; Tue, 24 May 2016 07:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=haywood-associates-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=uexD0U7lV6yX7gY6hcXxG/Xi56eszvsbtk8DZ5M7q7A=; b=ZhZzA/HqWhzbatwcNyg88Gl8BkoqfrN4zS7tPsUhR36FOo5mZoLDQZUWmRSpFm7n3K yo8KR2gNbFNysmzyU4DJJqyVAk4/05Adn27du/5zEeBco6JJtamzKibZrhdQHO5b9LLU mCqVtejakpRocXNKibn5XZzR7RfVyJhCiDRwnyS4or6OvLeLAJyUM+Mh8GGpcbcSsRhD 4J6e2P+nL09JRBqNId9Z0xCA25udidIytQrAs81RApnk3Tac6T2ehudXE8IRYf/gQVA/ FijVP2cFFSsj/OCH4Eo38Dyzmzre3OUnUjNUTSXH8qRso3KiJXKhcQ9pq6QZLkKFoL57 Qg6g== 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:date :message-id:subject:from:to; bh=uexD0U7lV6yX7gY6hcXxG/Xi56eszvsbtk8DZ5M7q7A=; b=SYbnaOYeSHr4G1F0/ncrMLezqdovRGSPWpHa6d32jgvJBlqpNQy/T3/szyjq5B2Ndb 2V0bv14L0qQcOsW6Aqg+YMgPYSWF+xOl0BUciaHhjChj2IuX31VcVZpCI+jsS9w8UBQR k0PpU+SvpXcAlRTAwjcpzLClEP4ULNVOrvld4usAAUZB4mNIwiijseHV/y64ECi9kqzs K0fxc6mmOgmWhI1qQCA1bnmOQo9VS3WzNlF5DXIbB5vfF3ctcphBLXFJOA9uwvib/Od4 hlYl706JL1LmG/8w/qx8SF4Cb8szJvYUdcL176wQMBT7BtsWaen6+XAy7hO7BFyHAsXA SaFg== X-Gm-Message-State: ALyK8tJ7qZrB5fEQzRRH4yswBZAVC+v6a1tpzkntcbIJNcfO4/+ItS8USkinnxl6mE3X4IYimZv48+0EfDIdpg== MIME-Version: 1.0 X-Received: by 10.112.76.102 with SMTP id j6mr4977112lbw.98.1464100860008; Tue, 24 May 2016 07:41:00 -0700 (PDT) Received: by 10.25.134.2 with HTTP; Tue, 24 May 2016 07:40:59 -0700 (PDT) X-Originating-IP: [82.132.216.173] Received: by 10.25.134.2 with HTTP; Tue, 24 May 2016 07:40:59 -0700 (PDT) In-Reply-To: <1464100718.2673.7.camel@pc-celu07> References: <1463152536.2744.4.camel@pc-celu07> <1463494241.21563.16.camel@pc-celu07> <1463503231.21563.23.camel@pc-celu07> <1463519067.21563.29.camel@pc-celu07> <1464094678.2673.1.camel@pc-celu07> <1464100718.2673.7.camel@pc-celu07> Date: Tue, 24 May 2016 15:40:59 +0100 Message-ID: Subject: Re: 502 Bad Gateway error when running on AWS From: Dan Haywood To: users Content-Type: multipart/alternative; boundary=14dae9d248bcad2c3f0533978b17 archived-at: Tue, 24 May 2016 14:41:12 -0000 --14dae9d248bcad2c3f0533978b17 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I think the --port should come at the end because it's an argument to the jar, not an argument to java. Otherwise, dunno, I'm afraid. Dan On 24 May 2016 3:38 pm, "C=C3=A9sar Camilo Lugo Marcos" wrote: > I tried with both > > java -port 80 -jar webapp/target/CQNZ-webapp-1.0-SNAPSHOT-jetty-console.j= ar > java --port 80 -jar > webapp/target/CQNZ-webapp-1.0-SNAPSHOT-jetty-console.jar > > > , but there is no java parmeter named port, so it issues an error. > > Any ideas? > > On Tue, 2016-05-24 at 14:05 +0100, Dan Haywood wrote: > > > Hi Cesar, > > I think you can just specify a --port flag in the command line. > > Probably worth upgrading the jetty-console too, see > github.com/eirbjo/jetty-console. > > Hth > Dan > On 24 May 2016 1:58 pm, "C=C3=A9sar Camilo Lugo Marcos" < > cesar.lugo@sisorg.com.mx> > wrote: > > Hello, finally I got the application running on AWS Elastic Beanstalk! > > With some limitations, because the AWS Load Balancer only supports port > 80, and not 8080, so I had to eliminate the Load Balancer for now. There > are two possible solutions: > > 1) To open port 8080 on the AWS load balancer. Still looking into it, > seems possible but outside the AWS Web console tools, but from AWS CLI > line commands. > > 2) To make the application listen in 80 instead of 8080. We tried with > isis.properties adding isis.embedded-web-server.port=3D80 , and it worked > with mvn jetty:run, but not when we compile and create the jar file and > execute it with java -jar webapp\target > \CQNZ-webapp-1.0-SNAPSHOT-jetty-console.jar . > > How can we make the application compiled in the jar file work on port 80 > instead? > > Cesar. > > > --14dae9d248bcad2c3f0533978b17--