Deploying a WAR in Tomcat / Eclipse

后端 未结 4 2040
广开言路
广开言路 2021-02-08 15:29

I use Tomcat 6.0 and Eclipse 3.0 under Linux and I try to deploy a WAR in Tomcat. The problem is that the server is managed by Eclipse and I have some Eclipse project deployed.

4条回答
  •  北海茫月
    2021-02-08 16:30

    If all you have is a binary WAR (no source code), it cannot be installed within Eclipse. This can happen in certain scenarios outside of normal development workflows. Here's the work-around solution:

    1. Launch another instance of Tomcat (outside Eclipse).
    2. Modify the tomcat-users.xml file to enable admin
    3. Go to http://localhost:8080/manager/html
    4. Scroll down to WAR file to deploy
    5. Click Choose File (next to Select WAR file to upload) and click Deploy.

提交回复
热议问题