tomcat server fails to start the server and application in STS [duplicate]

会有一股神秘感。 提交于 2019-11-26 17:58:47
jocki

The jar file may be corrupt as a result of bad internet connection. Try removing the content of your C:\Users\[username]\.m2\repository folder. Then right click your project, select Maven, Update Project, check on Force Update of Snapshots/Releases. If you are sure only one Jar file has a problem, then you only need to delete its folder.

abdesselam
  • close your IDE
  • delete the .jar file located in (workspace_folder_location)/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/dailyship/WEB-INF/lib/spring-context-3.1.0.RELEASE.jar
  • open your IDE

If you work with maven:

  • Right click on the project
  • Maven -> Update Project -> check Force Update of snapshot/Releases
Tapas Bose

As newbie has mentioned to clean up local maven repository, you can do it by executing mvn dependency:purge-local-repository, which will delete the jars from local-repo and re-download them.

In Mac OS. Navigate to ~/.m2/ and run rm -rf repository/

Then reimport all your maven dependencies.

I had same problem because of dependencies which are available in pom.xml file,some of them are corrupted.I resolve that by simply removing .m2/repository folder contents and followed this steps.

  1. Run as -> Maven clean.

  2. Run as -> Maven Install.(Use good internet provider)

  3. maven -> Update project.

It will help you too.

This worked for me:

Delete all the files on your local repo directory that causes error. Do maven clean, maven install and re-deploy your files in server. That's it.

The answers above do not helped me. But after restarting PC on which Spring MVC application was running and issue has disappeared. It can be helpful for those who will face with the same problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!