Tomcat is not deploying my web project from Eclipse

后端 未结 17 1707
被撕碎了的回忆
被撕碎了的回忆 2021-02-02 09:01

I\'m developing web application. Everything was working fine till yesterday.

Something happened yesterday (no idea what exactly) and Eclipse is not deploying my applicat

相关标签:
17条回答
  • 2021-02-02 09:35

    I have the same problem, my solution is:

    • Install WTP Maven integration (don't know if this is necessary)
    • Project -> Run Configurations (Select your tomcat server) -> Run

    For a few hours I tried to deploy and start application using Servers window but it didn't worked. My war was not placed in wptwebapps folder, manually deplying war to webapps worked.

    Using Run Configurations made my app finally deployable...

    0 讨论(0)
  • 2021-02-02 09:36

    Got it :)

    Usually caused when eclipse is reffering to another (or in correct web folder, may be webConent)

    1. Update .settings/.jsdtscope to have correct entry for webapp, similar to below

    1. Update org.eclipse.wst.common.component to have correct entry for webapp

    0 讨论(0)
  • 2021-02-02 09:40

    I encountered with same error and resolved it with redeployment after removing deployment.

    0 讨论(0)
  • 2021-02-02 09:41

    look into org.eclipse.wst.common.component file in your web project in eclipse.

    < wb-module deploy-name="PROJECT_NAME">

    check the PROJECT_NAME. It might got messed up. Similarly look into .project file.

    Hope this helps!!

    0 讨论(0)
  • 2021-02-02 09:44

    In my case, I configured an external Maven installation, and I made sure to be using a JDK instead of a JRE (in the eclipse configuration, and in the Server Environment). You can run a Maven Build of the project from eclipse to check everything is working ok.

    After that, I updated the maven projects, cleaned and built the projects, cleaned the server, and redeployed the artifacts.

    0 讨论(0)
  • 2021-02-02 09:45

    The only way I found which works for me is adding an entry into the "Web Deployment Assembly"

    Project webapp > Properties > Deployment Assembly
    Add ...
    Source : "/target/classes"
    Deploy Path : "WEB-INF/classes"

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