tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy (*$^¨%`£) (JIRA) <j...@apache.org>
Subject [jira] [Closed] (MTOMCAT-166) Cannot invoke Tomcat manager:Cannot retry request with a non-repeatable request entity
Date Sun, 01 Jul 2012 07:26:05 GMT

     [ https://issues.apache.org/jira/browse/MTOMCAT-166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Olivier Lamy (*$^¨%`£) closed MTOMCAT-166.
------------------------------------------

       Resolution: Duplicate
    Fix Version/s: 2.0

dup of MTOMCAT-116
                
> Cannot invoke Tomcat manager:Cannot retry request with a non-repeatable request entity
> --------------------------------------------------------------------------------------
>
>                 Key: MTOMCAT-166
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-166
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0-beta-1
>         Environment: maven-2,windows 7
>            Reporter: Mahmoud Saleh
>            Assignee: Olivier Lamy (*$^¨%`£)
>             Fix For: 2.0
>
>
> i am using **tomcat7-maven-plugin** to deploy application to remote server
> **1- plugin configuration:**
>              <plugin>
>                 <groupId>org.apache.tomcat.maven</groupId>
>                 <artifactId>tomcat7-maven-plugin</artifactId>
>                 <version>2.0-beta-1</version>
>                 <configuration>
>                   <server>pb</server>
>                   <url>http://mydomain:8080/manager/html</url>
>                 </configuration>
>             </plugin>
> **2- settings.xml:**
>     <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
>                           http://maven.apache.org/xsd/settings-1.0.0.xsd">
>     
>     
>       <servers>
>       <server>
>             <id>pb</id>
>             <username>myuser</username>
>             <password>mypass</password>
>       </server>
>       </servers>
>     
>     </settings>
> and i am using the command: `mvn tomcat7:deploy`
> and i can see that the war file is deployed:
>     [INFO] Deploying war to http://mydomain.com:8080/myapp
>     Uploading: http://mydomain.com:8080/manager/html/deploy?path=%2Fmyapp
>     Uploaded: http://mydomain.com:8080/manager/html/deploy?path=%2Fmyapp (5932 KB at
18.9 KB/sec)
> and after that i am getting the error:
>     Cannot invoke Tomcat manager:Cannot retry request with a non-repeatable request entity.

> detailed exception:
> org.apache.maven.lifecycle.LifecycleExecutionException: Cannot invoke Tomcat manager
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>         at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot invoke Tomcat manager
>         at org.apache.tomcat.maven.plugin.tomcat7.AbstractCatalinaMojo.execute(AbstractCatalinaMojo.java:152)
>         at org.apache.tomcat.maven.plugin.tomcat7.AbstractWarCatalinaMojo.execute(AbstractWarCatalinaMojo.java:71)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>         ... 17 more
> Caused by: org.apache.http.client.ClientProtocolException
>         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:926)
>         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:822)
>         at org.apache.tomcat.maven.common.deployer.TomcatManager.invoke(TomcatManager.java:718)
>         at org.apache.tomcat.maven.common.deployer.TomcatManager.deployImpl(TomcatManager.java:681)
>         at org.apache.tomcat.maven.common.deployer.TomcatManager.deploy(TomcatManager.java:363)
>         at org.apache.tomcat.maven.plugin.tomcat7.deploy.AbstractDeployWarMojo.deployWar(AbstractDeployWarMojo.java:88)
>         at org.apache.tomcat.maven.plugin.tomcat7.deploy.AbstractDeployMojo.invokeManager(AbstractDeployMojo.java:87)
>         at org.apache.tomcat.maven.plugin.tomcat7.AbstractCatalinaMojo.execute(AbstractCatalinaMojo.java:143)
>         ... 20 more
> Caused by: org.apache.http.client.NonRepeatableRequestException: Cannot retry request
with a non-repeatable request entity.
>         at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:686)
>         at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:515)
>         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:923)
> please advise why i am getting this error, and how to fix it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


Mime
View raw message