现象:
在eclipse中,将maven的web项目加入到tomcat中运行,提示如下异常。
异常信息:
cannot add modules because there is no runtime associated with the server
解决:
项目右键 –> Properties –> Targeted Runtimes –> New
添加 tomcat即可
本文介绍了解决在Eclipse中部署Maven Web项目到Tomcat时出现的“cannotaddmodulesbecausethereisnoruntimeassociatedwiththeserver”异常的方法。通过配置项目的Targeted Runtimes并添加Tomcat运行时来解决问题。
现象:
在eclipse中,将maven的web项目加入到tomcat中运行,提示如下异常。
异常信息:
cannot add modules because there is no runtime associated with the server
解决:
项目右键 –> Properties –> Targeted Runtimes –> New
添加 tomcat即可
819

被折叠的 条评论
为什么被折叠?