运行在服务器选项不出现在Eclipse中 [英] Run on server option not appearing in Eclipse

查看:207
本文介绍了运行在服务器选项不出现在Eclipse中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习SpringMVC框架,并检查了他们的代码副本:
https://src.springframework.org/svn/spring-samples/mvc-basic/trunk/
我可以做maven构建,安装和一切。但是在Eclipse上,运行在服务器上的选项从未出现。我有tomcat服务器运行,还有Eclipse的插件。为什么在服务器上运行选项缺少?这是一个Ubuntu机器。
当我在Windows机器上尝试完全相同的东西时,一切都很好。它具有相同版本的eclipse和各种插件作为Ubuntu机器安装。我能够从Eclipse运行在服务器选项上启动它。



有人可以帮我找出原因吗?谢谢。

解决方案

您是否创建了一个Web项目?如果您右键单击该项目,然后转到属性>项目构面是否已选定动态Web模块?


I'm learning SpringMVC framework and checked out a copy of their code: https://src.springframework.org/svn/spring-samples/mvc-basic/trunk/ I can do maven build, install and everything. But on Eclipse, run on server option never appeared. I have tomcat server up and running, also got plugin for eclipse. Why run on server option is missing? This is a Ubuntu machine. When I tried the exact same thing on my Windows machine, everything was fine. It has the same version of eclipse and all sorts of plugins installed as the Ubuntu machine. I was able to launch it from Eclipse "run on server" option there.

Can someone help me to figure out why? Thanks.

解决方案

Did you create a Web Project? If you right click on the project and go to Properties > Project Facets is Dynamic Web Module selected?

这篇关于运行在服务器选项不出现在Eclipse中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆