简体   繁体   English

在Eclipse中运行Dynamic Web Project

[英]Running Dynamic Web Project in Eclipse

I'm trying to run a jsp page from a Dynamic Web Project I created in Eclipse (using Tomcat web container). 我试图从我在Eclipse中创建的动态Web项目(使用Tomcat Web容器)运行jsp页面。 When I do it on my work computer and works fine, however when I try to run it on my MacBook Pro, all I see is this in the console: 当我在工作计算机上运行它并可以正常工作时,但是当我尝试在MacBook Pro上运行它时,我在控制台中看到的只是以下内容:

JUnit version 4.10

Time: 0.001

OK (0 tests)

When I right click the jsp page it only displays "Run Configurations" rather than "Run As...". 当我右键单击jsp页面时,它仅显示“运行配置”而不是“运行方式...”。

Any ideas? 有任何想法吗?

The first thing I would check is that the "Dynamic Web Project" Facet is enabled on that project on that computer. 我要检查的第一件事是在该计算机上的那个项目上启用了“动态Web项目”构面。 (I find that when copying/migrating Eclipse projects from one computer to another, I often have to fix settings like that....) (我发现,当将Eclipse项目从一台计算机复制/迁移到另一台计算机时,我经常必须修复类似的设置。...)

To check facets: right-click on the project, click "Properties". 要检查构面:右键单击项目,然后单击“属性”。 Click "Project Facets" in the left-hand column. 单击左侧列中的“项目构面”。 Verify that "Dynamic Web Module" is checked. 验证是否已选中“动态Web模块”。

Note that if "Project Facets" does not appear in the Properties dialog, there will be a few extra steps -- a Stack Overflow search will help out here. 请注意,如果“项目构面”未出现在“属性”对话框中,则将执行一些额外的步骤-堆栈溢出搜索将在此处提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM