Eclipse Maven Spring: Server Error when I try to Run As Server (Tomcat 7)

后端 未结 1 1119
孤街浪徒
孤街浪徒 2021-01-07 08:45

I have a Java project using the Spring MVC framework and Maven as its build system. The primary IDE I wish to use is Eclipse for Ja

相关标签:
1条回答
  • 2021-01-07 09:18

    I think I figured it out. There may be a bug in Eclipse's Dynamic Web Module, version 3.1. My project was being imported using this version because I am using version 3.1 of javax.servlet-api in my pom.xml. When I changed the version down to version 3.0, I am now able to run it as a server.

    Basically, to do this change, I had to go into the .settings/org.eclipse.wst.common.project.facet.core.xml and change the <installed facet="jst.web" version="3.1"/> tag to instead be <installed facet="jst.web" version="3.0"/>.

    Time to file a bug with Eclipse...

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