我在 eclipse 中看不到 run-as server 选项

发布于 2024-11-19 07:17:59 字数 394 浏览 2 评论 0原文

我正在 Eclipse 版本:3.5.2 中处理一个项目,

我和我的同事都从 svn 签出了相同的 Maven 项目。我正在尝试通过在 Tomcat 中运行它来调试它。

当他右键单击该项目时,他可以看到运行为服务器选项,但我看不到。

在此处输入图像描述

在此输入图像描述 我忘记做什么了?

我什至看不到“窗口”->“显示视图”->“其他”下的服务器选项 在此处输入图像描述 谢谢

I'm working on a project in Eclipse Version: 3.5.2

My colleague and I both checked out the same maven project from svn. I'm trying to debug it by running it in Tomcat.

He can see the run-as server option when he right-clicks the project, but I can't.

enter image description here

enter image description here
What did I forget to do?

I can't even see the server option under Window->Show View->Other
enter image description here
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

倒带 2024-11-26 07:17:59

仅当安装了 WTP 时,才可以在 Java EE 应用程序服务器或容器上部署应用程序。从发布的屏幕截图中,我可以推断 WTP 不可用或者尚未被 Eclipse 加载(由于某些不幸的原因)。

您应该执行以下操作之一:

注意:如果已安装 WTP,您应该能够通过查看已加载功能列表来确认这一点,如下所示。

Eclipse WTP 验证

Deployment of applications on Java EE Application Servers or containers is possible only when you have WTP installed. From the screenshots posted, I can infer that either WTP is unavailable or it hasn't been loaded by Eclipse (for some unfortunate reason).

You ought to perform one of the following:

  • You can get a copy of the Eclipse IDE for Java EE developers, which contains WTP by default. If you need the Galileo edition, you will need to look into the Galileo archives. Also, you should use a JDK to start Eclipse. WTP might not be available if you use a JRE.
  • If you do not wish to install Eclipse with WTP from scratch, install the WTP plug-ins. Use the Galileo update site for this.
  • If you are sure that you have WTP installed, but you are unable to find that Galileo has loaded the plug-ins, then you will need to inspect the contents of the .metadata\.log file in your workspace. This would give you a hint as to why the plug-in was not loaded. Start Eclipse with the -clean flag, to get Eclipse to detect the plug-in if it hasn't done so previously.

Note: If WTP has been installed, you should be able to confirm this by view the list of loaded features, as shown below.

Eclipse WTP verification

泡沫很甜 2024-11-26 07:17:59

以下是我在配置 Eclipse 以与 Tomcat 一起使用时编写的一些说明。希望它能帮助你。

打开服务器窗口

  • 打开服务器视图。

  • 如果服务器视图未打开,请选择菜单项“窗口/显示视图/其他...”

  • 选择服务器在“服务器”部分下。

添加新服务器

  • 在服务器视图中右键单击选择新建/服务器

  • 展开 Apache 并选择 Tomcat v5.5 服务器< /p>

  • 单击“下一步”。

  • 选择 Tomcat 安装目录。 (即 c:\tomcat)

  • 单击“完成”

Here's are some instructions I wrote up when I configured my Eclipse to work with Tomcat. Hopefully it'll help you.

Open Servers Window

  • Open the Servers view.

  • If servers view is not open, select menu item Window/Show View/Other...

  • Select Servers under the Server section.

Add New Server

  • Right Click in the Servers View select New/Server

  • Expand Apache and select Tomcat v5.5 Server

  • Click Next.

  • Select the directory of your Tomcat installation. (ie c:\tomcat)

  • Click Finish

花心好男孩 2024-11-26 07:17:59

这将是您所有问题的解决方案。必须阅读pdf

This will be the solution for all your questions. A must read pdf.

べ繥欢鉨o。 2024-11-26 07:17:59

您创建了一个网络项目吗?如果右键单击该项目并转到“属性”>“项目 Facets 被选择为动态 Web 模块。这对我有用。

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

清风挽心 2024-11-26 07:17:59

对于我的Web应用程序3.0,我已经获取了项目的war文件,并从eclipse中删除了现有的应用程序,并将其替换为对我有用的war

In case of web application 3.0 in my case i have taken war file of project and deleted existing app from eclipse and replaced it with war it worked for me

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文