From users-return-233412-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Fri Apr 6 02:17:41 2012 Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 18C5C95BB for ; Fri, 6 Apr 2012 02:17:41 +0000 (UTC) Received: (qmail 57270 invoked by uid 500); 6 Apr 2012 02:17:37 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 57165 invoked by uid 500); 6 Apr 2012 02:17:37 -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 57154 invoked by uid 99); 6 Apr 2012 02:17:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2012 02:17:37 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of matt.m.munz@gmail.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pb0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2012 02:17:33 +0000 Received: by pbcuo5 with SMTP id uo5so2278419pbc.18 for ; Thu, 05 Apr 2012 19:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=u6jiNyRzvbQxO45nxQBtOV7OeKNZ77u6tD08YW0jqy4=; b=z9PTPlCPobiDh3hTT4ygh2vq8E4UVTR5V7ek8SC+NWMt6IGI/S3RML+VqFkfEagrlm XIzvSFCz86T0wYsaR7S37AoqWtxHuPwITYKW7av73VkMlU2cofBkfUklfwEmKpaYkXwg TR2JMvkNrPMH11tpjrmYICx8FPnxPLjufya4gdsQn7y0U1OZQ4+Bz47lGQMy/+b/aoLP mT6WAXYxzZYrhXoh3JlvkAY/PZiroQiwIT1BYMMdSNIXnAUYakbUvJqe1YsUfTqs8e6r BI9CkAGQirgdWZ7W6VaD9t/YtSTPPbg2qxf1t9wKIdDguFhaUpYhCk5fBghRFCc/sbzd 64Sg== Received: by 10.68.74.197 with SMTP id w5mr11480160pbv.129.1333678632572; Thu, 05 Apr 2012 19:17:12 -0700 (PDT) Received: from [10.0.1.15] (adsl-99-102-133-251.dsl.pltn13.sbcglobal.net. [99.102.133.251]) by mx.google.com with ESMTPS id i8sm4840660pbi.47.2012.04.05.19.17.10 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Apr 2012 19:17:11 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Tomcat 7 Maven plugin: deploy fails with tomcatManager status code:401, ReasonPhrase:Unauthorized From: Matt Munz In-Reply-To: Date: Thu, 5 Apr 2012 19:17:08 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <80D886CA-1FC6-4231-9D10-ACA8DD2A37D3@gmail.com> References: <51200CB4-D325-4019-A12A-5A0FDCC8987E@me.com> <0B75C850-2329-47A0-AEAF-A6B7CC14D35F@gmail.com> <5E45D237-38F2-473F-A5FB-9D6367F1DDD6@gmail.com> To: "Tomcat Users List" X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org Olivier, OK. Thanks. So with the 2.0-SNAPSHOT version I am getting the same = error (HTTP 401). [1] Interestingly, the plugin output makes it look = like the WAR file was uploaded but when I visit the Manager, I can see = that it is not deployed. Do you have any thoughts about what I can do to debug this further? = I'd really like to get this working. [1] [INFO] Deploying war to http://localhost:8080/ =20 Uploading: http://localhost:8080/manager/html/deploy?path=3D%2F Uploaded: http://localhost:8080/manager/html/deploy?path=3D%2F (9555 KB = at 33760.1 KB/sec) [INFO] tomcatManager status code:401, ReasonPhrase:Unauthorized Matt On Apr 4, 2012, at 12:23 AM, Olivier Lamy wrote: > Hello, > Have a look here: > http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html >=20 > 2012/4/4 Matt Munz : >> Olivier, >>=20 >> I made that change to settings.xml and now I'm getting a different = error. [1] How can I find out where this plugin is stored? Perhaps = there is a problem with the repository or my repository configuration. >>=20 >> [1] >> [WARNING] The POM for = org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is = missing, no dependency information available >> [WARNING] Failed to retrieve plugin descriptor for = org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT: Plugin = org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT or one of its = dependencies could not be resolved: Failed to read artifact descriptor = for org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT >> ... >> [WARNING] The POM for = org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is = missing, no dependency information available >> ... >> [ERROR] Plugin = org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT or one of its = dependencies could not be resolved: Failed to read artifact descriptor = for org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT: Could = not find artifact = org.apache.tomcat.maven:tomcat7-maven-plugin:pom:2.0-SNAPSHOT -> [Help = 1] >>=20 >> Matt Munz >>=20 >> On Apr 2, 2012, at 11:48 PM, Olivier Lamy wrote: >>=20 >>> Hello, >>> With version from codehaus manager url for tomcat7 is not correct. >>> (see = http://mojo.codehaus.org/tomcat-maven-plugin/examples/deployment-tomcat7.h= tml) >>>=20 >>> Regarding the plugin prefix trouble, you have two solutions to use = the >>> correct version: >>>=20 >>> * use the full cli: mvn >>> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:deploy >>> * configure your settings.xml with the entry >>>=20 >>> >>> org.apache.tomcat.maven >>> >>>=20 >>>=20 >>> HTH, >>> -- >>> Olivier Lamy >>> Talend: http://coders.talend.com >>> http://twitter.com/olamy | http://linkedin.com/in/olamy >>>=20 >>> 2012/4/3 Matt Munz : >>>> Olivier, >>>>=20 >>>> After switching to 2.0-SNAPSHOT, I am still getting errors :( = First I got an error saying that the tomcat7 prefix was not found. [1] = Then I tried "mvn tomcat:deploy -Dusername=3DAdministrator = -Dpassword=3Da" and I got a 403 response from the manager. >>>>=20 >>>> [1] >>>> [ERROR] No plugin found for prefix 'tomcat7' in the current project = and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] = available from the repositories [local (/Users/mattmunz/.m2/repository), = central (http://repo1.maven.org/maven2)] -> [Help 1] >>>> [2] >>>> [ERROR] Failed to execute goal = org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on = project ...: Cannot invoke Tomcat manager: Server returned HTTP response = code: 403 for URL: http://localhost:8080/manager/deploy?path=3D%2F...&war=3D= -> [Help 1] >>>>=20 >>>> Matt >>>>=20 >>>> On Apr 2, 2012, at 4:16 AM, Olivier Lamy wrote: >>>>=20 >>>>> Hello, >>>>> I have fixed few things related to deployment in trunk. >>>>> Could you test with current 2.0-SNAPSHOT ? >>>>>=20 >>>>> Thanks >>>>> -- >>>>> Olivier Lamy >>>>> Talend: http://coders.talend.com >>>>> http://twitter.com/olamy | http://linkedin.com/in/olamy >>>>>=20 >>>>> 2012/4/2 Matt Munz : >>>>>> Hi all, >>>>>>=20 >>>>>> I'm trying to get the Tomcat 7 Maven plugin to work and I'm = getting an authorization problem.[1] Here's the command that I'm = running. [2] Here's the relevant snippet from tomcat-users.xml. [3] = =46rom the browser I am able to log on to the Manager with this account = without problems. >>>>>>=20 >>>>>> Any help you could provide would be greatly appreciated. >>>>>>=20 >>>>>> [1] tomcatManager status code:401, ReasonPhrase:Unauthorized >>>>>> [2] mvn tomcat7:deploy -Dusername=3DAdministrator -Dpassword=3Da >>>>>> [3] >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>=20 >>>>>> Matt Munz >>>>>> matt.m.munz@gmail.com >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>=20 >>>>> = --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>>>> For additional commands, e-mail: users-help@tomcat.apache.org >>>>>=20 >>>>=20 >>>>=20 >>>> = --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>>> For additional commands, e-mail: users-help@tomcat.apache.org >>>>=20 >>>=20 >>> = --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>> For additional commands, e-mail: users-help@tomcat.apache.org >>>=20 >>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >>=20 >=20 >=20 >=20 > --=20 > Olivier Lamy > Talend: http://coders.talend.com > http://twitter.com/olamy | http://linkedin.com/in/olamy >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org