无法将项目与 Eclipse IDE 中的运行时服务器关联
我创建了一个动态 Web 项目。目前它有一个正在尝试运行的 jsp 文件。当我尝试将项目与特定运行时(tomcat 6.0)关联时,它没有发生。
我右键单击项目/属性/目标运行时。它不显示任何运行时(我在服务器中添加了 tomcat 6.0)。当我单击“显示所有运行时”复选框时,所有内容都处于禁用模式。
可能是什么问题?
附上问题的截图。
更新:我什至尝试创建一个新的运行时并将其与项目关联(项目/属性/目标运行时/新)。即使新创建的运行时也被禁用,并且无法将其与项目关联。
I had created a dynamic web project. AS of now it has a jsp file which am trying to run. When I tried to associate the project with a specific runtime(tomcat 6.0), it is not happening.
I right clicked on the project/properties/Targeted Runtimes. It doesn't show any runtimes(I have added tomcat 6.0 in servers). When I click the checkbox 'Show all runtimes', everything comes in disabled mode.
What could be the problem ?
Attached screenshot of the problem.
Update: I even tried to create a new runtime and associate it with the project( project/properties/Targeted Runtimes/new). Even the newly created runtime is getting disabled and am unable to associate it with the project.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
要将项目添加到运行时,您的项目和运行时之间必须匹配;您必须检查:
验证项目和运行时之间的匹配后,您需要项目以运行时为目标,如下所示:
新的运行时将与该项目关联。如果您要选择的运行时未显示或被禁用,您可能需要卸载一个或多个当前安装的项目构面。这可以在同一属性对话框中完成。
To add a project to a runtime you must have a match between your project and your runtime; you have to check:
Once you've validated the match between your project and the runtime, you need the project to target the runtime, as follows:
The new runtime will be associated with that project. If a runtime that you want to select is not displayed or is disabled, you may need to uninstall one or more of the currently installed project facets. This can be done within the same Properties dialogue.
这是对我有用的巫毒魔法
This is the voodoo magic that worked for me
我知道它已经回答了问题,但如果我能提供帮助,我喜欢与新用户分享我的解决方案。
对我来说,问题是因为 Dynamic wen Project 版本,
3.0 与 java 1.7 一起使用(我使用的是 3.1)。如果它不起作用,您可以访问项目中的 .settings 文件夹,
org.eclipse.wst.common.project.facet.core.xml 文件
并设置您需要的版本。
希望我可以帮助新用户
I know it's already answered question, but I like to share my solution with new users if I can help..
For me the problem was because of the Dynamic wen Project version,
3.0 work with java 1.7 ( I was using 3.1) . If it didn't work you can access .settings folder in your project,
org.eclipse.wst.common.project.facet.core.xml file
and set the version that you need.
Hope I can help new users
我已经找到了解决这个问题的方法。
转到首选项并检查您的目标运行时,如果未显示运行时,您可以通过功能进行配置。选择Dynamic Web 模块为3.0 或3.1
您也可以参考此视频以获取详细说明。 :
https://youtu.be/0W6s0hXbmNE
I have Found a fix for this problem.
Go to Preferences and Check your Targeted runtime, If No Runtime is displayed you can Configure it through Feacts. Select Dinamic Web module to 3.0 or 3.1
You can Also refer to this Video for Detailed Explanation. :
https://youtu.be/0W6s0hXbmNE