Eclipse - 运行配置中找不到服务器 [英] Eclipse - No server found in Run Configurations

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

问题描述

我遇到麻烦:我在Eclipse中配置了一个GlassFish Server。现在我需要添加一个项目到它的类路径:我去运行配置 - > Glassfish - >Glassfish 3.1.2。在本地主机(当前的服务器)。现在,从附加的图像中可以看出,我无法选择任何服务器,因为它似乎在下拉菜单中没有服务器。





我想选择服务器,然后转到Classpath并添加项目...任何人都可以帮助我?



对我来说听起来很奇怪,当我运行我的网络应用程序时,它运行在该服务器上...那么为什么我不能从运行配置看到它? / p>

感谢任何人都可以帮助,
AN

解决方案

您可能是为GlassFish配置的目标运行时,但不是服务器实例。启动配置对话框不是管理服务器的正确位置。您需要通过服务器视图执行此操作。在服务器视图中,您可以创建一个新的服务器实例,为其分配项目,启动/停止服务器,发布等。



如果服务器视图不可见你目前通过窗口 - >显示视图找到它。


I'm having a trouble: I've got a GlassFish Server configured in Eclipse. Now, I need to add a project to its classpath: I go to Run Configurations -> Glassfish -> "Glassfish 3.1.2. at localhost" (the current server). Now, as you can see from the image attached, I cannot select any server as it seems there's no server in the dropdown menu.

I'd like to select the server and then go to "Classpath" and add the project... Anyone can help me?

What sounds strange to me is that when I run my web app, it runs on that server... So why can't I see it from Run Configuration?

Thanks to anyone can help, AN

解决方案

You likely a target runtime configured for GlassFish, but not a server instance. The launch configurations dialog isn't the right place for managing your servers. You need to do this via Servers view. In the Servers view, you can create a new server instance, assign projects to it, start/stop server, publish, etc.

If the Servers view is not visible for you currently, find it via Window -> Show View.

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

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