Maven Cargo Error Writing Request Body To Server
Contents |
Sign in Pricing Blog
Ant Tomcat Error Writing Request Body To Server
Support Search GitHub This repository Watch 18 Star httpurlconnection error writing request body to server 25 Fork 19 JetBrains/teamcity-deployer-plugin Code Issues 20 Pull requests 1 Projects 0 Pulse Graphs New issue ant error writing request body to server Deploy to Tomcat 7 fails with java.io.Exception: Error writing request body to server #54 Closed peraage opened this Issue Mar 23, 2015 · 2 comments Projects None yet Labels None yet
Error Writing Request Body To Server Tomcat Deploy
Milestone No milestone Assignees No one assigned 2 participants peraage commented Mar 23, 2015 Deployment fails as stated above, while deployment from same machine as agent using curl works fine. Looks like the agent succeeds with listing webs, but fails to deploy. Logs from Tomcat server: 127.0.0.1 - deployer [23/Mar/2015:11:21:33 +0100] "GET /manager/text/list HTTP/1.0" 200 225 Logs from build agent: [2015-03-23 11:20:37,690] ERROR - jetbrains.buildServer.AGENT - org.codehaus.cargo.container.ContainerException: Failed to deploy [/home/buildagent/buildagent/work/a0f3b04d061b2cc0/auksjonen-prototype -1.0.0-SNAPSHOT.war] jetbrains.buildServer.RunBuildException: org.codehaus.cargo.container.ContainerException: Failed to deploy [/home/buildagent/buildagent/work/a0f3b04d061b2cc0/auksjonen-prototype-1.0.0-SNAPSHOT.war] at jetbrains.buildServer.deployer.agent.cargo.CargoBuildProcessAdapter.runProcess(CargoBuildProcessAdapter.java:104) at jetbrains.buildServer.deployer.agent.SyncBuildProcessAdapter.start(SyncBuildProcessAdapter.java:58) at jetbrains.buildServer.agent.impl.buildStages.runnerStages.start.CallRunnerStage.doBuildStage(CallRunnerStage.java:58) at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:25) at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:18) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78) at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37) at jetbrains.buildServer.agent.impl.buildStages.
Reply | Threaded Open this post in threaded view ♦ ♦ | error writing request body to server java Report Content as Inappropriate ♦ ♦ Cargo 1.4.13 - Deploying java.io.ioexception: error writing to server a war in Tomcat 8 container - Error writing request body to server Hi everybody, Environment : Windows 7 Java 1.8.45, Cargo 1.4.13 Tomcat 8.0.21 Eclipse Luna when I try to deploy my test war file, https://github.com/JetBrains/teamcity-deployer-plugin/issues/54 through Eclipse, I get the following message : [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building SessionTest Maven Webapp 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ SessionTest --- [INFO] Deleting C:\Users\MATEO-JL\workspace\SessionTest\target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ SessionTest --- http://cargo.996258.n3.nabble.com/Cargo-1-4-13-Deploying-a-war-in-Tomcat-8-container-Error-writing-request-body-to-server-td20172.html [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ SessionTest --- [INFO] Changes detected - recompiling the module! [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! [INFO] Compiling 4 source files to C:\Users\MATEO-JL\workspace\SessionTest\target\classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ SessionTest --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\Users\MATEO-JL\workspace\SessionTest\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ SessionTest --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ SessionTest --- [INFO] No tests to run. [INFO] [INFO] --- maven-war-plugin:2.2:war (default-war) @ SessionTest --- [INFO] Packaging webapp [INFO] Assembling webapp [SessionTest] in [C:\Users\MATEO-JL\workspace\SessionTest\target\SessionTest] [INFO] Processing war project [INFO] Copying webapp resources [C:\Users\MATEO-JL\workspace\SessionTest\src\main\webapp] [INFO] Webapp assembled in [593 msecs] [INFO] Building war: C:\Us
Certification Databases Caching Books Engineering Languages Frameworks Products This Site Careers Other all forums Forum: https://coderanch.com/t/109289/tools/Problems-deploying-remote-Tomcat-CARGO Ant, Maven and Other Build Tools Problems deploying to remote Tomcat with CARGO Sven Anderson Ranch Hand Posts: 58 posted 8 years ago Hi, http://ju.outofmemory.cn/entry/177746 I'm not sure if this is a networking/tomcat problem or a configuration problem with CARGO and my maven2 pom file. When I try to deploy to error writing a remote Tomcat instance (currently running) I get an IOException stating Error writing request body to server at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.che ckError(HttpURLConnection.java:2524) at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.wri te(HttpURLConnection.java:2507) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65 ) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109) at org.codehaus.cargo.container.tomcat.internal.TomcatManager.pipe(Tomca tManager.java:601) The war file I'm deploying is about 17MB. Deploying using the Tomcat manager is working fine. Can someone point me error writing request in the right direction whether it's a problems with the CARGO config or if the problem might be somewhere else. I'm using maven 2.09, JDK-1.6.0_06 and Tomcat 5.5
Build step 'Invoke Gradle script' changed build result to SUCCESS Deploying /var/lib/jenkins/jobs/devel_auto_build_deploy/workspace/build/libs/reis.war to container Tomcat 7.x Remote [/var/lib/jenkins/jobs/devel_auto_build_deploy/workspace/build/libs/reis.war] is not deployed. Doing a fresh deployment. Deploying [/var/lib/jenkins/jobs/devel_auto_build_deploy/workspace/build/libs/reis.war] ERROR: Build step failed with exception org.codehaus.cargo.container.ContainerException: Failed to deploy [/var/lib/jenkins/jobs/devel_auto_build_deploy/workspace/build/libs/reis.war] at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.deploy(AbstractTomcatManagerDeployer.java:111) at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:185) at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:73) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:116) at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:103) at hudson.FilePath.act(FilePath.java:991) at hudson.FilePath.act(FilePath.java:969) at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:103) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:61) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java: