Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5A37D922B for ; Wed, 18 Apr 2012 09:47:08 +0000 (UTC) Received: (qmail 29632 invoked by uid 500); 18 Apr 2012 09:47:07 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 29414 invoked by uid 500); 18 Apr 2012 09:47:04 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 29204 invoked by uid 99); 18 Apr 2012 09:47:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 09:47:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 09:46:57 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 11AB71C3927 for ; Wed, 18 Apr 2012 09:46:37 +0000 (UTC) Date: Wed, 18 Apr 2012 09:46:37 +0000 (UTC) From: =?utf-8?Q?Olivier_Lamy_=28*=24=5E=C2=A8=25=60?= =?utf-8?Q?=C2=A3=29_=28Commented=29_=28JIRA=29?= To: dev@tomcat.apache.org Message-ID: <1247478170.59.1334742397074.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <493849645.35415.1334707513933.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MTOMCAT-145) [2.0-beta-1] Unable to deploy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MTOMCAT-145?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D132= 56394#comment-13256394 ]=20 Olivier Lamy (*$^=C2=A8%`=C2=A3) commented on MTOMCAT-145: ------------------------------------------------ Can you try 2.0-SNAPSHOT ? This must/should be fixed! =20 > [2.0-beta-1] Unable to deploy=20 > ------------------------------ > > Key: MTOMCAT-145 > URL: https://issues.apache.org/jira/browse/MTOMCAT-145 > Project: Apache Tomcat Maven Plugin > Issue Type: Bug > Components: tomcat6 > Affects Versions: 2.0-beta-1 > Environment: Maven 3.0.4 command-line on Windows 7 x64 > Tomcat 6.0.13=20 > CentOs 4.9 > Reporter: Jeff Vincent > Assignee: Olivier Lamy (*$^=C2=A8%`=C2=A3) > Priority: Critical > > I have been using the codhaus version of the tomcat-maven-plugin and am t= rying to switch to the latest Apache Tomcat Maven Plugin. > Deploy works with the codhaus version using 'mvn tomcat:redeploy -Pdev02`= . The username/password are normally in my profile settings. =20 > Deploy fails with apache version using: 'mvn tomcat6:redeploy -Pdev02'. = I've specified a entry in the settings.xml, and specified the sa= me value in the section of the the plugin to a= void "[DEBUG] No server specified for authentication - using defaults" erro= rs. > Below is my maven profile. I've tried changing the URL when running the = tomcat6:deploy/redeploy targets with and without a trailing '/text'. I get= a 404 with the '/text' and "Cannot invoke Tomcat manager" if I ommit the '= /text'. > Although, without the '/text' in the URL, it appears to upload the war as= it shows a progress indicator then fails with the error below: > > > dev02 > > false > > > > > org.apache.tomcat.maven > tomcat6-maven-plugin > 2.0-beta-1 > > war > http://10.12.4.2/manager > true > UTF-8 > UTF-8 > HTTP/1.1 > true > dev02 > > > > > > //----------------------------- MAVEN OUTPUT ---------------------------- > [DEBUG] Configuring mojo org.apache.tomcat.maven:tomcat6-maven-plugin:2.0= -beta-1:redeploy from plugin realm ClassRealm[plugin>org.apache.tomcat.mave= n:tomcat6-maven-plugin:2.0-beta-1, parent: sun.misc.Launcher$AppClassLoader= @3326b249] > [DEBUG] Configuring mojo 'org.apache.tomcat.maven:tomcat6-maven-plugin:2.= 0-beta-1:redeploy' with basic configurator --> > [DEBUG] (f) charset =3D UTF-8 > [DEBUG] (f) contextFile =3D C:\Users\jvincent\Dev\Java\Domain\target\Do= main-2012.04.04-SNAPSHOT\META-INF\context.xml > [DEBUG] (f) ignorePackaging =3D false > [DEBUG] (f) mode =3D war > [DEBUG] (f) packaging =3D war > [DEBUG] (f) path =3D /Domain > [DEBUG] (f) server =3D dev02 > [DEBUG] (f) update =3D true > [DEBUG] (f) url =3D http://10.12.4.2/manager > [DEBUG] (f) version =3D 2.0-beta-1 > [DEBUG] (f) warFile =3D C:\Users\jvincent\Dev\Java\Domain\target\Domain= -2012.04.04-SNAPSHOT.war > [DEBUG] -- end configuration -- > [INFO] Deploying war to http://10.12.4.2/Domain =20 > Uploading: http://10.12.4.2/manager/deploy?path=3D%2FDomain&update=3Dtrue > [Progress Indicator......] > [INFO] ------------------------------------------------------------------= ------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------------= ------ > [INFO] Total time: 5.490s > [INFO] Finished at: Tue Apr 17 17:51:59 MDT 2012 > [INFO] Final Memory: 8M/244M > [INFO] ------------------------------------------------------------------= ------ > [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat6-maven-plug= in:2.0-beta-1:redeploy (default-cli) on project Domain: Cannot invoke Tomca= t manager: ClientProtocolException: Cannot retry request with a non-repeata= ble request entity. -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute= goal org.apache.tomcat.maven:tomcat6-maven-plugin:2.0-beta-1:redeploy (def= ault-cli) on project Domain: Cannot invoke Tomcat manager > =09at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecut= or.java:217) > =09at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecut= or.java:153) > =09at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecut= or.java:145) > =09at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildPro= ject(LifecycleModuleBuilder.java:84) > =09at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildPro= ject(LifecycleModuleBuilder.java:59) > =09at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreaded= Build(LifecycleStarter.java:183) > =09at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecy= cleStarter.java:161) > =09at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) > =09at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > =09at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > =09at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > =09at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:39) > =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:25) > =09at java.lang.reflect.Method.invoke(Method.java:597) > =09at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(La= uncher.java:290) > =09at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.j= ava:230) > =09at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(= Launcher.java:409) > =09at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.jav= a:352) > Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot invoke = Tomcat manager > =09at org.apache.tomcat.maven.plugin.tomcat6.AbstractCatalinaMojo.execute= (AbstractCatalinaMojo.java:152) > =09at org.apache.tomcat.maven.plugin.tomcat6.AbstractWarCatalinaMojo.exec= ute(AbstractWarCatalinaMojo.java:71) > =09at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Defau= ltBuildPluginManager.java:101) > =09at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecut= or.java:209) > =09... 19 more > Caused by: org.apache.http.client.ClientProtocolException > =09at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttp= Client.java:926) > =09at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttp= Client.java:822) > =09at org.apache.tomcat.maven.common.deployer.TomcatManager.invoke(Tomcat= Manager.java:718) > =09at org.apache.tomcat.maven.common.deployer.TomcatManager.deployImpl(To= mcatManager.java:681) > =09at org.apache.tomcat.maven.common.deployer.TomcatManager.deploy(Tomcat= Manager.java:363) > =09at org.apache.tomcat.maven.plugin.tomcat6.AbstractDeployWarMojo.deploy= War(AbstractDeployWarMojo.java:87) > =09at org.apache.tomcat.maven.plugin.tomcat6.AbstractDeployMojo.invokeMan= ager(AbstractDeployMojo.java:86) > =09at org.apache.tomcat.maven.plugin.tomcat6.AbstractCatalinaMojo.execute= (AbstractCatalinaMojo.java:143) > =09... 22 more > Caused by: org.apache.http.client.NonRepeatableRequestException: Cannot r= etry request with a non-repeatable request entity. > =09at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(Defau= ltRequestDirector.java:686) > =09at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultR= equestDirector.java:515) > =09at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttp= Client.java:923) > =09... 29 more > [ERROR]=20 > [ERROR]=20 > [ERROR] For more information about the errors and possible solutions, ple= ase read the following articles: > [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExe= cutionException -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org