How to deploy created .jar file in Apache Tomcat server in Eclipse IDE?

前端 未结 2 762
礼貌的吻别
礼貌的吻别 2021-01-01 23:59

I\'m stuck into the process of deploying created .jar files in Eclipse.

Eclipse is at location: E:\\eclipse

Web project is at: E:\\Runtime

相关标签:
2条回答
  • 2021-01-02 00:37

    Apache tomcat is a web container you cannot deploy a jar in tomcat server. If you created a web application then export your application as war file and put it in tomcat webapp directory, start the server and your war will be deployed.

    if you have lots of jars then still you need to bundle them as war

    0 讨论(0)
  • 2021-01-02 00:41

    So you have it running successfully within eclipse? But now you want to deploy this tested web app?

    Then

    1. Right click on your Java Project and select Export.

    2. Expand the Web node and select WAR file.

    This exports the WEB-INF and related files that tomcat needs.

    This question answers what to do next How to deploy a war file in Tomcat 7

    0 讨论(0)
提交回复
热议问题