Error when I try deploy application to tomcat7 server

后端 未结 11 1675
轻奢々
轻奢々 2020-12-15 05:59

I am trying deploy a web application to tomcat7 via eclipse luna, but I am getting this error:

Uploading: http://localhost:8080/manager/text/deploy?path=%2Fl         


        
11条回答
  •  甜味超标
    2020-12-15 06:10

    Ok, I had the same issue with tomcat7.

    [INFO] I/O exception (java.net.SocketException) caught when processing request: Connection reset
    [INFO] Retrying request
    Uploading: http://localhost:8080/manager/text/deploy?path=%2iplover
    
    [INFO] I/O exception (java.net.SocketException) caught when processing request: Connection reset
    [INFO] Retrying request
    Uploading: http://localhost:8080/manager/text/deploy?path=%2iplover
    
    [INFO] I/O exception (java.net.SocketException) caught when processing request:         Connection reset
    [INFO] Retrying request
    Uploading: http://localhost:8080/manager/text/deploy?path=%2iplover
    

    I could not get it to work with

    mvn tomcat7:redeploy 
    

    as mentioned here.

    My WAR wasn't very large, just 4MB.

    Here was the root problem and solution

    It is important that your tomcat-users.xml has the correct roles setup. I ONLY had the role manager setup. Adding manager-script seems important and completely solved my problem.

    
    
    
    
    

提交回复
热议问题