0
我的WAR不是很大,只有15MB。 我正在使用tomcat7-maven-plugin進行「重新部署」目標。 +我正在使用80端口來請求tomcat7。 配置保存在pom.xml中,有下一個視圖:當我嘗試將應用程序重新部署到tomcat7服務器時出現連接重置錯誤
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<url>http://<my ip>/manager</url>
<path>/<app name></path>
<username>username</username>
<password>password</password>
</configuration>
</plugin>
Maven的嘗試部署4次,然後用一條消息雲:
Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:redeploy (default-cli) on project <app name>: Cannot invoke Tomcat manager: Connection reset
此前一切正常。它可能是服務器網絡連接問題嗎?但是現在所有在tomcat上運行的應用程序都運行良好。或者還有什麼可以的?
編輯:原因是缺乏設備上的可用空間。
上傳文件是有限制的。認爲你必須增加它,否則你的tomcat崩潰了 – Jens
自從上次工作以來你做了什麼改變?你能夠重新啓動Tomcat嗎?或者這不是一個選項? – Steve
Jens,我可以將這個應用程序部署到其他的tomcat服務器,我沒有改變上傳文件的限制。 – kukuruzo91