Deploying a WAR in Tomcat / Eclipse

后端 未结 4 2045
广开言路
广开言路 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:17

    Yes, in a way, you can deploy a war in the dev mode.

    I have the same problem.

    I have an Eclipse webapp project, which Eclipse deploys to an instance of Tomcat run by Eclipse, so I can hot-edit the project.

    This Web project needs to use resources published by another webapp that has to be run within the same instance of Tomcat. The other webapp is a completed project by someone else, so it is already in a war form.

    I needed to File->Import the war as an Eclipse project and let Eclipse deploy it to the same instance of Eclipse, in order to run it in the same instance of Tomcat in which my webapp also runs.

    The problem is that some wars work this way but some others do not, while all of them work perfectly fine in a stand-alone Tomcat (started by startup.sh). I can't figure out why.

提交回复
热议问题